Page MenuHomePhabricator

Re-enable editing of local properties via the entity page when federated properties are enabled
Closed, ResolvedPublic5 Estimated Story Points

Description

As a Wikibase editor, I want to be able to continue to maintain and edit my local ontology after enabling Federated Properties.

In Federated Properties v1, we disabled the editing of local properties in the Wikibase because no local properties were possible. We need to re-enable the editing of local properties while using Federated Properties v2.

Currently it fails on the entity page:

image.png (245×979 px, 21 KB)

BDD Scenario: On local property page in a Wikibase with Federated Properties enabled
GIVEN I am editing the local property (adding a statement, editing a statement, editing label/description/aliases)
WHEN I save my changes
THEN My changes are successfully saved
AND My changes are visible when the page (see: T285293)

We should also double check how well editing local properties using Special Pages (e.g. SetLabel) works.

Note:
This ticket will be simpler to verify after the completion of T285293.

Event Timeline

Tarrow updated the task description. (Show Details)
Tarrow updated the task description. (Show Details)
Samantha_Alipio_WMDE renamed this task from Re-enable editing of local properties when federated properties are enabled to Re-enable editing of local properties via the entity page when federated properties are enabled.Aug 11 2021, 12:42 PM
Samantha_Alipio_WMDE set the point value for this task to 5.
Samantha_Alipio_WMDE raised the priority of this task from Medium to High.Sep 1 2021, 9:38 AM

From task breakdown: Doesn't need breakdown.

This will likely involve

  • removing a federatedPropertiesEnabled? guard from the involved API endpoints
  • writing a new test checking that the API endpoint still fails when passed a Federated Property ID
  • potentially removing an existing test that checks that it always fails with fed props enabled

Change 717421 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] FP: re-enable editing local props when FP is enabled

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

The existing guards in the APIs all respond with wikibase-federated-properties-local-property-api-error-message which says "You can not interact with properties using this API while federated properties is enabled" which no longer makes sense.

@Samantha_Alipio_WMDE what error message should we show in case someone tries to edit a Feddy Prop via an API? Something like "You cannot interact with Federated Properties using this API"?

Change 719277 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] FP: change message shown when attempting to edit fed props

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

Change 717421 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] FP: re-enable editing local props when FP is enabled

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

Change 719277 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] FP: change message shown when attempting to edit fed props

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