@Mahir256 created https://wikifunctions.beta.wmflabs.org/wiki/Z10005 but used the wrong type for a field and, on attempting to change it, discovered that everything is broken.
Description
Event Timeline
More details please :)
- What is broken?
- Is there any indication it is specific to Beta cluster? (i.e. does the same workflow work as expected in a dev environment?)
I am not comfortable blessing the setup on the Beta cluster as 100% functional yet (by "100% functional" I mean "as good as a local instance, with no Beta-cluster-specific issues").
(Perhaps being tired of my complaints raised in another forum led to the dearth of detail in the initial task description, but...)
When I click "edit source" on that page, and I type "Z10004" into the dropdown next to "value" for the field whose label is "catena" and save, the field's type changes from "Reference^(String)" to "Reference^(Reference)", rather than to "Reference^(Catena)" as I would expect.
- Is there any indication it is specific to Beta cluster? (i.e. does the same workflow work as expected in a dev environment?)
The type creation interface on notwikilambda.toolforge.org is broken, since on adding fields to a type in the CreateZObject page there I am not prompted to name these fields nor shown the ID (Z12345K2 etc.) that they would have, so I have no clue as to this point.
As returned by the API call https://wikifunctions.beta.wmflabs.org/wiki/Special:ApiSandbox#action=wikilambda_fetch&format=json&zids=Z10005 the ZObject Z1005 is this one:
{
"Z1K1": "Z2",
"Z2K1": {
"Z1K1": "Z6",
"Z6K1": "Z10005"
},
"Z2K2": {
"Z1K1": "Z4",
"Z4K1": "Z10005",
"Z4K2": [{
"Z1K1": "Z3",
"Z3K1": "Z9",
"Z3K2": "Z10005K1",
"Z3K3": {
"Z1K1": "Z12",
"Z12K1": [{
"Z1K1": "Z11",
"Z11K1": "Z1002",
"Z11K2": "catena"
}]
}
}, {
"Z1K1": "Z3",
"Z3K1": "Z6",
"Z3K2": "Z10005K2",
"Z3K3": {
"Z1K1": "Z12",
"Z12K1": [{
"Z1K1": "Z11",
"Z11K1": "Z1002",
"Z11K2": "rel"
}]
}
}],
"Z4K3": "Z101"
},
"Z2K3": {
"Z1K1": "Z12",
"Z12K1": [{
"Z1K1": "Z11",
"Z11K1": "Z1002",
"Z11K2": "Dependent entry"
}]
},
"Z2K4": {
"Z1K1": "Z32",
"Z32K1": [{
"Z1K1": "Z31",
"Z31K1": "Z1002",
"Z31K2": []
}]
}
}There are a number of arrays in this zobject (the values of all keys Z4K2, Z12K1, Z32K1 and Z31K2) that are simple arrays instead of benjamin arrays.
This tells us that this ZObject is ancient and has not been migrated to the new list format.
I have fixed this object to the current format and used the API call https://wikifunctions.beta.wmflabs.org/wiki/Special:ApiSandbox#action=wikilambda_fetch&format=json&zids=Z10005 with the following content in "zobject" field:
(EDIT: the api url above is wrong, the correct one is this:
https://wikifunctions.beta.wmflabs.org/w/api.php?action=wikilambda_edit&format=json&summary=Updated%20Z10005&zid=Z10005&token=%2B%5C )
{
"Z1K1": "Z2",
"Z2K1": {
"Z1K1": "Z6",
"Z6K1": "Z10005"
},
"Z2K2": {
"Z1K1": "Z4",
"Z4K1": "Z10005",
"Z4K2": ["Z3", {
"Z1K1": "Z3",
"Z3K1": "Z9",
"Z3K2": "Z10005K1",
"Z3K3": {
"Z1K1": "Z12",
"Z12K1": ["Z11", {
"Z1K1": "Z11",
"Z11K1": "Z1002",
"Z11K2": "catena"
}]
}
}, {
"Z1K1": "Z3",
"Z3K1": "Z6",
"Z3K2": "Z10005K2",
"Z3K3": {
"Z1K1": "Z12",
"Z12K1": ["Z11", {
"Z1K1": "Z11",
"Z11K1": "Z1002",
"Z11K2": "rel"
}]
}
}],
"Z4K3": "Z101"
},
"Z2K3": {
"Z1K1": "Z12",
"Z12K1": ["Z11", {
"Z1K1": "Z11",
"Z11K1": "Z1002",
"Z11K2": "Dependent entry"
}]
},
"Z2K4": {
"Z1K1": "Z32",
"Z32K1": ["Z31", {
"Z1K1": "Z31",
"Z31K1": "Z1002",
"Z31K2": ["Z6"]
}]
}
}It can now be loaded.