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

[Backport 5.0] No team cycles #49621

Merged
merged 1 commit into from
Mar 17, 2023
Merged

[Backport 5.0] No team cycles #49621

merged 1 commit into from
Mar 17, 2023

Conversation

github-actions[bot]
Copy link
Contributor

This change introduces a check on UpdateTeam to not introduce a circular parent relationship.

The check effectively finds all teams that are not descendants (so not in the subtree of) modified team, and looks whether the parent is there. It is only safe to set the parent team ID to a team outside of modified team's own descendants.

Test plan

This change introduces a check on `UpdateTeam` to not introduce a
circular parent relationship.

The check effectively finds all teams that _are not descendants_ (so not
in the subtree of) modified team, and looks whether the parent is there.
It is only safe to set the parent team ID to a team outside of modified
team's own descendants.

## Test plan

*   Testing database stores with Postgres.
*   Testing GraphQL API with fakes.

(cherry picked from commit da92373)
@github-advanced-security
Copy link

You have successfully added a new SonarCloud configuration ``. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

@sg-e2e-regression-test-bob

Bundle size report 📦

Initial size Total size Async size Modules
1.57% (+48.55 kb) 🔺 0.10% (+14.13 kb) 🔺 -0.30% (-34.42 kb) 🔽 -0.14% (-1) 🔽

Look at the Statoscope report for a full comparison between the commits cc87a97 and 530863b or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

@cbart cbart merged commit 450824d into 5.0 Mar 17, 2023
@cbart cbart deleted the backport-49556-to-5.0 branch March 17, 2023 18:28
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