Skip to content

change: [M3-8362] – Update placement group policy text copy - #10727

Merged
jdamore-linode merged 5 commits into
linode:developfrom
carrillo-erik:change/M3-8362
Aug 1, 2024
Merged

change: [M3-8362] – Update placement group policy text copy#10727
jdamore-linode merged 5 commits into
linode:developfrom
carrillo-erik:change/M3-8362

Conversation

@carrillo-erik

@carrillo-erik carrillo-erik commented Jul 30, 2024

Copy link
Copy Markdown
Contributor

Description 📝

This PR changes the text copy found in the Placement Group create drawer, under the "Placement Group Policy" radio buttons descriptions.

Changes 🔄

The text copy updates are as follows:

  • Strict
    • Old: You can’t assign Linodes if the preferred container defined by your Affinity Type lacks capacity or is unavailable (best practice).
    • New: Allows the addition of more compute instances to the group as long as the placement group remains compliant.
  • Flexible
    • Old: You can assign Linodes, even if they’re not in the preferred container defined by your Affinity Type, but your placement group will be non-compliant.
    • New: Allows the addition of more compute instances to the group even if it breaks the placement group’s compliance.
  • Created two constants to hold the text copy instead of hard coding it inside the component.

Target release date 🗓️

08/05/2024

Preview 📷

Before After
old-pg-copy new-pg-copy

How to test 🧪

Prerequisites

(How to setup test environment)

  • Pull this branch and run it on your local machine.
  • Visit the Placement Groups create drawer by using the Create dropdown menu or the Placement Groups landing page and clicking the Create Placement Group button.

Verification steps

(How to verify changes)

  • Verify that the copy updates reflected in these changes match the description found in the Changes section above.

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@carrillo-erik carrillo-erik self-assigned this Jul 30, 2024
@carrillo-erik
carrillo-erik requested a review from a team as a code owner July 30, 2024 15:47
@carrillo-erik
carrillo-erik requested review from AzureLatte and dwiley-akamai and removed request for a team July 30, 2024 15:47
@dwiley-akamai dwiley-akamai changed the title Update placement group policy text copy change: [M3-8362] – Update placement group policy text copy Jul 30, 2024

@dwiley-akamai dwiley-akamai left a comment

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.

Confirmed copy changes ✅

Should we have a changeset for this?

@carrillo-erik

Copy link
Copy Markdown
Contributor Author

Confirmed copy changes ✅

Should we have a changeset for this?

I just pushed it, I had checked the checkbox but got sidetracked and hadn't included it.

@github-actions

github-actions Bot commented Jul 30, 2024

Copy link
Copy Markdown

Coverage Report:
Base Coverage: 82.36%
Current Coverage: 82.36%

@carrillo-erik
carrillo-erik requested a review from a team as a code owner July 30, 2024 21:16
@carrillo-erik
carrillo-erik requested review from cliu-akamai and removed request for a team July 30, 2024 21:16
@jdamore-linode

Copy link
Copy Markdown
Contributor

@carrillo-erik Merging in the latest changes from develop should resolve the Volumes failures, and the Linode delete failure can be disregarded because it's been flaky for a while, but I'm hoping to get to the bottom of those failures in the Linode Create w/ Firewall tests

@jaalah-akamai jaalah-akamai added the Approved Multiple approvals and ready to merge! label Jul 31, 2024

@jdamore-linode jdamore-linode left a comment

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.

Looks like the changes in create-linode-with-firewall.spec.ts are causing the test failures in CI. Calling mockAppendFeatureFlags() in the test body overrides the call to mockAppendFeatureFlags() in the before hook, causing the tests to fail in any LD environment where the Linode Create refactor is not actually enabled.

Normally in a case like this, the solution would be to consolidate the calls to mockAppendFeatureFlags(), but in this case we'll just remove all of these changes since the gecko2 feature flag override isn't necessary since the related PR was reverted.

Comment thread packages/manager/cypress/e2e/core/linodes/create-linode-with-firewall.spec.ts Outdated
Comment thread packages/manager/cypress/e2e/core/linodes/create-linode-with-firewall.spec.ts Outdated
Comment thread packages/manager/cypress/e2e/core/volumes/create-volume.spec.ts Outdated
Comment thread packages/manager/cypress/e2e/core/volumes/create-volume.spec.ts Outdated
Comment thread packages/manager/cypress/e2e/core/volumes/create-volume.spec.ts Outdated
@carrillo-erik

Copy link
Copy Markdown
Contributor Author

Looks like the changes in create-linode-with-firewall.spec.ts are causing the test failures in CI. Calling mockAppendFeatureFlags() in the test body overrides the call to mockAppendFeatureFlags() in the before hook, causing the tests to fail in any LD environment where the Linode Create refactor is not actually enabled.

Normally in a case like this, the solution would be to consolidate the calls to mockAppendFeatureFlags(), but in this case we'll just remove all of these changes since the gecko2 feature flag override isn't necessary since the related PR was reverted.

@jdamore-linode That's good info, thanks for sharing. It's also interesting because I recognized that I was repeating the same operation for each test, so I had consolidated the calls as you described and the tests failed. In any event, I've merged the latest from developed and removed the previous changes as requested.

@jdamore-linode jdamore-linode left a comment

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.

Thanks @carrillo-erik! Approved pending CI passing (and I'll follow up if there are failures since there are a couple unrelated flaky tests atm)

I had consolidated the calls as you described and the tests failed

Hm -- wish I had an explanation for you as to why that didn't work!

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! Placement Groups

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants