-
Notifications
You must be signed in to change notification settings - Fork 0
159 bug download and share preview functionality don't pass full query to backend #160
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
159 bug download and share preview functionality don't pass full query to backend #160
Conversation
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.
Pull request overview
This pull request fixes a bug where download and share preview functionality didn't pass the full query context to the backend. Previously, these operations would only use the individual record's timestamp, but now they correctly include the full query range and options (including the when condition) that were used to fetch the records.
Changes:
- Added query context tracking to maintain the range and options used for fetching records
- Updated download, share, and preview functionality to pass full query parameters to
createQueryLink - Improved type safety by adding proper interfaces for table rows and indexed records
- Enhanced ShareLinkModal with better state management and clipboard detection
- Improved RecordPreview with better size handling and auto-preview logic
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Views/BucketPanel/types.ts | New type definition for records with table index |
| src/Views/BucketPanel/EntryDetail.tsx | Core fix: tracks query context and passes it to download/share/preview operations |
| src/Views/BucketPanel/EntryDetail.test.tsx | Updated test expectations to verify full query context is passed |
| src/Views/BucketPanel/EntryDetail.css | Removed obsolete CSS rule for CodeMirror height |
| src/Components/ShareLinkModal.tsx | Added proper typing and improved state management for record handling |
| src/Components/ShareLinkModal.test.tsx | Updated test to use proper types |
| src/Components/RecordPreview/RecordPreview.tsx | Added query context parameters to support the backend fix |
| src/Components/RecordPreview/RecordPreview.test.tsx | Updated test expectation for improved error message |
| src/Components/JsonEditor/JsonQueryEditor.tsx | Improved validation status display logic |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
atimin
left a comment
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.
Perfect, but I found few new bugs. I'll create new issues.
Closes #159
Please check if the PR fulfills these requirements
What kind of change does this PR introduce?
Bug fix
What was changed?
Include full query options when generating download/share/preview links
Related issues
No
Does this PR introduce a breaking change?
No
Other information: