-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
View Detail on Foreign Key does not work when targeting an item outside the first 2000 rows #21756
Comments
Regression in 0.43.0-rc1 since #20101 @kulyk P1 contender. Reproduce 1 - problematic
Reproduce 2 - less problematic
|
After spending a few hours on trying different approaches I believe that the correct way to fix this is to refactor the detailed view to load data for the selected entity and DO NOT use data from the active query. This would allow opening the view within a query for related entities without loading another table which might actually not have the selected entity. |
@ranquild I'm not sure how to unblock you. Questions:
|
@mazameli If we change the object details view in this way we would not navigate to a different table when browsing details. We could make |
fyi @kulyk @flamber @mazameli an easy fix would be to add a primary key filter when navigating to another table. E.g. when clicking on |
* Fix FK filter * Add query * Use `question` click object for FK drills * Add null check to `loadObjectDetailFKReferences` * Fix `ObjectDetailDrill` unit test * Accept explicit `objectId` in FK redux actions * Fix type * Fix `objectId` type * Fix opening ObjectDetail for FK drill * Fix loading FK references * Fix following FKs * Hide prev/next buttons when drilling FKs * Fix expected URL after FK drill in tests * Use object detail test helpers * Reproduce #21756 * Fix dashboard drill test Co-authored-by: Alexander Polyankin <alexander.polyankin@metabase.com>
* Fix FK filter * Add query * Use `question` click object for FK drills * Add null check to `loadObjectDetailFKReferences` * Fix `ObjectDetailDrill` unit test * Accept explicit `objectId` in FK redux actions * Fix type * Fix `objectId` type * Fix opening ObjectDetail for FK drill * Fix loading FK references * Fix following FKs * Hide prev/next buttons when drilling FKs * Fix expected URL after FK drill in tests * Use object detail test helpers * Reproduce #21756 * Fix dashboard drill test Co-authored-by: Alexander Polyankin <alexander.polyankin@metabase.com>
Describe the bug
When clicking "view detail" on a foreign key - if it is not in the first 2000 rows of the table, it will give the user a not found message.
Because of the nature of the bug, I don't think it's reproducible with the sample DB.
Logs
(nothing material)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The user should see the detail view of the object selected
Screenshots
detailNotFound.mp4
Information about your Metabase Installation:
You can get this information by going to Admin -> Troubleshooting.
Severity
Makes foreign-key object detail view useless for most large tables.
The text was updated successfully, but these errors were encountered: