Page MenuHomePhabricator

Create AWSectionStore abstraction to interface with the durable storage layer
Closed, ResolvedPublic

Description

Build AWSectionStore class, a storage abstraction layer to support persistence and retrieval of:

  • AWSection obejcts (section_qid, topic_qid, locale, etc...): pre-generated and stored AW article sections
  • (maybe) AWArticleMetadata objects (created and updated timestamp, section ids and section order... ): this is globally reachable metadata without needing network-trips

Proposed interface:

  • getSection( topic_qid, section_qid, locale, … ): AWSection
  • getSectionsForTopic( topic_qid, locale, … ): AWSection
  • setSection( AWSection, … ): bool
  • deleteSection( topic_qid, section_qid, locale, … )
  • getArticleMetadata( topic_qid, … ): AWArticleMetadata
  • setArticleMetadata( AWArticleMetadata, … ): bool
  • static createMissingSectionBlock( topic_qid, section_qid, locale, … ): AWSection

Goals:

Event Timeline

Change #1284655 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] [WIP] Initial commit for AWStorage

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

Change #1284655 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Add AWArticleStore for Article Sections and Metadata

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