You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "John Hjelmstad (JIRA)" <ji...@apache.org> on 2008/09/17 01:49:44 UTC
[jira] Created: (SHINDIG-605) enumValues returned by
/gadgets/metadata are in random order
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
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.
[jira] Resolved: (SHINDIG-605) enumValues returned by
/gadgets/metadata are in random order
Posted by "John Hjelmstad (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hjelmstad resolved SHINDIG-605.
------------------------------------
Resolution: Fixed
Applied.
> 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.
[jira] Assigned: (SHINDIG-605) enumValues returned by
/gadgets/metadata are in random order
Posted by "John Hjelmstad (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hjelmstad reassigned SHINDIG-605:
--------------------------------------
Assignee: John Hjelmstad
> 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
>
> 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.
[jira] Updated: (SHINDIG-605) enumValues returned by
/gadgets/metadata are in random order
Posted by "John Hjelmstad (JIRA)" <ji...@apache.org>.
[ 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.