-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
event log filter #2098
event log filter #2098
Conversation
filipesilva
commented
Mar 28, 2022
- feat: support event log migrations
- build: update to clojure 11
- rfct: move migrator into own ns
- fix: current version is 0 if none is present
- feat: migrate events without a uid
- fix: fix args on migrate call site
- rfct: add athens.self-hosted.fluree.utils
- fix: get-current-version should return 0 on err
- feat: migrate to efficient event log filtering
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/athens-research/athens/74cWcSVgHuomBchMa2TW5LTDQ83n |
219212d
to
420a128
Compare
Tests hang forever both locally and on CI after adding the fluree tests. Opened an issue with repro at fluree/db#163. |
@@ -1,7 +1,7 @@ | |||
{:paths ["src/clj" "src/cljs" "src/cljc" "src/js" "src/gen" "test"] | |||
|
|||
:deps | |||
{org.clojure/clojure #:mvn{:version "1.10.3"} | |||
{org.clojure/clojure #:mvn{:version "1.11.0"} | |||
org.clojure/clojurescript #:mvn{:version "1.10.879"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NB: clojurescript is not updated to 11 yet, that requires changing the version here and also a shadow-cljs version that supports it (iirc shadow-cljs overwrites it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Tried shutting down JVM after tests, with little luck, Fluree is leaving a lot concurrent stuff behind.
:event/data (pr-str data) | ||
;; Compute the new order number as 1 higher than last. | ||
;; This will be 1 if there are no events yet. | ||
;; NOTE: is max-pred-val efficient for very large collections? I don't know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this fluree magic?
It loos like a inline fn, but it's a string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a smart function, used in a transaction: https://developers.flur.ee/docs/guides/advanced/smart-functions/10/