← Back to team overview

mahara-contributors team mailing list archive

[Bug 1317343] Re: wishlist: ability to display journal entries using mulitple tags

 

Hello Shane,

Thank you very much for this offer. That would be great. Let's take the
financials' discussion off Launchpad. Robert started looking into the
estimate and has a few more questions around the implementation of which
at least one had already come up earlier.

---
Robert:
Point 1: Allow for the choosing of multiple tags so that posts with ALL those tags get displayed in a taggedposts block eg Tags to include 'cats, domesticated' will return all posts with tags 'cats' and 'domesticated'.

Point 2: Allow for selecting of tags to ignore so that even if (1) is
met we can still ignore posts if they contains a tag to ignore, eg Tags
to exclude 'Siamese' will mean all domesticated cat posts except the
ones about 'Siamese'.

The beginnings of a patch for this is here
https://reviews.mahara.org/#/c/3336/ In its current form it does not
quite do what we want. For (1) it does an ANY join rather than an ALL -
so for 'cats, domesticated' it will return all cats (including non
domesticated ones) as well as all non-cat domesticated animals. This
also applies to the excluding tags option (2) it will exclude if ANY
tags match.

So the first thing to nail down is "what do we want"?.

Do we want:
[A] Point (1) where the join is an AND,  and not worry about point (2), or
[B] Point (1) where the join is an OR,  and not worry about point (2), or
[C] Point (1) where the join is an AND,  and point (2) uses an AND join, or
[D] Point (1) where the join is an AND,  and point (2) uses an OR join, or
[E] Point (1) where the join is an OR,  and point (2) uses an OR join.
[F] Point (1) where the join is an OR,  and point (2) uses an AND join.

---
i would say that option C might be the winner because it requires all tags to be used that you select as per comments 2 and 3 but allows to exclude posts that have a tag / tags that you put into the exclusion list.

What do you think?

Cheers
Kristina

-- 
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/1317343

Title:
  wishlist: ability to display journal entries using mulitple tags

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Mahara 1.8

  Hi Everyone, 
  At the moment displaying journals by tag allows a user to choose only one tag.

  In a scenario where a student writes lots of journal entries for a
  course say "Underwater basket weaving", but wants some to be public
  too, they would create two pages: one for the unit and one for the
  public.

  Lets say they assigned the tags to every post "UBW" and to a few of
  them they add "public".

  They create their course page and add journal entries with UBW. No
  worries!

  They create their public page for UBW stuff and add the tag .... which
  one? They can't add public because that would pickup any other post
  from oter journals tagges "public", they can't add journals tagged
  "UBW" because that would add non public posts.

  Wishlist item is that: user can display posts with UBW AND Public

  Cheers,
  Shane.

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


References