Page MenuHomePhabricator

Introduce storage layer for event-worklist associations
Closed, ResolvedPublic

Description

Background: The ce_worklist_events table stores event-worklist associations. Unlike the other tables introduced together with it, this one is a primary storage / source of truth. In future, we plan for the events-worklists relationship to be many-to-many. However, for the MVP, it will be a 1-1 relationship; additionally, in the MVP the worklist for a given event will be located at a fixed title, as described in T425003. This task is about implementing the storage layer for the ce_worklist_events table.

Type of story
  • Backend
Acceptance criteria
  • Introduce a class for CRUD operations on the ce_worklist_events table. It should only have methods that are needed in the MVP.
Testing required?
  • No

Event Timeline

Change #1307475 had a related patch set uploaded (by Cmelo; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] Introduce storage layer for event-worklist associations

https://gerrit.wikimedia.org/r/1307475

Change #1307475 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Introduce storage layer for event-worklist associations

https://gerrit.wikimedia.org/r/1307475

  • Introduce a class for CRUD operations on the ce_worklist_events table. It should only have methods that are needed in the MVP.

The class is WorklistEventsStore. Closing the task as it will be tested indirectly at the epic level.