Skip to content

Add deployable property to revisions endpoints.#1611

Merged
sethboyles merged 1 commit intomasterfrom
171637275_add_deployable_revisions
May 27, 2020
Merged

Add deployable property to revisions endpoints.#1611
sethboyles merged 1 commit intomasterfrom
171637275_add_deployable_revisions

Conversation

@sethboyles
Copy link
Copy Markdown
Member

@sethboyles sethboyles commented May 15, 2020

Meant to resolve #1567

@ssisil @selzoc @JenGoldstrich Wanted to get feedback on this solution since it's a little different from the issue's suggested solution.

Instead of a status property, this PR just surfaces a deployable property which indicates whether or not the revision can be rolled back to (i.e. the droplet is in the STAGED state).

We were hesitant to introduce state: DEPLOYED because that implies around whether or not the process is actually started. Two revisions may also be DEPLOYED at the same time (during rolling deployments)--it doesn't necessarily indicate which revision is the "current" revision. So we weren't sure if we should go down the path of figuring out if we needed to add states like DEPLOYED_AND_CURRENT, DEPLOYED_AND_NOT_CURRENT, state: NOT_DEPLOYED_AND_CURRENT, etc if being able to tell if a revision could be used to create a deployment would was the main use case here.

We can also consider adding a current and deployed flag.

TODO:

  • documentation

@cf-gitbot
Copy link
Copy Markdown

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/172864886

The labels on this github issue will be updated when the story is started.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 15, 2020

CLA Check
The committers are authorized under a signed CLA.

@sethboyles
Copy link
Copy Markdown
Member Author

Hey @bm5w, sorry for the inconvenience--I cannot merge this unless you sign the CLA. Would you like to sign it? If you don't want to, we can re-do this work in a new PR.

@bm5w
Copy link
Copy Markdown
Contributor

bm5w commented May 22, 2020

@sethboyles I filled out the CLA. Let me know if I need to do something else.

* Also allow filtering by deployable on revisions list

[#171637275]

Co-authored-by: Seth Boyles <sboyles@pivotal.io>
Co-authored-by: Mark Saiget <saiget@gmail.com>
@sethboyles sethboyles force-pushed the 171637275_add_deployable_revisions branch from d8cb82a to 9accf60 Compare May 22, 2020 22:58
@sethboyles sethboyles closed this May 22, 2020
@sethboyles sethboyles reopened this May 22, 2020
@cf-gitbot
Copy link
Copy Markdown

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/172986170

The labels on this github issue will be updated when the story is started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Status in Revisions

3 participants