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

fix model default order #1487

Merged
merged 2 commits into from
Dec 16, 2024
Merged

Conversation

SimoneDutto
Copy link
Contributor

Description

Before we get the model defaults before getting the implicit cloud and cloud region, this could result in having no default.
Now we first get the implicit cloud and then we get the defaults.

Fixes JIRA/GitHub issue number

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

Test instructions

Notes for code reviewers

@SimoneDutto SimoneDutto requested a review from a team as a code owner December 10, 2024 09:17
Copy link
Contributor

@ale8k ale8k left a comment

Choose a reason for hiding this comment

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

Not 100% what implicit cloud is, rember us discussing it on call but sounds right... approving.

@@ -245,6 +245,7 @@ func (b *modelBuilder) WithCloudRegion(region string) *modelBuilder {
continue
}
region = r.Name
break
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i've added this break, because before it seemed to me it was wrong to continue the loop if you've already found a region.
Let me know if we were relying on this behaviour for some reason

@SimoneDutto SimoneDutto merged commit fd629e9 into canonical:v3 Dec 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants