question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto-complete oddities when filtering fields

See original GitHub issue

Description

Under some circumstances, attempting to use the auto-completion on vector fields (as in adding lines for plots or trying to show a particular field in the Raw Messages panel) works poorly.

The below is all based on the state of studio.foxglove.dev as of 2022.05.26 (1.12.1-dev), using log.mcap.gz

Steps To Reproduce

These are two separate issues (not ordered steps):

  1. Fill in "/localizer frc971.IMUValuesBatch".readings[:] – no auto-complete suggestions will be forthcoming
  2. Start typing imuvalues. The autocomplete suggests will include "/localizer frc971.IMUValuesBatch".readings.accelerometer_x. (which is incorrect in two ways–(1) that readings is a vector and (2) that accelerometer_x is a scalar field and so the trailing . is misleading).

Expected Behavior

  1. Once you fill in [:] autocompletion should still work.
  2. Autocompletion options should always be valid.

Actual Behavior

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
foxymilescommented, Jun 6, 2022

Yeah making your id an int will at least give you some suggestions. It looks like offering suggestions following a user-entered [:] is going to require reworking the autocomplete logic a bit given our current grammar.

0reactions
defunctzombiecommented, Jun 13, 2022

The oddities described here have been fixed in #3500 so I’m closing this bug.

We provide no completion for slices currently so that part would be a feature request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow combining filtering fields in autocomplete results too
E.g., we have a filter created to combine user name and surname fields. But autocomplete includes only one field (name or surname) in...
Read more >
Material Autocomplete only filtering with getOptionLabel field
currently working with Google material-UI autocomplete component. it is only filtering on the "getOptionLabel" option field when I type ...
Read more >
Using Autocomplete Exposed Filters with Views
Recently I was working on a site and was tasked with adding a author filter to a view page that listed out blog...
Read more >
Filtering results with tags | Autocomplete - Algolia
When selecting a filter from a source, you want to display them so that the user knows what's impacting their search. The Tags...
Read more >
How to Add Autocomplete Functionality to Text Filters in Views
Views Autocomplete Filters is a simple yet powerful module that allows you to add autocomplete functionality on any text filter on a Views ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found