Commit Graph

5 Commits

Author SHA1 Message Date
Steven Crespo 964ba435f7 Remove conversion of values to answers 2020-10-14 13:31:37 -07:00
Yogesh Mundada f5e21b3373 Fix the values processing on cli 2020-07-12 14:07:31 -07:00
gitlawr 19930a1a37 Fix project-scoped catalog app upgrade
Problem:
When upgrading a project scoped catalog app, the externalId is not constructed properly, therefore results in version not found error.
The cause is that url parsing does not preserve query orders, given that
it turns to a map under the hood. It
breaks since we introduced 'type' param to the externalId.
For example, "catalog://?catalog=cid&type=projectCatalog&template=grafana&version=0.0.30" becomes "catalog://?catalog=cid&template=grafana&type=projectCatalog&version=0.0.30". Therefore the externalId filter does not work.

Solution:
Change the url.Encode way to get externalId for newer version
2019-07-23 16:24:37 +08:00
gitlawr 98a26fed88 update tests 2019-01-28 11:35:24 -07:00
gitlawr 4df2206170 Add unit test for parsing values to answers 2019-01-02 22:26:36 -08:00