-
Notifications
You must be signed in to change notification settings - Fork 1
LRS-30 Support LRS 2.0 #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
Conversation
* LRS-30 backwards compatible but now fails both branches * LRS-30 fix alt syntax backwards compat, more issues remain * LRS-30 return a valid old version if specified * conditional version dispatch for doc etag behavior * test multiple versions * remove println * deps * bump tmp * correct sync doc handling * bump cljs * fix cljs multipart handling * bump ci java version
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.
there were some major errors in this file, interceptors being applied multiple times or not at all
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.
2.0.0 has weird duration normalization requirements
| (defn normalize-duration | ||
| "Normalize an xAPI duration string to 0.01 second precision" | ||
| [duration] | ||
| (let [duration-str (subs duration 1) ;; Remove 'P' |
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.
I'm surprised there is not an easy lib for this.
LRS-30
Wherein we strive to be conformant per version "2.0" of the conformance tests:
https://github.com/adlnet/lrs-conformance-test-suite/tree/LRS-2.0
Will require a decent rework to handle both old and new versions, this branch starts that process.
Currently passes 1.0.3 AND 2.0.0 tests (on the
masterbranch) in both CLJ and CLJSAlso see: yetanalytics/xapi-schema#90 for the
xapi-schema-componentNotable Internals for implementors
LRS implementors can leverage the following features
:com.yetanalytics.lrs/versionctx value - the given (valid) client xapi version of requestTODO:
interceptor