Ladsgroup added a comment.

Okay I did a little bit of work on this and it's way bigger than a mini hack-day to implement a basic prototype.
This is what I've got so far. There are several notes here:

  • ValueMapping is better to be done in frontend. In the backend it just doesn't work. Mostly because you can just turn value map to a set of API calls, result of API calls would determine the arguments of the next one. So something like Promise in _javascript_ would come really handy in this case.
  • The proposed value mapper spec won't work. I came up with this but this also doesn't work. You can't say which value it needs to set.
{
  "veryFancyInputId": {
    "type": "item",
    "triggers": {
      "add": {
        "P27": {
          "rank": "preferred",
          "value": "#value"
        }
      },
      "set": {
        "P27": {
          "rank": "normal"
        }
      }
    }
  },
  "veryFancyInputId2": {
    "triggers": {
      "add": {"P17"}
    }
  }




TASK DETAIL
https://phabricator.wikimedia.org/T215065

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup
Cc: WMDE-leszek, Aklapper, Jan_Dittrich, Ladsgroup, RazShuty, Charlie_WMDE, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to