learninglocker icon indicating copy to clipboard operation
learninglocker copied to clipboard

fix(Exports): Unable to download properties referenced from an array. (LL-174)

Open gamahachaa opened this issue 6 years ago • 1 comments

What version were you using?

4.4.0

What steps can we follow to reproduce the behaviour?

  1. Store a statement that includes collections (ie https://www.ht2labs.com/xapi-statement-101-context-element/)
  2. Source > Export Panel > Manage > Add new
  3. Add a line with 'column' "ContextActivity_0" / 'source' "statement.context.contextActivities.parent.0.id"
  4. The preview on the left displays “http://www.example.com/activities/parent”
  5. Click "Download" button on the bottom right of the panel
  6. 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

gamahachaa avatar Sep 04 '19 13:09 gamahachaa

Tracked internally by https://learningpool.atlassian.net/browse/LLC-64 (previously https://learningpool.atlassian.net/browse/LL-174)

ryasmi avatar Sep 05 '19 08:09 ryasmi