Skip to content

feat(sqlserverflex): refactor wait handler to use helper struct#7448

Open
GokceGK wants to merge 3 commits into
mainfrom
feat/STACKITSDK-394-sqlserverflex-refactor-wait-handler
Open

feat(sqlserverflex): refactor wait handler to use helper struct#7448
GokceGK wants to merge 3 commits into
mainfrom
feat/STACKITSDK-394-sqlserverflex-refactor-wait-handler

Conversation

@GokceGK
Copy link
Copy Markdown
Contributor

@GokceGK GokceGK commented May 26, 2026

Description

relates to STACKITSDK-394

Checklist

  • Issue was linked above
  • No generated code was adjusted manually (check comments in file header)
  • Changelogs
    • Changelog in the root directory was adjusted (see here)
    • Changelog(s) of the service(s) were adjusted (see e.g. here)
  • VERSION file(s) of the service(s) were adjusted
  • Code format was applied: make fmt
  • Examples were added / adjusted (see examples/ directory)
  • 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 May 26, 2026 11:41
return *response.Item.Status, nil
},
ActiveState: []string{InstanceStateSuccess},
ErrorState: []string{InstanceStateUnknown, InstanceStateFailed, InstanceStateEmpty},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to adjust to new structure (enum change)

switch strings.ToLower(*s.Item.Status) {
case strings.ToLower(InstanceStateSuccess):
return true, s, nil
case strings.ToLower(InstanceStateUnknown), strings.ToLower(InstanceStateFailed):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, what about this "toLower" here? Is this based on an API issue?

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.

2 participants