Page MenuHomePhabricator

Implementation/Tester creation: When loading implementation/tester creation page from function definition page the Function Zid is not pre-selected
Open, Needs TriagePublicBUG REPORT

Description

Description

Steps to reproduce:

  1. For implementation: click on the link https://wikifunctions.beta.wmflabs.org/wiki/Special:CreateZObject?zid=Z14&Z14K1=Z10097
  2. For tester: click on the link https://wikifunctions.beta.wmflabs.org/wiki/Special:CreateZObject?zid=Z20&Z20K1=Z10097

Observed behavior:

  • These links have the props Z14K1=Z10097 and Z20K1=Z10097 so that the field "function" in the create zobject page is pre-loaded
  • But the field is empty

Expected behavior (Acceptance criteria):

  • The function field in both pages should be preloaded with the function Z10097/Mushroom scientific name

Completion checklist

Event Timeline

Change 866460 had a related patch set uploaded (by Dani DW; author: Dani DW):

[mediawiki/extensions/WikiLambda@master] Implementation/Tester creation: When loading implementation/tester creation page from function definition page the Function Zid is not pre-selected.

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

Ddwaal added a subscriber: Ddwaal.

So sorry @Teleosteen , didn't see you had claimed this before I worked on it! I have a patch attached above, hope there wasn't double work done. Feel free to share if you had come up with something else, it might be cleaner than mine.. :) was a bit of a messy problem. If not, then I will add some tests to the above, or you may!

And to answer your question @Teleosteen, yes this is a duplicate of T323381

@Ddwaal-WMF Thanks for your answer. If you would like, I propose you therefore to you take a look at the patches I made in T323381.

Change 866460 abandoned by Dani DW:

[mediawiki/extensions/WikiLambda@master] Implementation/Tester creation: When loading implementation/tester creation page from function definition page the Function Zid is not pre-selected.

Reason:

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/861917 fixes the issue

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