Page MenuHomePhabricator

Hide annotation fields that will not be visible on the tool's card or details
Closed, ResolvedPublicFeature

Description

There are a number of annotations fields which are duplicates of fields in the core toolinfo.json standard. These annotations are intended to allow community members to "backfill" missing information from published toolinfo.json records based on older versions of the toolinfo.json standard.

The values from these fields are only shown in our native UI when the corresponding core value is missing/empty. To reduce confusion by users about fields that they can change but not see the result of changing in the UI, I believe we should hide any annotations which already have data in the core toolinfo.

Fields to conditionally hide:

  • deprecated
  • replaced_by
  • experimental
  • for_wikis
  • icon
  • available_ui_languages
  • tool_type
  • api_url
  • developer_docs_url
  • user_docs_url
  • feedback_url
  • privacy_policy_url
  • translate_url
  • bugtracker_url

An alternative to hiding the field would be to show a read-only field with the data from the base record.

Event Timeline

bd808 triaged this task as Medium priority.Apr 11 2022, 10:00 PM
bd808 changed the subtype of this task from "Task" to "Feature Request".
bd808 added a parent task: T195681: Toolinfo annotations.

@bd808 do you think it makes sense to do the same thing when the tool author is editing the core tool records, only that this time the fields will remain editable but will be auto-filled with the content of the corresponding annotations field if any?

Change 785973 had a related patch set uploaded (by BryanDavis; author: Raymond Ndibe):

[wikimedia/toolhub@main] ui: disable certain annotation fields for certain users

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

Change 785973 had a related patch set uploaded (by Raymond Ndibe; author: Raymond Ndibe):

[wikimedia/toolhub@main] ui: disable certain annotation fields for certain users

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

Change 785973 merged by jenkins-bot:

[wikimedia/toolhub@main] ui: disable certain annotation fields for certain users

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

Change 868183 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[operations/deployment-charts@master] toolhub: bump container to 2022-12-14-185830-production

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

Change 868183 merged by jenkins-bot:

[operations/deployment-charts@master] toolhub: bump container to 2022-12-14-185830-production

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