Skip to content
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

Move desktop and server backend to SQLite #196

Merged
merged 66 commits into from
Mar 21, 2022
Merged

Move desktop and server backend to SQLite #196

merged 66 commits into from
Mar 21, 2022

Conversation

eatonphil
Copy link
Member

@eatonphil eatonphil commented Mar 15, 2022

This PR rewrites the way data is stored:

  • Before this PR, all data was managed by the UI. The entire project state was passed back on every change
  • Panel result storage was managed by the UI too, and some other things like incrementing lastVersion of the project and so on, lastedited on a panel, etc.
  • This PR switches from a single JSON blob to slightly normalized tables for panels, pages, servers, connectors, and panel results
    • Within each table however there is still mostly just a JSON blob
  • This allows the UI to send smaller requests for only the exact object that needs to be modified
  • And now the runner is in charge of writing panel result updates back to the database, rather than the UI
  • Integration tests are currently in place for the backend changes
  • Automatically migrates JSON projects to SQLite

This is now basically working on new projects: desktop, server, and in-memory browser.

This PR drops (for now):

  • Dashboards and export. It's taking too long and these need an overhaul

@eatonphil eatonphil merged commit d57ba22 into main Mar 21, 2022
@eatonphil eatonphil deleted the pe/sqlite branch March 21, 2022 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant