Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

use the app slug graphql query for 'replicated.app/slug' upstreams #849

Merged
merged 2 commits into from
Mar 1, 2019

Conversation

laverya
Copy link
Member

@laverya laverya commented Mar 1, 2019

What I Did

replicated.app/app-slug/?license_id=ID upstreams now use a new graphql query.

How I Did it

A new code path has been added to use a different query if an app slug is provided and a channel ID is not.

How to verify it

Look at the new init_app integration test, and at the code in pkg/specs/replicatedapp/graphql.go.

Description for the Changelog

replicated.app/app-slug/?license_id=ID upstreams are supported.

Picture of a BoatShip (not required but encouraged)

USS Richard E. Kraus (DD-849)

return nil, err
}

if shipResponse.Errors != nil && len(shipResponse.Errors) > 0 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical blocks of code found in 2 locations. Consider refactoring.

@laverya laverya force-pushed the use-app-slug-graphql-query branch 2 times, most recently from ec5f89d to d573888 Compare March 1, 2019 01:59
return nil, err
}

if shipResponse.Errors != nil && len(shipResponse.Errors) > 0 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical blocks of code found in 2 locations. Consider refactoring.

@laverya laverya force-pushed the use-app-slug-graphql-query branch from d228fd8 to 971aecf Compare March 1, 2019 19:39
@laverya laverya requested a review from Rob0h March 1, 2019 19:47
@laverya laverya marked this pull request as ready for review March 1, 2019 19:47
@laverya laverya merged commit c019498 into replicatedhq:master Mar 1, 2019
@laverya laverya deleted the use-app-slug-graphql-query branch March 1, 2019 19:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants