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/08/18 10:57:45 UTC

[jira] Created: (SHINDIG-526) HAS_APP filter is not working with new canonical json db structure

HAS_APP filter is not  working with new canonical json db structure
-------------------------------------------------------------------

                 Key: SHINDIG-526
                 URL: https://issues.apache.org/jira/browse/SHINDIG-526
             Project: Shindig
          Issue Type: Bug
         Environment: Windows, Apache
            Reporter: impetus technologies


HAS_APP filter was working earlier with xml based data fetch, but not working with canonical json db  based data fetch.
In canonicaldb.json, hasApp is mentioned as a field inside people object and it is not related to any application. To fix this, we can modify Canonicaldb.json file, in either of the two ways:
1.applications (array of the application ids the user has installed) can be defined as a field inside people object.
 2.A separate userApplications object can be created which contain different 'id' and corresponding 'application ids' .
Based on this structure, the has_app filter code can be modified to fetch the correct value.

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


[jira] Updated: (SHINDIG-526) HAS_APP filter is not working with new canonical json db structure

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

impetus technologies updated SHINDIG-526:
-----------------------------------------

    Attachment: canonicaldb.json.patch
                JsonDbOpensocialService.php.patch

Patch files are attached. Solution is based on second way (A separate userApplications object can be created which contain different 'person ids' and corresponding 'application ids' )
Pls verify patches.

Thanks
-Ruchi Kothari

> HAS_APP filter is not  working with new canonical json db structure
> -------------------------------------------------------------------
>
>                 Key: SHINDIG-526
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-526
>             Project: Shindig
>          Issue Type: Bug
>         Environment: Windows, Apache
>            Reporter: impetus technologies
>         Attachments: canonicaldb.json.patch, JsonDbOpensocialService.php.patch
>
>
> HAS_APP filter was working earlier with xml based data fetch, but not working with canonical json db  based data fetch.
> In canonicaldb.json, hasApp is mentioned as a field inside people object and it is not related to any application. To fix this, we can modify Canonicaldb.json file, in either of the two ways:
> 1.applications (array of the application ids the user has installed) can be defined as a field inside people object.
>  2.A separate userApplications object can be created which contain different 'id' and corresponding 'application ids' .
> Based on this structure, the has_app filter code can be modified to fetch the correct value.

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


[jira] Resolved: (SHINDIG-526) HAS_APP filter is not working with new canonical json db structure

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

Chris Chabot resolved SHINDIG-526.
----------------------------------

    Resolution: Fixed
      Assignee: Chris Chabot

Patch looks good to me, applied and committed. Thanks!

> HAS_APP filter is not  working with new canonical json db structure
> -------------------------------------------------------------------
>
>                 Key: SHINDIG-526
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-526
>             Project: Shindig
>          Issue Type: Bug
>         Environment: Windows, Apache
>            Reporter: impetus technologies
>            Assignee: Chris Chabot
>         Attachments: canonicaldb.json.patch, JsonDbOpensocialService.php.patch
>
>
> HAS_APP filter was working earlier with xml based data fetch, but not working with canonical json db  based data fetch.
> In canonicaldb.json, hasApp is mentioned as a field inside people object and it is not related to any application. To fix this, we can modify Canonicaldb.json file, in either of the two ways:
> 1.applications (array of the application ids the user has installed) can be defined as a field inside people object.
>  2.A separate userApplications object can be created which contain different 'id' and corresponding 'application ids' .
> Based on this structure, the has_app filter code can be modified to fetch the correct value.

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