Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow compute services to be initialised from an existing service ID #125

Merged
merged 3 commits into from
Jun 15, 2020

Conversation

phamann
Copy link
Member

@phamann phamann commented Jun 9, 2020

TL;DR

Refactors compute init to accept a --service-id flag which will be used instead of provisioning a new service. This is an important feature request to bridge the UX flow between the UI -> CLI, i.e. this allows a user to first create a service via the UI and then move to the CLI to initialise the package.

@phamann phamann requested a review from thommahoney June 9, 2020 15:43
pkg/compute/init.go Outdated Show resolved Hide resolved
pkg/compute/init.go Show resolved Hide resolved
@phamann phamann requested a review from thommahoney June 9, 2020 18:25
@phamann phamann added the enhancement New feature or request label Jun 9, 2020
Copy link
Member

@thommahoney thommahoney left a comment

Choose a reason for hiding this comment

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

Comment is non-blocking. 👍

Comment on lines +278 to +286
{
name: "locked not latest",
inputVersions: []*fastly.Version{
{Number: 1, Active: false, UpdatedAt: testutil.MustParseTimeRFC3339("2000-01-01T01:00:00Z")},
{Number: 2, Active: false, Locked: true, UpdatedAt: testutil.MustParseTimeRFC3339("2000-01-02T01:00:00Z")},
{Number: 3, Active: false, UpdatedAt: testutil.MustParseTimeRFC3339("2000-01-03T01:00:00Z")},
},
wantVersion: 2,
},
Copy link
Member

Choose a reason for hiding this comment

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

This one is interesting. I wonder if we want 3 here.

@phamann phamann merged commit f6a167f into master Jun 15, 2020
@phamann phamann deleted the phamann/init-from-service branch June 15, 2020 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants