Conversation
relates to STACKITCLI-441
relates to STACKITCLI-441
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
|
| 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) | ||
| } | ||
|
|
| `List MongoDB Flex storage options for a given flavor. The flavor ID can be retrieved by running "$ stackit mongodbflex options --flavors"`, | ||
| "$ stackit mongodbflex options --storages --flavor-id <FLAVOR_ID>"), | ||
| ), | ||
| Deprecated: `Command "stackit mongodbflex options" command is deprecated and will be removed after 2027-03-07. Please use "stackit mongodbflex version list", "stackit mongodbflex flavor list" and "stackit mongodbflex storage list" commands instead.`, |
There was a problem hiding this comment.
| Deprecated: `Command "stackit mongodbflex options" command is deprecated and will be removed after 2027-03-07. Please use "stackit mongodbflex version list", "stackit mongodbflex flavor list" and "stackit mongodbflex storage list" commands instead.`, | |
| Deprecated: `Command "stackit mongodbflex options" is deprecated and will be removed after 2027-03-07. Please use "stackit mongodbflex version list", "stackit mongodbflex flavor list" and "stackit mongodbflex storage list" commands instead.`, |
|
|
||
| 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?
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)