Skip to content

Conversation

@jaalah-akamai
Copy link
Contributor

@jaalah-akamai jaalah-akamai commented May 20, 2024

Description 📝

Remove the parentChildAccountAccess feature flag logic now that the feature has been in production for some time.

Changes 🔄

  • Removed feature flags from code, unit tests, and cypress e2e tests

Target release date 🗓️

Next release: 5/28

How to test 🧪

Prerequisites

Verification steps

  • Run unit tests: yarn test
  • Run E2E tests:
yarn cy:run -s "cypress/e2e/core/account/account-cancellation.spec.ts,cypress/e2e/core/account/account-login-history.spec.ts,cypress/e2e/core/account/display-settings.spec.ts,cypress/e2e/core/account/personal-access-tokens.spec.ts,cypress/e2e/core/account/user-permissions.spec.ts,cypress/e2e/core/account/user-verification-banner.spec.ts,cypress/e2e/core/account/users-landing-page.spec.ts,cypress/e2e/core/billing/billing-contact.spec.ts,cypress/e2e/core/billing/restricted-user-billing.spec.ts,cypress/e2e/core/parentChild/account-switching.spec.ts,cypress/e2e/core/parentChild/token-expiration.spec.ts"
  • Ensure that parent child features are not displayed for default accounts.
  • Ensure that the features are enabled for parent/child accounts.

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

Commit message and pull request title format standards

Note: Remove this section before opening the pull request
Make sure your PR title and commit message on squash and merge are as shown below

<commit type>: [JIRA-ticket-number] - <description>

Commit Types:

  • feat: New feature for the user (not a part of the code, or ci, ...).
  • fix: Bugfix for the user (not a fix to build something, ...).
  • change: Modifying an existing visual UI instance. Such as a component or a feature.
  • refactor: Restructuring existing code without changing its external behavior or visual UI. Typically to improve readability, maintainability, and performance.
  • test: New tests or changes to existing tests. Does not change the production code.
  • upcoming: A new feature that is in progress, not visible to users yet, and usually behind a feature flag.

Example: feat: [M3-1234] - Allow user to view their login history


@jaalah-akamai jaalah-akamai self-assigned this May 20, 2024
@jaalah-akamai jaalah-akamai requested review from a team as code owners May 20, 2024 17:17
@jaalah-akamai jaalah-akamai requested review from AzureLatte, abailly-akamai and mjac0bs and removed request for a team May 20, 2024 17:17
@jaalah-akamai jaalah-akamai changed the title chore: [M3-7554, M3-7559] - Post Release Cleanup Parent/Child Feature Flags removed: [M3-7554, M3-7559] - Post Release Cleanup Parent/Child Feature Flags May 20, 2024
*/
it('cannot edit billing information with read-only account access', () => {
const mockProfile = profileFactory.build({
username: randomLabel(),

Check failure

Code scanning / CodeQL

Insecure randomness

This uses a cryptographically insecure random number generated at [Math.random()](1) in a security context.
*/
it('cannot edit billing information as child account', () => {
const mockProfile = profileFactory.build({
username: randomLabel(),

Check failure

Code scanning / CodeQL

Insecure randomness

This uses a cryptographically insecure random number generated at [Math.random()](1) in a security context.
*/
it('can edit billing information as a regular user and as a parent user', () => {
const mockProfileRegular = profileFactory.build({
username: randomLabel(),

Check failure

Code scanning / CodeQL

Insecure randomness

This uses a cryptographically insecure random number generated at [Math.random()](1) in a security context.
` Please contact your ${PARENT_USER} to request the necessary permissions.`
);
const mockProfileParent = profileFactory.build({
username: randomLabel(),

Check failure

Code scanning / CodeQL

Insecure randomness

This uses a cryptographically insecure random number generated at [Math.random()](1) in a security context.
@github-actions
Copy link

github-actions bot commented May 20, 2024

Coverage Report:
Base Coverage: 81.52%
Current Coverage: 81.52%

Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

Thanks for removing the flag. It is done! 🎉

  • Code looks good with removal of flag.
  • Manually confirmed that parent (unrestricted and restricted), proxy, and child account basic flows to confirm users had expected enabled/disabled states and things like API tokens are being created correctly. Did not see any regressions.
  • Confirmed default accounts don't see account switching UI components.
  • Confirmed account switching is still working as expected.
  • Confirmed the feature flag is no longer present in our dev tools.
  • Confirmed relevant tests pass - the one failure in CI is an unrelated create-stackscripts test which was failing last week and fixed... this branch might not have been created off the latest develop.

"@linode/manager": Removed
---

Post release cleanup of parent/child feature flags ([#10489](https://github.com/linode/manager/pull/10489))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Post release cleanup of parent/child feature flags ([#10489](https://github.com/linode/manager/pull/10489))
`parentChildAccountAccess` feature flag ([#10489](https://github.com/linode/manager/pull/10489))

@mjac0bs mjac0bs added the Add'tl Approval Needed Waiting on another approval! label May 20, 2024
@abailly-akamai
Copy link
Contributor

@jaalah-akamai any reason why this contribution is not coming from your fork?

@AzureLatte AzureLatte removed their request for review May 21, 2024 15:26
@jaalah-akamai
Copy link
Contributor Author

See: #10497

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants