You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "impetus technologies (JIRA)" <ji...@apache.org> on 2008/09/17 12:49:46 UTC

[jira] Created: (SHINDIG-608) Gender field is not defined properly in canonicaldb.json

Gender field is not defined properly in canonicaldb.json
--------------------------------------------------------

                 Key: SHINDIG-608
                 URL: https://issues.apache.org/jira/browse/SHINDIG-608
             Project: Shindig
          Issue Type: Bug
         Environment: windows
            Reporter: impetus technologies
         Attachments: canonicaldb.json.patch

Gender field is defined as
"gender" : "male" and "gender" : "female"

that's why it is displaying "undefined" in gadgets instead of male/female.

which should be
"gender" : {"displayValue":"male","key":"MALE"} and "gender" : {"displayValue":"female","key":"FEMALE"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-608) Gender field is not defined properly in canonicaldb.json

Posted by "impetus technologies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632515#action_12632515 ] 

impetus technologies commented on SHINDIG-608:
----------------------------------------------

Hi Cassie,

No its not a bug in restful container PHP, Actually sample container is not working currently for PHP Shindig, so I have just used sample container from some previous release. That's why it was not working. I got it now and hence this issue can be closed.

> Gender field is not defined properly in canonicaldb.json
> --------------------------------------------------------
>
>                 Key: SHINDIG-608
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-608
>             Project: Shindig
>          Issue Type: Bug
>         Environment: windows
>            Reporter: impetus technologies
>         Attachments: canonicaldb.json.patch
>
>
> Gender field is defined as
> "gender" : "male" and "gender" : "female"
> that's why it is displaying "undefined" in gadgets instead of male/female.
> which should be
> "gender" : {"displayValue":"male","key":"MALE"} and "gender" : {"displayValue":"female","key":"FEMALE"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-608) Gender field is not defined properly in canonicaldb.json

Posted by "Cassie Doll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631820#action_12631820 ] 

Cassie Doll commented on SHINDIG-608:
-------------------------------------

This is an incorrect statement. The new restful/rpc specs align with portable contacts where gender is not an enum it is just a string. 

So, the canonicaldb.json file is right. I believe the jsonrpccontainer/java side is handling this correctly so i'm guessing that the php side perhaps just has a bug. 

> Gender field is not defined properly in canonicaldb.json
> --------------------------------------------------------
>
>                 Key: SHINDIG-608
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-608
>             Project: Shindig
>          Issue Type: Bug
>         Environment: windows
>            Reporter: impetus technologies
>         Attachments: canonicaldb.json.patch
>
>
> Gender field is defined as
> "gender" : "male" and "gender" : "female"
> that's why it is displaying "undefined" in gadgets instead of male/female.
> which should be
> "gender" : {"displayValue":"male","key":"MALE"} and "gender" : {"displayValue":"female","key":"FEMALE"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-608) Gender field is not defined properly in canonicaldb.json

Posted by "impetus technologies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632094#action_12632094 ] 

impetus technologies commented on SHINDIG-608:
----------------------------------------------

Hi cassie,

You are right, but now my question is what about the gadgets which are already using the old style gender, like SocialHelloWorld.xml which comes with Sample container and there may be many more.

> Gender field is not defined properly in canonicaldb.json
> --------------------------------------------------------
>
>                 Key: SHINDIG-608
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-608
>             Project: Shindig
>          Issue Type: Bug
>         Environment: windows
>            Reporter: impetus technologies
>         Attachments: canonicaldb.json.patch
>
>
> Gender field is defined as
> "gender" : "male" and "gender" : "female"
> that's why it is displaying "undefined" in gadgets instead of male/female.
> which should be
> "gender" : {"displayValue":"male","key":"MALE"} and "gender" : {"displayValue":"female","key":"FEMALE"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-608) Gender field is not defined properly in canonicaldb.json

Posted by "Cassie Doll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632241#action_12632241 ] 

Cassie Doll commented on SHINDIG-608:
-------------------------------------

In jsonrpccontainer and restfulcontainer.js you will see both classes making a call like this: FieldTranslations.translateServerPersonToJsPerson(serverJson);

this calls out to fieldtranslations.js which takes the serverJson and makes it backwards compatible with the json the opensocial js apis need. specifically, you will see:

  if (serverJson.gender) {
    var key = serverJson.gender == 'male' ? 'MALE' :
              (serverJson.gender == 'female') ? 'FEMALE' :
              null;
    serverJson.gender = {key : key, displayValue : serverJson.gender};
  }

So the js should be fine. The api for gadgets should not have changed at all. This is working on the java side for jsonrpccontainer so maybe there is just a bug in the restfulcontainer file for php?

> Gender field is not defined properly in canonicaldb.json
> --------------------------------------------------------
>
>                 Key: SHINDIG-608
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-608
>             Project: Shindig
>          Issue Type: Bug
>         Environment: windows
>            Reporter: impetus technologies
>         Attachments: canonicaldb.json.patch
>
>
> Gender field is defined as
> "gender" : "male" and "gender" : "female"
> that's why it is displaying "undefined" in gadgets instead of male/female.
> which should be
> "gender" : {"displayValue":"male","key":"MALE"} and "gender" : {"displayValue":"female","key":"FEMALE"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-608) Gender field is not defined properly in canonicaldb.json

Posted by "impetus technologies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

impetus technologies updated SHINDIG-608:
-----------------------------------------

    Attachment: canonicaldb.json.patch

> Gender field is not defined properly in canonicaldb.json
> --------------------------------------------------------
>
>                 Key: SHINDIG-608
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-608
>             Project: Shindig
>          Issue Type: Bug
>         Environment: windows
>            Reporter: impetus technologies
>         Attachments: canonicaldb.json.patch
>
>
> Gender field is defined as
> "gender" : "male" and "gender" : "female"
> that's why it is displaying "undefined" in gadgets instead of male/female.
> which should be
> "gender" : {"displayValue":"male","key":"MALE"} and "gender" : {"displayValue":"female","key":"FEMALE"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SHINDIG-608) Gender field is not defined properly in canonicaldb.json

Posted by "Cassie Doll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cassie Doll resolved SHINDIG-608.
---------------------------------

    Resolution: Won't Fix
      Assignee: Cassie Doll

> Gender field is not defined properly in canonicaldb.json
> --------------------------------------------------------
>
>                 Key: SHINDIG-608
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-608
>             Project: Shindig
>          Issue Type: Bug
>         Environment: windows
>            Reporter: impetus technologies
>            Assignee: Cassie Doll
>         Attachments: canonicaldb.json.patch
>
>
> Gender field is defined as
> "gender" : "male" and "gender" : "female"
> that's why it is displaying "undefined" in gadgets instead of male/female.
> which should be
> "gender" : {"displayValue":"male","key":"MALE"} and "gender" : {"displayValue":"female","key":"FEMALE"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.