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

fix: config ui is in sync with IDB #528

Merged
merged 4 commits into from
Dec 12, 2024
Merged

fix: config ui is in sync with IDB #528

merged 4 commits into from
Dec 12, 2024

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented Dec 12, 2024

  • chore: update package-lock.json
  • fix: config UI is up to date with IDB

Title

fix: config ui is in sync with IDB

Description

While testing ipfs/helia-verified-fetch#163 I noticed that the config didn't seem to be up to date with the IDB store consistently. This PR fixes that by adding a getAll method in generic-db to ensure a single transaction for reading all the items, instead of multiple separate transactions for getting all the config items.

A new e2e test and e2e locators have been added to verify that the config UI is in sync with the IDB store.

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

Copy link
Member Author

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self review

src/pages/config.tsx Outdated Show resolved Hide resolved
src/pages/config.tsx Outdated Show resolved Hide resolved
test-e2e/config-ui.test.ts Outdated Show resolved Hide resolved
test-e2e/fixtures/set-sw-config.ts Outdated Show resolved Hide resolved
@SgtPooki SgtPooki merged commit 2d8dbd9 into main Dec 12, 2024
18 checks passed
@SgtPooki SgtPooki deleted the test/config branch December 12, 2024 18:20
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