-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support for returning commits from /history #379
Commits on Jan 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6f0fc92 - Browse repository at this point
Copy the full SHA 6f0fc92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b1a9ca - Browse repository at this point
Copy the full SHA 1b1a9caView commit details -
Configuration menu - View commit details
-
Copy full SHA for cfd93f2 - Browse repository at this point
Copy the full SHA cfd93f2View commit details
Commits on Jan 23, 2023
-
Co-authored-by: Marcela Poffald mpoffald@flur.ee
Configuration menu - View commit details
-
Copy full SHA for 7ec1c32 - Browse repository at this point
Copy the full SHA 7ec1c32View commit details
Commits on Jan 24, 2023
-
update committed db with new tt-id
This allows us to properly retrieve commit flakes from the cache. Co-authored-by: Marcela Poffald mpoffald@flur.ee
Configuration menu - View commit details
-
Copy full SHA for 3c0c9c6 - Browse repository at this point
Copy the full SHA 3c0c9c6View commit details
Commits on Jan 25, 2023
-
fix commit schema flakes to use correct @id for dbid
Both the dbId subject flake and the ledger time had the @id of :f/time.
Configuration menu - View commit details
-
Copy full SHA for 2f92e44 - Browse repository at this point
Copy the full SHA 2f92e44View commit details
Commits on Jan 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5e70f20 - Browse repository at this point
Copy the full SHA 5e70f20View commit details -
Configuration menu - View commit details
-
Copy full SHA for f810b83 - Browse repository at this point
Copy the full SHA f810b83View commit details -
Configuration menu - View commit details
-
Copy full SHA for edc20d1 - Browse repository at this point
Copy the full SHA edc20d1View commit details -
correct the commit schema flakes
It turns out if you have a flake with a predicate of `const/$iri` (0), the datatype of the flake must be a `const/$xsd:string` (1). Otherwise the query select mechanism will try to resolve the flake object's @id, but that requires the flake object to be a subject id. These commit schema flakes had predicate: iri and datatype iri, which was causing queries that referenced them to blow up.
Configuration menu - View commit details
-
Copy full SHA for 442a67b - Browse repository at this point
Copy the full SHA 442a67bView commit details -
correctly create commit issuer flakes
The problem was we were only using the `(next-sid)` result in the new issuer flake but not in the reference pointing to it. Now we use it in both flakes if we need both flakes. Co-authored-by: Marcela Poffald mpoffald@flur.ee
Configuration menu - View commit details
-
Copy full SHA for 1d40020 - Browse repository at this point
Copy the full SHA 1d40020View commit details -
create necessary commit flakes on commit
We were not creating an @id for the commit, which was inserting nils for the commit subject. Also refactored the creation of commit flakes to make each group of flakes more clear and only create new sids when we actually use them. Updated the s+p+o query test to not expect nil subjects and control for the source of non-determinism in a commit. Co-authored-by: Marcela Poffald mpoffald@flur.ee
Configuration menu - View commit details
-
Copy full SHA for ce25cfa - Browse repository at this point
Copy the full SHA ce25cfaView commit details
Commits on Jan 30, 2023
-
properly prime schema cache on bootstrap
Co-authored-by: Marcela Poffald mpoffald@flur.ee
Configuration menu - View commit details
-
Copy full SHA for a9e93aa - Browse repository at this point
Copy the full SHA a9e93aaView commit details -
put commit schema flakes into bootstrap
Also refactored commit to generate flakes first and the merge them into novelty. Co-authored-by: Marcela Poffald mpoffald@flur.ee
Configuration menu - View commit details
-
Copy full SHA for 61cdfd1 - Browse repository at this point
Copy the full SHA 61cdfd1View commit details -
create artisinal commit flakes
Now we can rebuild the Commit document from a query. Co-authored-by: Marcela Poffald mpoffald@flur.ee
Configuration menu - View commit details
-
Copy full SHA for 95024af - Browse repository at this point
Copy the full SHA 95024afView commit details
Commits on Jan 31, 2023
-
Changed the commit data to all share the same subject id: t. Added one missing vocabulary term for commitdata-address. Now s+p+o returns all flakes with no nils. Co-authored-by: Marcela Poffald mpoffald@flur.ee
Configuration menu - View commit details
-
Copy full SHA for e4d6a06 - Browse repository at this point
Copy the full SHA e4d6a06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91293ac - Browse repository at this point
Copy the full SHA 91293acView commit details -
Merge branch 'main' into feature/commit-metadata
# Conflicts: # dev/user.clj # src/fluree/db/api/query.cljc # src/fluree/db/json_ld/api.cljc # src/fluree/db/json_ld/vocab.cljc
Configuration menu - View commit details
-
Copy full SHA for bfb1063 - Browse repository at this point
Copy the full SHA bfb1063View commit details -
The `vocab/update-with` function didn't do what I expected - it takes a db and returns a schema, and I was expecting it to return a db with the updated schema. Instead I swapped it with the `vocab/update-with*` which takes a schema and some vocab flakes and returns a new schema cache. Also added the `test-with-files` dep to the :dev deps so I can run the test from api-tests from the repl.
Configuration menu - View commit details
-
Copy full SHA for 6de7332 - Browse repository at this point
Copy the full SHA 6de7332View commit details
Commits on Feb 1, 2023
-
only create commit schema flakes when needed (upon committing), + som…
…e cleanup We don't need flakes of the type `[s const/$rdf:type o ...]`, now that we have a `.-dt` field on flakes
Configuration menu - View commit details
-
Copy full SHA for fc3cfc1 - Browse repository at this point
Copy the full SHA fc3cfc1View commit details -
begin constructing json-ld commit document containing both metadata a…
…nd asserts/retracts Co-authored-by: Daniel Petranek <dpetranek@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for 6886a26 - Browse repository at this point
Copy the full SHA 6886a26View commit details
Commits on Feb 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2d8bb0b - Browse repository at this point
Copy the full SHA 2d8bb0bView commit details
Commits on Feb 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 375335c - Browse repository at this point
Copy the full SHA 375335cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e086f5f - Browse repository at this point
Copy the full SHA e086f5fView commit details -
use existing iris for commit vocab, rather than special iris
We don't need special iris for commit-related flakes, eg `iri-commitdata-v`. The property `v` is the same property, denoting a version, regardless of whether it appears in a commit document or elsewhere.
Configuration menu - View commit details
-
Copy full SHA for 6901a0e - Browse repository at this point
Copy the full SHA 6901a0eView commit details -
move db address outside of asserts list
`asserts` should include just the actual data transacted by user
Configuration menu - View commit details
-
Copy full SHA for f0c663d - Browse repository at this point
Copy the full SHA f0c663dView commit details
Commits on Feb 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a3d07da - Browse repository at this point
Copy the full SHA a3d07daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 150bda0 - Browse repository at this point
Copy the full SHA 150bda0View commit details -
Merge branch 'main' into feature/commit-metadata
# Conflicts: # src/fluree/db/api/query.cljc # test/fluree/db/query/history_test.clj
Configuration menu - View commit details
-
Copy full SHA for 1a3f67e - Browse repository at this point
Copy the full SHA 1a3f67eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 633f51e - Browse repository at this point
Copy the full SHA 633f51eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e5b132 - Browse repository at this point
Copy the full SHA 7e5b132View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e3483f - Browse repository at this point
Copy the full SHA 1e3483fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a26a38 - Browse repository at this point
Copy the full SHA 9a26a38View commit details
Commits on Feb 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 077837e - Browse repository at this point
Copy the full SHA 077837eView commit details -
Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for 3370800 - Browse repository at this point
Copy the full SHA 3370800View commit details -
refactor commit-details to make t-flakes->json more general
We're now no longer duplicating the key compaction work at several levels. Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for e8a0b61 - Browse repository at this point
Copy the full SHA e8a0b61View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0d8835 - Browse repository at this point
Copy the full SHA d0d8835View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b8a3ab - Browse repository at this point
Copy the full SHA 2b8a3abView commit details -
add support for commit-details to history queries
closes #339 Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for 46f8e13 - Browse repository at this point
Copy the full SHA 46f8e13View commit details -
add t-range tests for commit-details
Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for dcde308 - Browse repository at this point
Copy the full SHA dcde308View commit details -
wip consolidate commit and history query api entry point
These are so close to being the same thing that we thought we'd try them with a unified query syntax. Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for ebaa76d - Browse repository at this point
Copy the full SHA ebaa76dView commit details
Commits on Feb 8, 2023
-
combine history and commit-details
Unified the query syntax for history and commit queries. Specifying a time range is now required, which should simplify the explanation of the query syntax. also: - removed some dead code - updated docstrings Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for 8070449 - Browse repository at this point
Copy the full SHA 8070449View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fd2a1a - Browse repository at this point
Copy the full SHA 9fd2a1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for eae7d45 - Browse repository at this point
Copy the full SHA eae7d45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53db97c - Browse repository at this point
Copy the full SHA 53db97cView commit details -
reduce the number of range calls for adding commit-details to history…
… result This updates `add-commit-details` to loop through the commit results and chunk together those results with continuous `t`s. We then retrieve commit details for the range of that chunk, rather than for each result. In cases where history results have such continuous results, we can reduce the number of times we make `tspo` range calls to retrieve commit data.
Configuration menu - View commit details
-
Copy full SHA for d2a93f8 - Browse repository at this point
Copy the full SHA d2a93f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c5765a - Browse repository at this point
Copy the full SHA 7c5765aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d09f04 - Browse repository at this point
Copy the full SHA 8d09f04View commit details
Commits on Feb 9, 2023
-
Merge branch 'main' into feature/commit-metadata
# Conflicts: # src/fluree/db/json_ld/commit.cljc # test/fluree/db/query/misc_queries_test.clj
Configuration menu - View commit details
-
Copy full SHA for 9a95e56 - Browse repository at this point
Copy the full SHA 9a95e56View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb9f13b - Browse repository at this point
Copy the full SHA cb9f13bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4b6c9b - Browse repository at this point
Copy the full SHA f4b6c9bView commit details -
ensure all commit keys are present in commit query
We had to sneak the previous commit into the commit-flake-addition process in order to get the previous commit and commit data ids. We also had to update how we were constructing the results to not filter the iri flakes out of the commit flakes because we need ids in the final map. Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for e47f8a3 - Browse repository at this point
Copy the full SHA e47f8a3View commit details
Commits on Feb 10, 2023
-
pass previous commit to add-commit-flakes
Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for 151f39e - Browse repository at this point
Copy the full SHA 151f39eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0e8faa - Browse repository at this point
Copy the full SHA b0e8faaView commit details -
put one history-flakes->json-ld at a time on output channel
This way we are not unnecessarily realizing the whole list of history results before going through them again to add commit-details.
Configuration menu - View commit details
-
Copy full SHA for f6f4558 - Browse repository at this point
Copy the full SHA f6f4558View commit details
Commits on Feb 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 78f9be5 - Browse repository at this point
Copy the full SHA 78f9be5View commit details -
refactor history query async pipelines
We removed some unnecessary go-blocks, added more explicit error handling, tried pushing the realization of the final results as high up the call stack as we could. Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for 57ee698 - Browse repository at this point
Copy the full SHA 57ee698View commit details -
refactor commit details async pipeline
We changed the default sort order of the history query to be in ascending order by t - earliest change first. This matches the default tspo sort order, so we no longer have to sort the commit flakes. History still needs to be sorted because sometimes it uses non-tspo indexes to satisfy the query. Moved the async into calls as high up the call stack as we could, and removed unnecessary go blocks. Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for b232caf - Browse repository at this point
Copy the full SHA b232cafView commit details
Commits on Feb 14, 2023
-
properly treat time-range results as a stream instead of a promise
time-range returns a stream of flake slices, where each slice is the subset of flakes from an index leaf. Up to now we have been treating this as a promise and only taking the first result off the time-range chan. Now we treat it as a proper stream. Co-authored-by: Marcela Poffald <mpoffald@flur.ee>
Configuration menu - View commit details
-
Copy full SHA for 9a0ef8f - Browse repository at this point
Copy the full SHA 9a0ef8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6104e6f - Browse repository at this point
Copy the full SHA 6104e6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 102b79a - Browse repository at this point
Copy the full SHA 102b79aView commit details
Commits on Feb 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for aec1754 - Browse repository at this point
Copy the full SHA aec1754View commit details