daniel added a comment.

This should be easy enough to implement:

- in RedirectCreationInteractor, rename checkEmpty() to checkCanOVerride()
- in checkCanOVerride(), use an EntityTitleLookup to get the entity's Title 
object.
- if Title::isDeleted returns true, it's ok to create the redirect, so 
checkCanOVerride should return normally.

For testing, it's probably best to use a mock Title returned from the mock 
EntityTitleLookup, so no actual page needs to be created and deleted.


TASK DETAIL
  https://phabricator.wikimedia.org/T71166

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Ricordisamoa, Aklapper, Addshore, matej_suchanek, Lydia_Pintscher, daniel, 
Wikidata-bugs, aude



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to