Analytics/Archive/Wikimetrics/Adding New Features/Tag Cohorts

'''This page is archived! Find up-to-date documentation at https://wikitech.wikimedia.org/wiki/Analytics/Wikimetrics/Adding_New_Features/Tag_Cohorts'''

Currently in development.

Background
We would like to implement a feature that would allow a user to tag a cohort. Tagging cohorts will help users to create cohorts from similar cohorts. For example, if a user would like to look at the retention of active editors from all their March edit-a-thons, they can find those cohorts tagged as March 2014 edit-a-thon to examine all those cohorts tagged. They can use those cohorts to create a master cohort and run metrics on it.

When normal users search through a tag, the cohorts that show up will be either their own cohorts, cohorts shared with them, or public cohorts. There will be no ability for normal users to search through private cohorts of other users. In addition to normal users, we would like to implement a super user. A super user would be able to see private cohorts that are tagged. Users may choose to opt out of this feature.

We would like to give the Grantmaking evaluation team super user access. They will use this ability to find cohorts tagged with program tags. The evaluation team will use these cohorts to run various metrics from particular program implementations, such as Wiki Loves Monuments, for high-level analysis. They can use this information for a follow-up inquiry. This will help give an idea of how a program performs overall.

Autocomplete Tag
To help users visualize what tags are being used and help curb typos, we intend to autocomplete tags. That is, when a user begins typing, a drop down list of matching tags will appear.

Tagging a cohort/Deleting a tag
Users can now tag a cohort with tags of their own choosing. They can also delete a tag from a cohort by clicking the "x" next to each tag.

User Stories
Section needs work.

Meeting notes 2014-07-09
Attendees: Dan, Teresa, Kevin, Nuria

We talked about the functionality we think we can implement with tags in a reasonable timeframe. Our goal is that the tag functionality needs to be able to benefit any wikimetrics user. We jusr restricted our meeting about tag insertion, we have not consider creation of reports via tags (which is agreat idea but out of scope)

Considerations
We will not be implementing priviledge user functionality. Wikimetrics has no roles and we do not wish to add those at this time as it complicates heavily what is a very simple tool. If we were to add 'roles' we would need to consider how does affect any feature we might want to develop in the future. At this time we think is a core principle that every user of wikimetrics should have access to the same functionality if there are no technical considerations like performance issues.

Tag insertion
End goal is to have an organized set of tags that grantmaking can use. Our suggestion is that grantmaking defines a protocol when it comes to tags. Some examples of how tags could look:

"Grantmaking:May 2004" "gp:2014:Hackathon" "2014:May:Hackathon"

This is a convention that grantmaking can define to its liking. We can even upload a set of tags that are "predefined" by grantmaking to the database. Those can be made available in an autocomplete when tagging a cohort.

Now, to be clear: tags will be available to any user, not just grantmaking as there are no "authorized" or "unauthorized" tags.

Tag Search
In the future we can search (via autocomplete again) cohorts via tags. Note that search is global and goes against all tags in database, again, there are no aothorized tags.

Sanctioned Tags
the tag list is now on a separate page, easier to search on or cut & paste. https://www.mediawiki.org/wiki/Analytics/Wikimetrics/Standard_tags

Tags for year-month have been removed as a requirement for the time being.