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: [M3-8958] - LinodeCreate OS Panel fetches region with -1 on page load #11356

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

abailly-akamai
Copy link
Contributor

@abailly-akamai abailly-akamai commented Dec 3, 2024

Description 📝

Super small fix to avoid having OS panel fetching a -1 region by default.

bug introduced in https://github.com/linode/manager/pull/11206/files

The query is disabled if if there's no region ID so passing a default -1 breaks that pattern
https://github.com/linode/manager/blob/develop/packages/manager/src/queries/regions/regions.ts#L43

Changes 🔄

  • fix -1 default fetch to regions/{id} query

Target release date 🗓️

12/12/2024

Preview 📷

Screenshot 2024-12-03 at 09 56 03

How to test 🧪

Prerequisites

Verification steps

  • Verify no -1 is ran when /linodes/create?type=OS loads

@abailly-akamai abailly-akamai changed the title fix: [M3-8958] - LinodeCreate OS Panel fetching region with -1 on page load fix: [M3-8958] - LinodeCreate OS Panel fetches region with -1 on page load Dec 3, 2024
@abailly-akamai abailly-akamai self-assigned this Dec 3, 2024
@abailly-akamai abailly-akamai added the Bug Fixes for regressions or bugs label Dec 3, 2024
@abailly-akamai abailly-akamai marked this pull request as ready for review December 3, 2024 14:57
@abailly-akamai abailly-akamai requested a review from a team as a code owner December 3, 2024 14:57
@abailly-akamai abailly-akamai requested review from bnussman-akamai, harsh-akamai and hana-akamai and removed request for a team December 3, 2024 14:57
Copy link
Member

@bnussman-akamai bnussman-akamai left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@hana-akamai hana-akamai left a comment

Choose a reason for hiding this comment

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

🔍

@hana-akamai hana-akamai added the Approved Multiple approvals and ready to merge! label Dec 3, 2024
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🔺 1 failing test on test run #2 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
1 Failing464 Passing2 Skipped103m 0s

Details

Failing Tests
SpecTest
migrate-linode-with-firewall.spec.tsMigrate Linode With Firewall » migrates linode with firewall - real data

Troubleshooting

Use this command to re-run the failing tests:

yarn cy:run -s "cypress/e2e/core/firewalls/migrate-linode-with-firewall.spec.ts"

@abailly-akamai abailly-akamai merged commit d57c38d into linode:develop Dec 3, 2024
22 of 23 checks passed
@abailly-akamai abailly-akamai deleted the M3-8958 branch December 3, 2024 17:37
Copy link

cypress bot commented Dec 3, 2024

Cloud Manager E2E    Run #6912

Run Properties:  status check passed Passed #6912  •  git commit d57c38d481: fix: [M3-8958] - LinodeCreate OS Panel fetches region with -1 on page load (#113...
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #6912
Run duration 28m 45s
Commit git commit d57c38d481: fix: [M3-8958] - LinodeCreate OS Panel fetches region with -1 on page load (#113...
Committer Alban Bailly
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 465
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Bug Fixes for regressions or bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants