Page MenuHomePhabricator

Frontend cleanup: Remove duplicate isNewZObject and isCreateNewPage
Closed, ResolvedPublic

Description

Description

The getters isNewZObject and isCreateNewPage both return true when we are creating a new object. Both of them are used in different places.
We should remove one of them, including the state object and the related setters and getters, and use the other everywhere.


Completion checklist

Event Timeline

Jdforrester-WMF moved this task from To triage to Backlog on the Abstract Wikipedia team board.

Change #1019338 had a related patch set uploaded (by Ecarg; author: Ecarg):

[mediawiki/extensions/WikiLambda@master] Remove duplicate isNewZObject and isCreateNewPage

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

Change #1021652 had a related patch set uploaded (by Ecarg; author: Ecarg):

[mediawiki/extensions/WikiLambda@master] Remove duplicate function

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

Change #1019338 abandoned by Ecarg:

[mediawiki/extensions/WikiLambda@master] Remove duplicate isNewZObject and isCreateNewPage

Reason:

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

Change #1021652 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Remove duplicate function

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