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

feat: Add NamespaceSyncState #313

Merged
merged 11 commits into from
Oct 9, 2023
Merged

feat: Add NamespaceSyncState #313

merged 11 commits into from
Oct 9, 2023

Conversation

gmaclennan
Copy link
Member

@gmaclennan gmaclennan commented Oct 4, 2023

This combines all core sync states for a namespace. It listens to
CoreManager for new cores and pre-have messages.

Fixes #303

Fixes #309, removes responsibility from CoreManager to track peer-have
messages - will be handled by SyncState class
This combines all core sync states for a namespace. It listens to
CoreManager for new cores and pre-have messages.
@gmaclennan gmaclennan self-assigned this Oct 4, 2023
Base automatically changed from feat/core-manager-msg-emit to main October 4, 2023 17:02
* main:
  chore: remove ipc wrapper implementation (#306)
  fix: fix DataType.getByDocId implementation to match type definition (#317)
  chore: Add CI release workflow (#300)
  Feat: Icon data type (#304)
  chore: emit peer-have messages, don't persist them (#310)
* feat/pre-have-namespace:
  feat: add namespace to peer pre-have messages
* main:
  chore: update github action steps (#322)
  fix: fix mdns discovery (finally) (#323)
  chore: check npm lockfile version does not change (#321)
  chore: commit hooks for lint & package-lock chk (#320)
  feat: define sync capability per namespace (#319)
  feat: add namespace to peer pre-have messages (#314)
* main:
  feat: add capabilities.getAll() (#326)
  chore: gitignore .eslintcache (#327)
@gmaclennan gmaclennan marked this pull request as ready for review October 8, 2023 07:35
@gmaclennan
Copy link
Member Author

Writing a lot of unit tests is hard at this stage, due to the setup required. Instead going to add more e2e tests once the sync controller is written.

Since these are internal modules and we don't attach a "listener" other
than in the constructor, switching to a pattern that passes an
'onUpdate' constructor param, that avoids needing to track when event
listeners are removed
@gmaclennan gmaclennan merged commit 05b0830 into main Oct 9, 2023
7 checks passed
@gmaclennan gmaclennan deleted the feat/namespace-sync-state branch October 9, 2023 17:01
gmaclennan added a commit that referenced this pull request Oct 20, 2023
* main:
  feat: NamespaceSyncState improvements (#339)
  chore: update better-sqlite3 to 8.7.0 (#337)
  chore: update @mapeo/crypto to latest (#336)
  fix: write own device info when creating and adding projects (#297)
  Feat: add DataStore.writeRaw method (#334)
  feat: Add NamespaceSyncState (#313)
  chore: run CI on PRs against any branch (#330)
  feat: add capabilities.getAll() (#326)
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.

Add new NamespaceSyncState class
2 participants