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: Remove/Update behaviour of date-overrides #10116

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

emrysal
Copy link
Contributor

@emrysal emrysal commented Jul 13, 2023

What does this PR do?

This is not the cleanest approach, but the existing mechanism didn't work in a few situations because of the date sort. The update caused a re-render that caused an invalid unsortedFieldArrayMap.

Reproduction/how to test:

Updating bug was hit when you changed the date and it went before another date (re-ordering); which then modified the wrong date override. This PR replaces the entire array which retains the correct sort order by brute force.

Delete bug was encountered if the sorted order was not the same as the filtered order, which depends on the order you created the date overrides in. This PR implements an original order before the sort causing the right item to be removed.

Fixes #8043

@vercel
Copy link

vercel bot commented Jul 13, 2023

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

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview Jul 13, 2023 0:04am
cal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 13, 2023 0:04am
ui ✅ Ready (Inspect) Visit Preview Jul 13, 2023 0:04am

@alwaysmeticulous
Copy link

alwaysmeticulous bot commented Jul 13, 2023

🤖 Meticulous spotted visual differences in 73 of 208 screens tested: view and approve differences detected.

Last updated for commit f96c641. This comment will update as new commits are pushed.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 13, 2023

Thank you for following the naming conventions! 🙏

@zomars zomars added the core area: core, team members only label Jul 13, 2023
@emrysal emrysal added High priority Created by Linear-GitHub Sync bookings area: bookings, availability, timezones, double booking labels Jul 13, 2023
@deploysentinel
Copy link

deploysentinel bot commented Jul 13, 2023

Current Playwright Test Results Summary

✅ 88 Passing - ⚠️ 3 Flaky

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

(Last updated on 07/13/2023 12:13:35am UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: f96c641

Started: 07/13/2023 12:12:00am UTC

⚠️ Flakes

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should be able to reschedule
Retry 1Initial Attempt
2.27% (1) 1 / 44 run
failed over last 7 days
97.73% (43) 43 / 44 runs
flaked over last 7 days

📄   packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Routing Link - Reporting and CSV Download
Retry 1Initial Attempt
3.03% (6) 6 / 198 runs
failed over last 7 days
40.91% (81) 81 / 198 runs
flaked over last 7 days

📄   apps/web/playwright/integrations-stripe.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Stripe integration Pending payment booking should not be confirmed by default
Retry 1Initial Attempt
0.67% (2) 2 / 297 runs
failed over last 7 days
10.44% (31) 31 / 297 runs
flaked over last 7 days

View Detailed Build Results


@github-actions
Copy link
Contributor

📦 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
Member

@zomars zomars left a comment

Choose a reason for hiding this comment

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

LGTM

@zomars zomars merged commit ef49fc4 into main Jul 13, 2023
33 of 34 checks passed
@zomars zomars deleted the bugfix/fix-replace-and-delete-behaviour-date-overrides branch July 13, 2023 00:45
@zomars
Copy link
Member

zomars commented Jul 13, 2023

@zomars merged this pull request with Graphite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bookings area: bookings, availability, timezones, double booking core area: core, team members only High priority Created by Linear-GitHub Sync
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[CAL-1382] Issue when deleting date overrides
2 participants