Conversation
relates to STACKITCLI-441
relates to STACKITCLI-441
| ACL: []string{"0.0.0.0/0"}, | ||
| BackupSchedule: "0 0/6 * * *", | ||
| FlavorId: testFlavorId, | ||
| BackupSchedule: utils.Ptr("0 0/6 * * *"), |
There was a problem hiding this comment.
new () can be used instead of utils.Ptr()
(can be replaced everywhere)
| listFlavorsResp: &mongodbflex.ListFlavorsResponse{ | ||
| Flavors: []mongodbflex.InstanceFlavor{ | ||
| { | ||
| Id: utils.Ptr(testFlavorId), |
| return req, fmt.Errorf("get MongoDB Flex instance: %w", err) | ||
| var currentFlavor *mongodbflex.InstanceFlavor | ||
| for _, f := range flavors.Flavors { | ||
| if f.Id == currentInstance.Item.Flavor.Id { |
| } | ||
| model.FlavorId, err = getFlavorId(ctx, model, apiClient.DefaultAPI) | ||
| if err != nil { | ||
| return err |
There was a problem hiding this comment.
This return should be kept, right?
If flavorId was not set and the flavorId cannot be obtained via cpu and ram then we cannot proceed here
| if err != nil { | ||
| return fmt.Errorf("get MongoDB Flex flavors: %w", err) | ||
| } | ||
|
|
| if err != nil { | ||
| return fmt.Errorf("get MongoDB Flex storages: %w", err) | ||
| } | ||
|
|
|
|
||
| table := tables.NewTable() | ||
| table.SetTitle("Versions") | ||
| table.SetHeader("VERSION") |
There was a problem hiding this comment.
nitpick: found during testing the table only has "VERSION".
So it looks like the following:
Versions
VERSION
8.0
7.0
Just an idea: We could remove the duplicate information?
Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
Merging this branch changes the coverage (3 decrease, 4 increase)
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
|
This PR was marked as stale after 7 days of inactivity and will be closed after another 7 days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it. |
Description
relates to STACKITCLI-441
Checklist
make fmtmake generate-docs(will be checked by CI)make test(will be checked by CI)make lint(will be checked by CI)