-
Notifications
You must be signed in to change notification settings - Fork 2
PIP-93 xAPI 2.0.0 Support #111
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
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9670f48
update libs
milt 53e6167
version of LRS with mem fix
milt 48412fa
remove nvd scan
milt 93d3a76
remove on-demand nvd scan
milt bd32734
release of LRS lib
milt adef4f3
add config for xapi version on source/target
milt 83f8beb
upgrade-jobs option
milt 11d58d6
automatically upgrade json jobs
milt 719cbf5
implement toggle for upgrade functionality
milt e8e6e0e
get 1.0.3 downgrade fns from SQL LRS
milt 9e341bb
working 2.0.0 -> 1.0.3 test
milt c84bd54
remove nonsensical require an editor put there
milt d4f5319
update logback
milt 599904c
add new options to docs
milt 05b5c76
xapi version doc
milt 29bfa85
clarify doc
milt 7423271
downgrade any 2.0.0 statements going to an LRS with 1.0.3
milt 8c66eeb
improve xapi version doc
milt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| { | ||
| "id": "foo", | ||
| "config": { | ||
| "get-buffer-size": 10, | ||
| "statement-buffer-size": 500, | ||
| "batch-buffer-size": 10, | ||
| "batch-timeout": 200, | ||
| "source": { | ||
| "request-config": { | ||
| "url-base": "http://0.0.0.0:8080", | ||
| "xapi-prefix": "/xapi" | ||
| }, | ||
| "batch-size": 50, | ||
| "backoff-opts": { | ||
| "budget": 10000, | ||
| "max-attempt": 10 | ||
| }, | ||
| "poll-interval": 1000, | ||
| "get-params": { | ||
| "limit": 50 | ||
| } | ||
| }, | ||
| "target": { | ||
| "request-config": { | ||
| "url-base": "http://0.0.0.0:8081", | ||
| "xapi-prefix": "/xapi" | ||
| }, | ||
| "batch-size": 50, | ||
| "backoff-opts": { | ||
| "budget": 10000, | ||
| "max-attempt": 10 | ||
| } | ||
| }, | ||
| "filter": {} | ||
| }, | ||
| "state": { | ||
| "status": "init", | ||
| "cursor": "1970-01-01T00:00:00.000000000Z", | ||
| "source": { | ||
| "errors": [] | ||
| }, | ||
| "target": { | ||
| "errors": [] | ||
| }, | ||
| "errors": [], | ||
| "filter": {} | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,51 @@ | ||
| {"id":"foo","config":{"get-buffer-size":10,"statement-buffer-size":500,"batch-buffer-size":10,"batch-timeout":200,"source":{"request-config":{"url-base":"http://0.0.0.0:8080","xapi-prefix":"/xapi"},"batch-size":50,"backoff-opts":{"budget":10000,"max-attempt":10},"poll-interval":1000,"get-params":{"limit":50}},"target":{"request-config":{"url-base":"http://0.0.0.0:8081","xapi-prefix":"/xapi"},"batch-size":50,"backoff-opts":{"budget":10000,"max-attempt":10}},"filter":{}},"state":{"status":"init","cursor":"1970-01-01T00:00:00.000000000Z","source":{"errors":[]},"target":{"errors":[]},"errors":[],"filter":{}}} | ||
| { | ||
| "id": "foo", | ||
| "version": 1, | ||
| "config": { | ||
| "get-buffer-size": 10, | ||
| "statement-buffer-size": 500, | ||
| "batch-buffer-size": 10, | ||
| "batch-timeout": 200, | ||
| "source": { | ||
| "request-config": { | ||
| "url-base": "http://0.0.0.0:8080", | ||
| "xapi-prefix": "/xapi", | ||
| "xapi-version": "1.0.3" | ||
| }, | ||
| "batch-size": 50, | ||
| "backoff-opts": { | ||
| "budget": 10000, | ||
| "max-attempt": 10 | ||
| }, | ||
| "poll-interval": 1000, | ||
| "get-params": { | ||
| "limit": 50 | ||
| } | ||
| }, | ||
| "target": { | ||
| "request-config": { | ||
| "url-base": "http://0.0.0.0:8081", | ||
| "xapi-prefix": "/xapi", | ||
| "xapi-version": "1.0.3" | ||
| }, | ||
| "batch-size": 50, | ||
| "backoff-opts": { | ||
| "budget": 10000, | ||
| "max-attempt": 10 | ||
| } | ||
| }, | ||
| "filter": {} | ||
| }, | ||
| "state": { | ||
| "status": "init", | ||
| "cursor": "1970-01-01T00:00:00.000000000Z", | ||
| "source": { | ||
| "errors": [] | ||
| }, | ||
| "target": { | ||
| "errors": [] | ||
| }, | ||
| "errors": [], | ||
| "filter": {} | ||
| } | ||
| } |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [<- Back to Index](index.md) | ||
|
|
||
| # xAPI Version Support | ||
|
|
||
| As of v0.0.34 LRSPipe supports xAPI versions 1.0.3 and 2.0.0 using the `--source-xapi-version` and `--target-xapi-version` arguments. To pass validation checks LRSPipe must sometimes downgrade statement data to move it between LRS instances. Refer to the table below for more information: | ||
|
|
||
| | version | 1.0.3 target | 2.0.0 target | | ||
| |--------------|-------------------------------|--------------| | ||
| | 1.0.3 source | 2.0.0 data will be downgraded | no change | | ||
| | 2.0.0 source | 2.0.0 data will be downgraded | no change | | ||
|
|
||
| Note that even when using version 1.0.3 for both source and target (the default) downgrading may occur if 2.0.0 data is present on the 1.0.3 LRS. To ensure 2.0.0 data like `$.context.contextAgents` is always preserved use the `--target-xapi-version 2.0.0` argument. | ||
|
|
||
cliffcaseyyet marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| [<- Back to Index](index.md) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.