Page MenuHomePhabricator

Function page: Set an appropriate (user-editable?) edit summary when approving/disabling implementations and testers
Closed, ResolvedPublic

Assigned To
Authored By
aishwaryavardhana
Mar 9 2022, 5:50 PM
Referenced Files
F35965177: image.png
Jan 3 2023, 3:48 PM
F35965178: image.png
Jan 3 2023, 3:48 PM
Unknown Object (File)
Jan 3 2023, 3:32 PM
Unknown Object (File)
Jan 3 2023, 3:32 PM
F35962309: CleanShot 2023-01-03 at 16.15.08@2x.png
Jan 3 2023, 3:32 PM
F35962287: image.png
Jan 3 2023, 3:32 PM

Description

Problem: Currently no edit summary UX when approving or disabling an implementation or tester on view function page user flow when the user is on the 'Details' tab

Where in the user flow of editing a function page should we incorporate the users ability to add an edit summary? (Could be done on the confirmation modal)

Event Timeline

@krillrivera I think you have the wrong parent task? I don't think this is anything to do with Swift rings?

Jdforrester-WMF renamed this task from Function page: Edit summary to Function page: Set an appropriate (user-editable?) edit summary when approving/disabling implementations and testers.Dec 12 2022, 2:46 PM

@gengh could we use the publish flow (with the publish component) for these type of actions too?

@AAlhazwani-WMF I'm not sure if including the publish component in this action is what we want, disabling-enabling an implementation/tester is currently a really dynamic action (if the user has the rights to do so), and adding publish component might mean adding more steps to the process and maybe making it more hectic.
I notice that in the title of this task there's a question mark on "user-editable", so I'm not sure if this is something decided or not. We should first decide:

  • Is there any reason why the user would want to edit the edit summary for this? Or is something like "enable tester Zxxxxx and disable tester Zyyyyy" enough?

My feeling is that adding an automatic summary that is descriptive enough is fairly easy for launch, and modifying it to allow users to edit it can be an additional feature post-launch and only if editors require it.
In case we decide to make it editable now for launch, including the publish component in the flow should be the solution.

My feeling is that adding an automatic summary that is descriptive enough is fairly easy for launch, and modifying it to allow users to edit it can be an additional feature post-launch and only if editors require it.

Yup, that make sense, thanks for the extra context @gengh!

Looking at the current copy on the page (implementations, test cases, approve, deactivate, ...)

image.png (1×1 px, 165 KB)

and at what Wikipedia currently does

CleanShot 2023-01-03 at 16.15.08@2x.png (1×2 px, 633 KB)

we could opt for something similar(?) to →{anchor to the table} + {approve|deactivate} + {implementation/test case name}

Some examples using the screenshot above:

  • →Implementations: Approve Convert °C to °F, °C to °F: Composition
  • →Test cases: Deactivate 0⁰C is 32⁰F

where '→Implementations' or '→Test cases' links to the table on the function page, and where multiple implementations or test cases are comma separated.

image.png (62×1 px, 41 KB)

If useful, we could also link to the implementations/test cases in the edit message?

image.png (60×1 px, 41 KB)

With this proposal we wouldn't need any new copy as we would use the already existing wording. What do you think?

gengh removed gengh as the assignee of this task.Jul 31 2023, 4:19 PM
gengh subscribed.

Change 945770 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] WIP: Add edit summary when approving/deactivating imps and testers

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

Jdforrester-WMF changed the task status from Open to In Progress.Aug 29 2023, 2:50 PM
Jdforrester-WMF moved this task from Backlog to In Progress on the Abstract Wikipedia team board.

@Jdforrester-WMF I was looking at the WIP and it looked good! do you need any help for unblocking this?

@Jdforrester-WMF I was looking at the WIP and it looked good! do you need any help for unblocking this?

Yes, if you can work out where the browser tests are failing that'd be smashing. Otherwise I will try to pick this back up soonish.

Please see https://www.wikifunctions.org/wiki/Wikifunctions:Project_chat#Question_regarding_identifying_failing_or_unconnected_tests. If that discussion goes no further, my feeling is that a reason for disconnection should always be given (whether it is a Test or an Implementation that is being disconnected).

Change #945770 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Add edit summary when approving/deactivating imps and testers

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

Change #1051159 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Fix automatic message for connect/disconnect function objects

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

Change #1051159 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix automatic message for connect/disconnect function objects

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