filter artefact chooser search by tag

Bug #1777741 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Robert Lyon
18.04
Fix Released
Medium
Unassigned
18.10
Fix Released
Medium
Robert Lyon

Bug Description

In the blocks that use artefactchooser, eg Note, Journal entry blocks we can do a search for artefacts by title/description only.

It would also be good if we can also filter by tag(s) on the artefacts as well.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "18.04_STABLE" branch: https://reviews.mahara.org/8975

Robert Lyon (robertl-9)
Changed in mahara:
assignee: nobody → Robert Lyon (robertl-9)
status: Confirmed → In Progress
Revision history for this message
Robert Lyon (robertl-9) wrote :

Need to backport at least the fix for the choosing of note deleting tags from parent note to 18.04
 - though it might be easier to backport the whole thing as nothing changes display wise and only functionality change is easier searching

Revision history for this message
Steven (stevens-q) wrote :
Download full text (4.0 KiB)

Environment tested: Master
Browser tested: Chrome

-------------------------------------
Manual Test Script
-------------------------------------

Preconditions:

1. User "InstAMember" exists
2. User has multiple journals with the following tags:
-- a. Journal 1 Tags = J1, J101
-- b. Journal 2 Tags = J2, J102
-- c. Journal 3 Tags = J3, J101
-- d. Journal 4 Tags = J4, J101
3. User has multiple enties in each journal with the following tags:
-- a. Journal 1 - Entry 1 Tags = J1-JE1, JBC-500, Description contains "Bobcat"
-- b. Journal 1 - Entry 2 Tags = J1-JE2, JBC-500
-- c. Journal 1 - Entry 3 Tags = J1-JE3, JBC-501
-- d. Journal 2 - Entry 1 Tags = J2-JE1, JBC-500
-- e. Journal 2 - Entry 2 Tags = J2-JE2, JBC-500
-- f. Journal 2 - Entry 3 Tags = J2-JE3, JBC-501
-- g. Journal 3 - Entry 1 Tags = J3-JE1, JBC-500
-- h. Journal 3 - Entry 2 Tags = J3-JE2, JBC-500
-- i. Journal 3 - Entry 3 Tags = J3-JE3, JBC-501, Description contains "Bobcat"
-- k. Journal 4 - Entry 1 Tags = J4-JE1, jbc-500
-- l. Journal 4 - Entry 2 Tags = J4-JE2, jbc-500
-- m. Journal 4 - Entry 3 Tags = J4-JE3, jbc-501
4. User has multiple notes with the following tags:
-- a. Note 1 Tags = N1, ABCD
-- b. Note 2 Tags = n2, ABCD
-- c. Note 3 Tags = N3, EFG, Description contains "Bobcat"

Test Script: Searching for a Journal by tag
--------------------------------------------
1. User is logged in and on Portfolio - Pages and collections page
2. User creates a new page
3. User adds a Journal block to the page
4. User search for a journal by typing "J1"
5. Confirm that all journals are displayed ✔ (displays because all Journals contain the letter J1 in the second tag ie J101, J102, J103)
6. User search for a journal by typing "J2" (search by unique tag)
7. Confirm that Journal 2 is displayed ✔
8. User search for a journal by typing "j2" (lower case)
9. Confirm that Journal 2 is displayed ✔
10. User search for a journal by typing "Journal 1" (search in title)
11. Confirm that Journal 1 is displayed ✔
12. User search for a journal by typing "Bobcat" (search in description)
13. Confirm that Journal 1 is displayed ✔

NOTE: When searching for a search value, the search functionality will try to find the value in 3 places, title, description and tag.

Test Script: Searching for a Journal entry by tag
--------------------------------------------
1. User is logged in and on Portfolio - Pages and collections page
2. User creates a new page
3. User adds a Journal entry block to page
4. User search for a Journal entry by tytping J2-JE2 (search by unique tag)
5. Confirm that Journal 2 Entry 2, Journal entry is displayed ✔
6. User search for a journal entry by typing "Bobcat" (search in description)
7. Confirm that Journal 3 - Entry 3 is displayed ✔
8. User search for a journal entry by typing "j2-jE3" (lower case)
9. Confirm that Journal 2 - Entry 3 is displayed ✔

Test Script: Searching for a Note by tag
--------------------------------------------
1. User is logged in and on Portfolio - Pages and collections page
2. User creates a new page
3. User adds a Journal entry block to page
4. User click "Use content from another note" button
5. User search for a Note by typing "N2" (sear...

Read more...

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8965
Committed: https://git.mahara.org/mahara/mahara/commit/92551f50fa521d764b9fa5a8da5b56e8b887bbbc
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 92551f50fa521d764b9fa5a8da5b56e8b887bbbc
Author: Robert Lyon <email address hidden>
Date: Wed Jun 20 11:54:23 2018 +1200

Bug 1777741 - Allow artefact chooser to also search by tag

So that we now can search by title/description/tag for valid artefacts

Note: For 18.10 system of tags

behatnotneeded

Change-Id: I9c514f98998b0a97326a8ba7c1de4566453a38aa
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/8975
Committed: https://git.mahara.org/mahara/mahara/commit/2d643dec6bf49c8cdc238a7da0fb48c6609aa657
Submitter: Robert Lyon (<email address hidden>)
Branch: 18.04_STABLE

commit 2d643dec6bf49c8cdc238a7da0fb48c6609aa657
Author: Robert Lyon <email address hidden>
Date: Wed Jun 20 11:54:23 2018 +1200

Bug 1777741 - Allow artefact chooser to also search by tag

So that we now can search by title/description/tag for valid artefacts

behatnotneeded

Change-Id: I9c514f98998b0a97326a8ba7c1de4566453a38aa
Signed-off-by: Robert Lyon <email address hidden>

tags: added: usermanualupdate
tags: removed: usermanualupdate
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.