-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: implement object list view filters #4434
feature: implement object list view filters #4434
Conversation
@norbert-mieczkowski-codilime Wherever there is something that needs to be reviewed (your |
…ment-object-list-view-filters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, the spacing you mentioned is something I'd like to discuss further before changing it here. |
Being addressed in #4458 |
content: <Text>You have successfully opened filters panel.</Text>, | ||
content: ( | ||
<FiltersPanelContent | ||
// TODO(norbert-mieczkowski-codilime): use actual lookup fields rather than table headers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need help from others on implementing the REST API to retrieve the lookup fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likely, I don't feel proficient in the Nautobot backend enough to do it myself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracking as a new story
We'll work on #4462 to take this the rest of the way. Merge this into a feature branch to move forward. |
* feature: implement object list view filters (#4434) * feature: implement object list view filters * fix: typo * chore: add changelog * chore: update non filter query params in the new ui * Added `object_type` to metadata output when performing an `OPTIONS` query. * feature: use dynamic object type in filter lookup type queries * Addressing feedback --------- Co-authored-by: jathanism <jathan@gmail.com> Co-authored-by: Bryan Culver <bryan.culver@networktocode.com> * New UI - Add Live Search (#4463) * feature: implement object list view filters * fix: typo * chore: add changelog * chore: update non filter query params in the new ui * Added `object_type` to metadata output when performing an `OPTIONS` query. * feature: use dynamic object type in filter lookup type queries * Addressing feedback * Add prototype live search * Fix memoization, handle global search, detail view redirect. * Added changelog fragment * Address feedback --------- Co-authored-by: Norbert Mieczkowski <norbert.mieczkowski@codilime.com> Co-authored-by: jathanism <jathan@gmail.com> * Add filterset schema to rest api (#4521) * automatically populate filter type when only one option is available * Update nautobot/core/api/metadata.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update nautobot/core/api/metadata.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Remove errorant changlog add. Remove style bug fixed upstream --------- Co-authored-by: Norbert Mieczkowski <117445994+norbert-mieczkowski-codilime@users.noreply.github.com> Co-authored-by: jathanism <jathan@gmail.com> Co-authored-by: Norbert Mieczkowski <norbert.mieczkowski@codilime.com> Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com>
Closes: #3583
What's Changed
Implement
ObjecList
view filters inFiltersPanelContent
component. Additionally, fix some minor existing component lifecycle and style issues for the feature to work correctly.TODO
contentType
instead of the one temporarily hardcoded innautobot/ui/src/components/FiltersPanel.js:159
lookup_field
("Field" field), use allowed filter fields instead of table headers. See Add filterset field data to uiSchema in REST API for all models with filtersets #4462