[
https://issues.apache.org/jira/browse/SHINDIG-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Hjelmstad updated SHINDIG-605:
-----------------------------------
Attachment: shindig-605.patch
Attached solution to this issue which, rather than attempting to order the
enumValues map, instead introduces a new entry in the RPC response:
orderedEnums. This is a JSON Array (ordered) of JSON Objects, each of which
having a "value" and "displayValue" property.
This increases payload size but is backward-compatible. All this should be
resolved with use of the RPC protocol rather than ad hoc RPC in any case.
Comments welcome.
> enumValues returned by /gadgets/metadata are in random order
> ------------------------------------------------------------
>
> Key: SHINDIG-605
> URL: https://issues.apache.org/jira/browse/SHINDIG-605
> Project: Shindig
> Issue Type: Improvement
> Components: Gadget Rendering Server (Java)
> Reporter: John Hjelmstad
> Assignee: John Hjelmstad
> Attachments: shindig-605.patch
>
>
> Because UserPref stores EnumValues as a Map, they're returned in random order
> when retrieving them via the metadata API. While not expressly codified
> anywhere, these are expected to be returned in gadget-specified order so that
> Prefs edit menus can be constructed in a reliable and user-friendly manner.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.