feat: Relaxes --force enforcement on deploy an instead error in some cases #459
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "p4u1/abra:deploy-relax-force"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@decentral1se what do you think?
Will finish when people think this is good
3988730341
to5a4dac7e76
This would be a breaking behaviour change in
abra app deploy
that it would re-deploy in some cases and in others not vs. the current behaviour: refuse to re-deploy without--force/--chaos
.That's also more internal bookkeeping that we have to do in the code. And if we handle these specific cases, then we'll be expected to handle more? The code will get harder and harder to maintain.
In both cases: 1) re-deploy a chaos deploy 2) re-deploy a downgrade - you can see this information already on the deploy overview. So, I'm not sure the break in behaviour and extra maintenance load is worth it?
Instead, why can't we improve the deploy overview?
Here's an example of the current deploy overview for a simple
deploy -f
:A
<hash>
(with optional+U
) is already shown to signal the user that it is a chaos deployment.For the downgrade, we could add a visual element to the "TO DEPLOY" (?) to signal the "going down" 🔽 If you currently try to
deploy -f [version]
a downgrade, you do have a visual indication of it:In general tho, I think if you "go it alone" with a
app deploy -f/-C
, we can't offer much guarantees because there just could be anything going with the local / remote / recipe / env / etc. state?UPDATE: I'm iterating on the overview screen: coop-cloud/abra#460
coop-cloud/abra#460
Pull request closed