subscription handler excludes application categories and channel

Bug #917109 reported by Michael Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Developer registration portal
Fix Released
Low
Michael Nelson

Bug Description

When requesting a users subscriptions via the 2.0 api, sca does not include application.channel or application.categories in the response. From softwarecenteragent.models.Subscription.as_serializable:

{{{
    def as_serializable(self):
        """Turn this object into something simplejson can serialize."""
        atts = {
            'open_id': self.open_id,
            ...
            'application': self.application.as_serializable(include=[
                'name', 'archive_id', 'description', 'package_name',
                'signing_key_id', 'distro_arch_series_dict']),
            ...
        }
       ...
}}}

Note: just documenting this issue for an XXX in the USC code to remove the work-around.

Also, if we include a different Application.channel for my subscriptions (available apps uses "For Purchase"), then the client will no-longer need the "MAGIC_CHANNEL_NAME"s.

description: updated
Revision history for this message
Michael Nelson (michael.nelson) wrote :

Actually, is there any reason we don't just send the application model with all the attributes matching what we send for available apps? Not sure why we even bother using a subset here.

tags: added: client-server
description: updated
Changed in developer-portal:
assignee: nobody → Michael Nelson (michael.nelson)
status: Confirmed → Fix Committed
Changed in developer-portal:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.