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

Save racks installed locally through the CLI #3631

Closed
wants to merge 7 commits into from

Conversation

Twsouza
Copy link
Contributor

@Twsouza Twsouza commented Jan 27, 2023

What is the feature/fix?

When a rack is installed using the CLI locally, not through the console or local rack, the installation finishes but don't keep the rack host anywhere. The CLI now will store the racks installed through it in the self-managed file.

Does it has a breaking change?

No, however past racks installed using the CLI won't be recoverable, only if the user creates the rack entry on self-managed.

How to use/test it?

  1. Login into a console (e.g. console.convox.com)
  2. Install the rack through the RC CLI (to be created).
  3. Check if the rack is listed on convox racks
  4. Switch to the new rack
  5. Uninstall it
  6. Run convox racks and the rack should not be on the list

Checklist

  • New coverage tests
  • Unit tests passing
  • E2E tests passing
  • E2E downgrade/update test passing
  • Documentation updated
  • No warnings or errors on Deepsource/Codecov

@codecov
Copy link

codecov bot commented Jan 27, 2023

Codecov Report

Base: 36.04% // Head: 36.01% // Decreases project coverage by -0.04% ⚠️

Coverage data is based on head (84a8bec) compared to base (da4f7d0).
Patch coverage: 27.45% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3631      +/-   ##
==========================================
- Coverage   36.04%   36.01%   -0.04%     
==========================================
  Files         168      168              
  Lines       18536    18585      +49     
==========================================
+ Hits         6682     6694      +12     
- Misses      10717    10751      +34     
- Partials     1137     1140       +3     
Impacted Files Coverage Δ
pkg/cli/helpers.go 45.65% <21.05%> (-4.87%) ⬇️
pkg/cli/switch.go 56.66% <37.50%> (-8.56%) ⬇️
pkg/cli/rack.go 64.70% <60.00%> (-0.21%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Twsouza
Copy link
Contributor Author

Twsouza commented Feb 1, 2023

Depends on convox/stdcli#4

@Twsouza Twsouza marked this pull request as ready for review February 1, 2023 21:15
@Twsouza
Copy link
Contributor Author

Twsouza commented Feb 1, 2023

I'm waiting for the stdcli PR to be merge so I can update this PR to include the changes.

@Twsouza
Copy link
Contributor Author

Twsouza commented Feb 3, 2023

stdcli package is updated

@Twsouza Twsouza changed the title Fix 818 cli rack install Save racks installed locally through the CLI Feb 6, 2023
@Twsouza Twsouza added this to the 20230206 milestone Feb 6, 2023
Twsouza added a commit that referenced this pull request Feb 6, 2023
### What is the feature/fix?

When a rack is installed using the CLI locally, not through the console or local rack, the installation finishes but don't keep the rack host anywhere. The CLI now will store the racks installed through it in the `self-managed` file.

### Does it has a breaking change?

No, however past racks installed using the CLI won't be recoverable, only if the user creates the rack entry on `self-managed`.

### How to use/test it?

1. Login into a console (e.g. console.convox.com)
2. Install the rack through the RC CLI (to be created).
3. Check if the rack is listed on `convox racks`
4. Switch to the new rack
5. Uninstall it
6. Run `convox racks` and the rack should not be on the list

### Checklist
- [x] New coverage tests
- [x] Unit tests passing
- [ ] E2E tests passing
- [ ] E2E downgrade/update test passing
- [ ] Documentation updated
- [ ] No warnings or errors on Deepsource/Codecov
@Twsouza Twsouza mentioned this pull request Feb 6, 2023
10 tasks
Twsouza added a commit that referenced this pull request Feb 6, 2023
### What is the feature/fix?

When a rack is installed using the CLI locally, not through the console or local rack, the installation finishes but don't keep the rack host anywhere. The CLI now will store the racks installed through it in the `self-managed` file.

### Does it has a breaking change?

No, however past racks installed using the CLI won't be recoverable, only if the user creates the rack entry on `self-managed`.

### How to use/test it?

1. Login into a console (e.g. console.convox.com)
2. Install the rack through the RC CLI (to be created).
3. Check if the rack is listed on `convox racks`
4. Switch to the new rack
5. Uninstall it
6. Run `convox racks` and the rack should not be on the list

### Checklist
- [x] New coverage tests
- [x] Unit tests passing
- [ ] E2E tests passing
- [ ] E2E downgrade/update test passing
- [ ] Documentation updated
- [ ] No warnings or errors on Deepsource/Codecov
Twsouza added a commit that referenced this pull request Feb 7, 2023
### What is the feature/fix?

When a rack is installed using the CLI locally, not through the console or local rack, the installation finishes but don't keep the rack host anywhere. The CLI now will store the racks installed through it in the `self-managed` file.

### Does it has a breaking change?

No, however past racks installed using the CLI won't be recoverable, only if the user creates the rack entry on `self-managed`.

### How to use/test it?

1. Login into a console (e.g. console.convox.com)
2. Install the rack through the RC CLI (to be created).
3. Check if the rack is listed on `convox racks`
4. Switch to the new rack
5. Uninstall it
6. Run `convox racks` and the rack should not be on the list

### Checklist
- [x] New coverage tests
- [x] Unit tests passing
- [ ] E2E tests passing
- [ ] E2E downgrade/update test passing
- [ ] Documentation updated
- [ ] No warnings or errors on Deepsource/Codecov
@Twsouza Twsouza closed this in #3636 Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants