Page MenuHomePhabricator

Use API endpoint when creating a new Lexeme
Closed, ResolvedPublic

Description

We decided we want the vue app to create Lexemes via a POST request with mw.api to the action API.

Acceptance criteria:

  • the new Lexeme is created without the page being reloaded
  • it uses mw.api that is injected into the app

Open questions:

  • what tags should we add now? – same as the current special page
  • does this also include redirecting to a newly created Lexeme? – no

Notes:

  • This does not yet include error handling, it is fine to log them into the console for now

Event Timeline

Task Breakdown Note:
We decided not to open a dedicated task for injecting mw.api into the app, the corresponding acceptance criteria in this task should do.
mw.api should be used as discussed in the meeting notes.

  • we need input from @Lydia_Pintscher regarding which tags to use in the new lexeme page.
  • in order to keep this task focused we decided against including redirecting to newly created lexemes as part of this task.

Change 769702 had a related patch set uploaded (by Noa wmde; author: Noa wmde):

[mediawiki/extensions/WikibaseLexeme@master] Set up init() as the new app entrypoint

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

  • we need input from @Lydia_Pintscher regarding which tags to use in the new lexeme page.

We want to continue with the same tag that the current page uses: Wikidata User Interface (example)

Change 769702 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Set up init() as the new app entrypoint

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

Change 771371 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/WikibaseLexeme@master] Pass tags into NewLexemeAlpha

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

Change 771380 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/WikibaseLexeme@master] Stop passing token into NewLexemeAlpha

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

Change 771380 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Stop passing token into NewLexemeAlpha

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

Change 771371 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Pass tags into NewLexemeAlpha

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