Skip to content

Feature/sync sid calculation#40

Merged
zonotope merged 34 commits intomainfrom
feature/sync-sid-calculation
Apr 2, 2024
Merged

Feature/sync sid calculation#40
zonotope merged 34 commits intomainfrom
feature/sync-sid-calculation

Conversation

@zonotope
Copy link
Contributor

This patch updates server work with the db library using SID objects introduced in fluree/db#660. The api is very similar on the db side, so the only things that had to change here are (1) removing the negation of t-values in commit responses because those values are now always positive, and (2) removing the expectation that the "id" attribute will exist after a deletion because we no longer have "id" flakes in the db.

t values returned by db are now always positive.
We no longer have "id" flakes, so this query will come back empty after the
delete transaction executes.
@zonotope zonotope requested a review from a team February 17, 2024 22:10
Copy link
Contributor

@cap10morgan cap10morgan left a comment

Choose a reason for hiding this comment

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

One nit-pick-y suggestion on the .gitignore addition, but LGTM o/w!

.gitignore Outdated
/.clj-kondo/*
!/.clj-kondo/config.edn
/.lsp/
/.dir-locals.el
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be better to put this in your global git ignore file in your home dir.

zonotope and others added 22 commits February 23, 2024 15:09
This is the bare minimum change necessary to get things basically working:
- fs/write-file now happens on a different thread
- stop using file-conn directly, that should only be touched through a protocol
- file-conn/address-full-path doesn't exist anymore, inlined the old behavior, will
deprecate in next few commits
Instead of just writing to the filesystem willy-nilly, use the connection's :store.
The connection type should not concern anything outside of the connection
implementation code because the connections should behave exactly the same when
interacting through the connection api/protocol. If they don't behave the same,
then something is wrong with the api/protocol and we should fix that instead of
dispatching on connection type outside of the connection implementation.
The large buffer will allow indexers to proceed without blocking until heavy
volume, and setting the event type here means that we don't have to maintain the
event format across codebases that should be independent.
@zonotope zonotope merged commit 0534b3a into main Apr 2, 2024
@zonotope zonotope deleted the feature/sync-sid-calculation branch April 2, 2024 02:59
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.

3 participants