learninglocker
learninglocker copied to clipboard
fix(Exports): Unable to download properties referenced from an array. (LL-174)
What version were you using?
4.4.0
What steps can we follow to reproduce the behaviour?
- Store a statement that includes collections (ie https://www.ht2labs.com/xapi-statement-101-context-element/)
- Source > Export Panel > Manage > Add new
- Add a line with 'column' "ContextActivity_0" / 'source' "statement.context.contextActivities.parent.0.id"
- The preview on the left displays “http://www.example.com/activities/parent”
- Click "Download" button on the bottom right of the panel
- Open the downloaded file
What is the actual behaviour?
The "ContextActivity_0" ("statement.context.contextActivities.parent.0.id") contains "[]"
What is the expected behavior?
The "ContextActivity_0" ("statement.context.contextActivities.parent.0.id") MUST contain “http://www.example.com/activities/parent” as per https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Data.md#context
Is there any additional information that will help us replicate/understand the problem?
You can replicate that with every array type xapi model
Tracked internally by https://learningpool.atlassian.net/browse/LLC-64 (previously https://learningpool.atlassian.net/browse/LL-174)