fix(web-console): remove indexed db backwards/forwards compatibility issue#467
Merged
fix(web-console): remove indexed db backwards/forwards compatibility issue#467
Conversation
…y' into fix/schema-compatibility-issue
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes IndexedDB backwards/forwards compatibility issues by removing the isTemporary field from the database schema and managing temporary buffer state in memory instead. The changes also upgrade Dexie from v3 to v4 and update the import syntax accordingly.
- Removes
isTemporaryfield from database schema and version 4 store definition - Manages temporary buffer state in React state instead of persisting to IndexedDB
- Updates Dexie import syntax and upgrades to version 4.0.11
Reviewed Changes
Copilot reviewed 8 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/web-console/src/store/db.ts | Removes version 4 store definition and updates Dexie import syntax |
| packages/web-console/src/store/buffers.ts | Removes isTemporary field from buffer metadata retrieval |
| packages/web-console/src/scenes/Search/SearchResults.tsx | Updates DOM selector for Monaco editor content |
| packages/web-console/src/scenes/Search/SearchPanel.tsx | Removes isTemporary field from search result metadata |
| packages/web-console/src/scenes/Editor/Monaco/tabs.tsx | Updates tab sorting logic to handle temporary buffers in memory |
| packages/web-console/src/scenes/Editor/Monaco/index.tsx | Adds CSS class for better DOM targeting |
| packages/web-console/src/providers/EditorProvider/index.tsx | Major refactor to manage temporary buffer state in memory instead of database |
| packages/web-console/package.json | Upgrades Dexie from v3.2.4 to v4.0.11 |
Files not reviewed (1)
- .pnp.cjs: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
glasstiger
approved these changes
Aug 28, 2025
Vaibhav91one
pushed a commit
to Vaibhav91one/ui
that referenced
this pull request
Oct 28, 2025
…issue (questdb#467) * chore(web-console): bump dexie version to 4.2.0 * fix(web-console): return to schema version 3 by changing temporary tab handling * address review * bulk update tab positions, fix tab dragging bug, bump dexie-react-hooks version * disable tab events when a temporary tab is open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Web console introduced db version 4. After upgrading db to version 4, it is not possible to open the web console with older QuestDB versions as Dexie cannot ensure forwards compatibility. As we don't have any control in older version of the web console, best option seems to downgrade the db version as it's not been used by any QuestDB version yet.
dexieto 4.2.0, which eliminates compatibility issues. Once most of the users upgrades web console >= 1.1.1, we will not face similar issuesdexie-react-hooks