Skip to content

feat(mongodbflex): refactor implementation - #1586

Open
GokceGK wants to merge 2 commits into
mainfrom
feat/STACKITCLI-441-refactor-mongodbflex
Open

feat(mongodbflex): refactor implementation#1586
GokceGK wants to merge 2 commits into
mainfrom
feat/STACKITCLI-441-refactor-mongodbflex

Conversation

@GokceGK

@GokceGK GokceGK commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description

relates to STACKITCLI-441

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see e.g. here)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

@GokceGK
GokceGK requested a review from a team as a code owner September 7, 2026 07:52
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Merging this branch changes the coverage (3 decrease, 4 increase)

Impacted Packages Coverage Δ 🤖
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex 0.00% (ø)
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/flavor 0.00% (ø)
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/flavor/list 66.67% (+66.67%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/instance/create 46.67% (-13.33%) 💀
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/instance/describe 60.78% (+5.56%) 👍
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/instance/update 62.40% (-1.94%) 👎
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/options 61.05% (ø)
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/storage 0.00% (ø)
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/storage/list 57.14% (+57.14%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/version 0.00% (ø)
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/version/list 41.94% (+41.94%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/postgresflex/options 57.95% (ø)
github.com/stackitcloud/stackit-cli/internal/pkg/services/mongodbflex/utils 79.25% (-4.54%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/flavor/flavor.go 0.00% (ø) 4 (+4) 0 4 (+4)
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/flavor/list/list.go 66.67% (+66.67%) 36 (+36) 24 (+24) 12 (+12) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/instance/create/create.go 46.67% (-13.33%) 120 (+20) 56 (-4) 64 (+24) 💀
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/instance/describe/describe.go 60.78% (+5.56%) 51 (-16) 31 (-6) 20 (-10) 👍
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/instance/update/update.go 62.40% (-1.94%) 125 (-4) 78 (-5) 47 (+1) 👎
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/mongodbflex.go 0.00% (ø) 10 (+3) 0 10 (+3)
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/options/options.go 61.05% (ø) 95 58 37
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/storage/list/list.go 57.14% (+57.14%) 42 (+42) 24 (+24) 18 (+18) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/storage/storage.go 0.00% (ø) 4 (+4) 0 4 (+4)
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/version/list/list.go 41.94% (+41.94%) 31 (+31) 13 (+13) 18 (+18) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/version/version.go 0.00% (ø) 4 (+4) 0 4 (+4)
github.com/stackitcloud/stackit-cli/internal/cmd/postgresflex/options/options.go 57.95% (ø) 88 51 37
github.com/stackitcloud/stackit-cli/internal/pkg/services/mongodbflex/utils/utils.go 79.25% (-4.54%) 53 (-21) 42 (-20) 11 (-1) 👎

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

  • github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/flavor/list/list_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/instance/create/create_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/instance/update/update_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/storage/list/list_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/mongodbflex/version/list/list_test.go
  • github.com/stackitcloud/stackit-cli/internal/pkg/services/mongodbflex/utils/utils_test.go

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.

1 participant