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: Org Seeder - to better represent production scenario and fix admin org delete cleanup #15157

Merged
merged 3 commits into from
May 23, 2024

Conversation

hariombalhara
Copy link
Member

@hariombalhara hariombalhara commented May 22, 2024

What does this PR do?

Fixes CAL-3788
On org delete

  • Do better messaging
  • cleanup redirects

Fix seeder

  • Create redirects
  • Set movedFromUser

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected)
  • N/A I have added a Docs issue here if this PR makes changes that would require a documentation change
  • I have added or modified automated tests that prove my fix is effective or that my feature works (PRs might be rejected if logical changes are not properly tested) - It is a straightforward change testing a flow that is seldom used and only by admins.

How should this be tested?

  • Delete seeded Acme org and test that app.cal.local:3000/owner1-acme doesn't redirect any more

Copy link
Contributor

github-actions bot commented May 22, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

Copy link

vercel bot commented May 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 4:56pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 4:56pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 4:56pm

@keithwillcode keithwillcode added consumer core area: core, team members only labels May 22, 2024
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hariombalhara and the rest of your teammates on Graphite Graphite

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated seeder to create TempOrgRedirect entries and set movedFromUser column

Copy link
Contributor

github-actions bot commented May 22, 2024

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

deploysentinel bot commented May 22, 2024

Current Playwright Test Results Summary

✅ 0 Passing - ❌ 2 Failing

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 05/23/2024 04:27:36pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 8f1c35b

Started: 05/23/2024 04:25:46pm UTC

❌ Failures

📄   apps/web/playwright/booking-limits.e2e.ts • 2 Failures

Top 1 Common Error Messages

Timed out 30000ms waiting for expect(received).toBeVisible()

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Duration limits day
Retry 2Retry 1Initial Attempt
Error: Timed out 30000ms waiting for expect(received).toBeVisible()...
Timed out 30000ms waiting for expect(received).toBeVisible()
Call log:
  - expect.toBeVisible with timeout 30000ms
  - waiting for getByTestId('success-page')
  - waiting for getByTestId('success-page')

4.78% (11) 11 / 230 runs
failed over last 7 days
0.43% (1) 1 / 230 run
flaked over last 7 days
Duration limits week
Retry 2Retry 1Initial Attempt
Error: Timed out 30000ms waiting for expect(received).toBeVisible()...
Timed out 30000ms waiting for expect(received).toBeVisible()
Call log:
  - expect.toBeVisible with timeout 30000ms
  - waiting for getByTestId('success-page')
  - waiting for getByTestId('success-page')

4.78% (11) 11 / 230 runs
failed over last 7 days
0% (0) 0 / 230 runs
flaked over last 7 days

View Detailed Build Results


@hariombalhara hariombalhara changed the title Fix seeder and update message to inform well about org deletion implication fix: Org Seeder - to better represent production scenario May 23, 2024
@hariombalhara hariombalhara changed the title fix: Org Seeder - to better represent production scenario fix: Org Seeder - to better represent production scenario and fix admin org delete cleanup May 23, 2024
@hariombalhara hariombalhara force-pushed the fix-seed-show-migrated-event branch from 2415f37 to 8f1c35b Compare May 23, 2024 02:51
@hariombalhara hariombalhara added this to the v4.2 milestone May 23, 2024
@hariombalhara hariombalhara marked this pull request as ready for review May 23, 2024 02:57
@graphite-app graphite-app bot requested a review from a team May 23, 2024 02:57
@dosubot dosubot bot added organizations area: organizations, orgs 🐛 bug Something isn't working labels May 23, 2024
@hariombalhara hariombalhara marked this pull request as draft May 23, 2024 02:57
Copy link

graphite-app bot commented May 23, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (05/23/24)

1 reviewer was added to this PR based on Keith Williams's automation.

Copy link

linear bot commented May 23, 2024

Copy link
Contributor

@keithwillcode keithwillcode left a comment

Choose a reason for hiding this comment

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

Ran seed locally and everything looks good.

@keithwillcode keithwillcode enabled auto-merge (squash) May 23, 2024 13:00
auto-merge was automatically disabled May 23, 2024 16:50

Merge queue setting changed

@keithwillcode keithwillcode enabled auto-merge May 23, 2024 16:53
@keithwillcode keithwillcode disabled auto-merge May 23, 2024 16:57
@keithwillcode keithwillcode enabled auto-merge May 23, 2024 16:57
@keithwillcode keithwillcode added this pull request to the merge queue May 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 23, 2024
@keithwillcode keithwillcode added this pull request to the merge queue May 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 23, 2024
@keithwillcode
Copy link
Contributor

Will merge once #15161 goes in

@keithwillcode keithwillcode added this pull request to the merge queue May 23, 2024
Merged via the queue into main with commit 1a38169 May 23, 2024
23 of 36 checks passed
@keithwillcode keithwillcode deleted the fix-seed-show-migrated-event branch May 23, 2024 18:16
p6l-richard pushed a commit to p6l-richard/cal.com-fork that referenced this pull request Jul 22, 2024
…in org delete cleanup (calcom#15157)

* Fix seeder and update message to inform well about org deletion implication

* Cleanup tempOrgRedirect as well

---------

Co-authored-by: Keith Williams <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working consumer core area: core, team members only organizations area: organizations, orgs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants