- Code/Gerrit: https://reviews.mahara.org/#/c/10754/ Patch set 2
- Browser: Chrome, note that browser testing is not required.
- Theme: Raw, note that theme testing is not required.

Test scenario 1: verify that a Page created in 19.10_STABLE containing a
tagged journal entry block can be successfully exported from an upgraded
site.

Preconditions:
a. Mahara site version 19.10 present.
b. Turn on ‘Multiple journals’ in ‘Person menu’ > ‘Settings’ > ‘Preferences’.
c. PersonA's ‘Journal1’ is present with three entries each tagged with 
'research'.
d. PersonA's ‘Journal2’ is present with an entry tagged with 'learning' and 
'research' and another entry tagged with 'learning'.
e. PersonA's ‘Journal3’ present with one entry untagged.
f. PersonA's ‘Page1’ is present with:
   - a block1 created via the tag 'research' - will have 4 entries
   - a block2 created from Journal1 - will have 3 entries
   - a block3 created from Journal2 - will have 2 entries
   - a block4 created from Journal3 - will have 1 entry.

Test steps:
1. Apply the patch.
2. Log in as PersonA and export ‘Page1’ as a Leap2a export file.
Expected result ✔ : the export file is created without error message display.

Test scenario 2: verify that a Leap2a export file created from a page
containing a tagged journal entry block can be successfully imported by
a different user.

Precondition: test scenario 1 completed successfully.

Test steps:
1. Log in as PersonB and import the Leap2a export file created in test scenario 
1 ‘Ignoring’ the ‘About me’ and ‘Contact information’ values and using the ‘Add 
new’ default for the Journals and Page items.
Expected results: 
- ✔ The message ‘Your portfolio was imported successfully’ will be displayed
-  ✔ Page1 will be present with the above 4 blocks on it, each with the same 
content as precondition f
- ✔ Copies of the three journals and their entries will also be present.

Test scenario 3: verify that a Leap2a export file created from a page
containing a tagged journal entry block can be successfully imported by
the person who created it.

Precondition: test scenario 1 completed successfully.

Test steps
1. Log in as PersonA and import the Leap2a export file created in test scenario 
1 using the ‘Add new’ default.
Expected results: 
- ✔ The message ‘Your portfolio was imported successfully’ will be displayed
- ✔ Second copies of the three journals and their entries are present
- ✔ Two copies of Page1 are present with the above 4 blocks on it, 
    - the first tagged journal entry block will contains 2 copies of each entry
    - each of the journal blocks will have the same content as precondition f.

Test scenario 4: verify that a Leap2a export can be successfully created
from a new collection that contains a page with a 'Tagged journal
entries' block. The export file can then be imported successfully by the
same person.

Preconditions:
a. Latest Mahara site version is present.
b. Turn on ‘Multiple journals’ in ‘Person menu’ > ‘Settings’ > ‘Preferences’.
c. PersonC's Journal1 is present with four entries, two that are each tagged 
with 'reflection'.
d. PersonC's Journal2 is present with an entry tagged with 'reflection' and 
'practice' and another entry tagged with 'practice' only.
e. PersonC's 3 page ‘Collection1’ is present with ‘Page 3’ containing:
   - a block1 created via the tag 'reflection' - with 3 entries as per c & d
   - a block2 created via the tag 'practice' - with 2 entries as per d
   - a block3 created via both tags as above - with 1 entry as per d.

Test steps
1. Log in as PersonC and export 'All my data' as a Leap2a.
Expected result ✔ : The message ‘Your portfolio was imported successfully’ will 
be displayed.
2. Import PersonC's Leap2a file using the default settings.
Expected results: 
- ✔ 2 ‘Journal1’, both with 4 entries
- ✔ 2 ‘Journal2’, both with 2 entries
- ✔ 2 ‘Collection1‘ each with a ‘Page3’ with 3 blocks that contain 6, 4 & 2 
(i.e. twice) entries.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1855349

Title:
  Tagged Journal Entries are not importing in Leap2a

Status in Mahara:
  In Progress

Bug description:
  Tagged journal entries don't seem to make it through the Leap2a import
  process. An inspection of the exported Leap2a XML file produced
  contains data for the tagged journal that doesn't seem to be picked
  up/ imported properly.

  1/ Log in as any user and create a Journal with some tagged journal entries
  2/ Create a new page and add the "Tagged Journal entries" block with the tags 
selected.
  3/ Save the page and export the page in Leap2a format.
  4/ Import the leap2a file into mahara and navigate to the page.
  Expected result:
  The page displays with the tagged journal entries block displaying
  Actual result:
  The page displays with a block with Placeholder title and Error message 
"Error during block configuration" (see attached screenshot)

  Version: Mahara 20.04dev

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1855349/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to