Elasticsearch - display link to related view for artefacts in search results

Bug #1740208 reported by Robert Lyon on 2017-12-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Robert Lyon

Bug Description

Now that we use the 'doc' type in Elasticsearch 5+/6+ we need to adjust the views_by_artefact_acl_filter() so that it finds/returns the view(s) related to the artefact being displayed in the results

Robert Lyon (robertl-9) on 2017-12-27
Changed in mahara:
assignee: nobody → Robert Lyon (robertl-9)
status: New → In Progress

Reviewed: https://reviews.mahara.org/8379
Committed: https://git.mahara.org/mahara/mahara/commit/73a105bd5b5d72ba2980bbcf0ce686966cafd586
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 73a105bd5b5d72ba2980bbcf0ce686966cafd586
Author: Robert Lyon <email address hidden>
Date: Wed Dec 27 15:09:42 2017 +1300

Bug 1740208: Fetch related view for artefacts we can see

Fix the way we find the related views now that we don't have a 'view'
type to restrict to. We can achieve this via the internal '_id' value
as that is a combination of old type and id values.

Also strip tags except the <span> one from highlighted description code
in case there is bad html/js in there.


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

Robert Lyon (robertl-9) on 2018-02-01
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9) on 2018-04-05
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers