fix: Changes how the deploy version is detected in app deploy command #493

Merged
decentral1se merged 3 commits from p4u1/abra:fix-deploy-env into main 2025-02-11 10:01:45 +00:00
Member

Changes how the deploy version is detect in app deploy command. Below is the before and after behaviour. Both time trying the steps until it found a version to deploy.

Old Behaviour:

  1. version from cli argument
  2. version from .env file, if it was deployed before
  3. latest version

New Behaviour:

  1. version from cli argument
  2. version from .env file
  3. version from deployed app or latest version, if it was not deployed before

Discussed this briefly with @3wordchant at the last kite-flying hour
@decentral1se What do you think about this?

TODO:

  • update tests
Changes how the deploy version is detect in `app deploy` command. Below is the before and after behaviour. Both time trying the steps until it found a version to deploy. **Old Behaviour:** 1. version from cli argument 2. version from .env file, if it was deployed before 3. latest version **New Behaviour:** 1. version from cli argument 2. version from .env file 3. version from deployed app or latest version, if it was not deployed before Discussed this briefly with @3wordchant at the last kite-flying hour @decentral1se What do you think about this? TODO: - [x] update tests
p4u1 added 1 commit 2025-01-30 13:21:32 +00:00
p4u1 force-pushed fix-deploy-env from f99172a32d to 63c10fb3b4 2025-01-30 13:24:16 +00:00 Compare
decentral1se added this to the abra v0.10.0 project 2025-02-05 15:18:08 +00:00
Owner

@p4u1 @3wordchant this seems legit to me!

We can also document this clearly for the rest as well.

With a small revision, we have 4 steps then?

  1. version from cli argument
  2. version from .env file
  3. version from deployed app
  4. version from catalogue (if undeployed)

Would definitely appreciate the extra tests.

(I'm happy to see a change coming here as I put a lottttt of time into refactoring this previously extremely spaghetti code into something that is easier to follow...)

Thanks!

@p4u1 @3wordchant this seems legit to me! We can also document this clearly for the rest as well. With a small revision, we have 4 steps then? > 1. version from cli argument > 1. version from .env file > 1. version from deployed app > 1. version from catalogue (if undeployed) Would definitely appreciate the extra tests. (I'm happy to see a change coming here as I put a lottttt of time into refactoring this previously extremely spaghetti code into something that is easier to follow...) Thanks!
p4u1 force-pushed fix-deploy-env from 4577ae753d to 33d5885f6f 2025-02-10 13:45:40 +00:00 Compare
Author
Member

@decentral1se I updated the tests. This should be ready for review now :)

@decentral1se I updated the tests. This should be ready for review now :)
decentral1se approved these changes 2025-02-11 10:01:39 +00:00
decentral1se left a comment
Owner

❤️‍🔥

❤️‍🔥
decentral1se merged commit d09a19a385 into main 2025-02-11 10:01:45 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-14 22:00:59 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-14 22:01:01 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-16 05:16:08 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-16 05:16:10 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-19 07:28:29 +00:00
decentral1se moved this to Done in abra v0.10.0 on 2025-04-21 17:48:15 +00:00
Sign in to join this conversation.
No description provided.