Page MenuHomePhabricator

Add Country selection based on subcategories for 'Wiki Loves' campaigns
Closed, ResolvedPublicFeature

Description

This is the main parent task for all work related the 'country selection' feature. Subtasks and more detail will be added here after the final plan has been confirmed.

This option is only applicable for campaigns that have been set as a "Wiki Loves campaign" by the campaign manager (a tick box option on the Create/Update pages).

When the manager sets this option, they must only include 'main' Wiki Loves categories in the campaign settings. The system must assume that it will find ONLY country subcategories directly within the chosen categories. The country name can then be found as the final word in the category name.

USER INTERFACE

  • Tick box on the Create/Update campaign pages to allow manager to set as a "Wiki Loves" campaign
  • A dropdown option is shown on the Campaign page, allowing the user to optionally choose single country to work during their Participate session (triggered when they click the 'get started' button).

EXTRACTION LOGIC
When user arrives on the Campaign page:

When user starts a Participate Campaign session:

  • check value selected in country dropdown
  • If the user has selected a country, we only search in that country subcategory when live generating the list to work on (instead of the /root/ category chosen in the campaign settings). As the campaign may have multiple root Wiki-Loves categories, we need to combine the results from each category.

e.g. If campaign categories are "Images from Wiki Loves Africa" and "Images from Wiki Loves art" and the user selects "Nigeria" from the dropdown, we need to:

  1. Query contents of "Nigeria" subcategory in "Images from Wiki Loves Africa"
  2. Query contents of "Nigeria" subcategory in "Images from Wiki Loves art"
  3. Combine the results into the participate list to work on and load the first image
  4. Fill out hidden form elements to indicate the "country" that will be saved with each contribution (see [T224111])

When the user click "save" on either depicts or captions form

  • Submit the edit as normal, but including value in the new "country" hidden form element

Event Timeline

NavinoEvans moved this task from Backlog to Pending on the ISA board.May 13 2019, 9:53 PM
NavinoEvans updated the task description. (Show Details)Wed, May 22, 9:27 AM
NavinoEvans updated the task description. (Show Details)Wed, May 22, 9:41 AM
NavinoEvans updated the task description. (Show Details)Wed, May 22, 10:13 AM
NavinoEvans updated the task description. (Show Details)Wed, May 22, 11:57 AM
NavinoEvans moved this task from Pending to Backlog on the ISA board.Thu, May 23, 3:45 PM
NavinoEvans moved this task from Backlog to Pending on the ISA board.Thu, May 23, 5:17 PM
NavinoEvans moved this task from Pending to Backlog on the ISA board.
NavinoEvans changed the subtype of this task from "Task" to "Feature Request".Sat, May 25, 10:34 AM
NavinoEvans triaged this task as High priority.Sun, Jun 2, 12:46 PM
NavinoEvans raised the priority of this task from High to Needs Triage.
NavinoEvans closed this task as Resolved.Tue, Jun 18, 9:13 AM
NavinoEvans claimed this task.