charms/info 500ing when no results in the channel-map (for requested fields)

Bug #1911005 reported by Guillermo Gonzalez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server
Fix Released
High
Guillermo Gonzalez

Bug Description

curl "https://api.snapcraft.io/v2/charms/info/postgresql-k8s?fields=channel-map.resources"

This only request resources from a charm with no resources, and thus the channel-map is empty, we should include the channelmap just like we do with revision. as there is no point in returning empty channelmap

Changed in snapstore-server:
assignee: nobody → Guillermo Gonzalez (verterok)
status: New → Triaged
importance: Undecided → High
summary: - 500 charms/info when no results in the channel-map (for requested
+ charms/info 500ing when no results in the channel-map (for requested
fields)
Changed in snapstore-server:
status: Triaged → Fix Committed
Changed in snapstore-server:
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.