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 the right date override on removal #13988

Merged
merged 12 commits into from
Mar 13, 2024

Conversation

emrysal
Copy link
Contributor

@emrysal emrysal commented Mar 5, 2024

What does this PR do?

  • Fixes translations on the Weekday in the date override listing
  • Deletes the right list item on delete
  • Adds test to verify the delete behaviour
  • Further tests to add verify text display client-side.

@emrysal emrysal requested a review from sean-brydon March 5, 2024 21:23
Copy link
Contributor

github-actions bot commented Mar 5, 2024

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

@keithwillcode keithwillcode added core area: core, team members only foundation labels Mar 5, 2024
Copy link

vercel bot commented Mar 5, 2024

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

4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 8:21pm
cal ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 8:21pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 8:21pm
qa ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 8:21pm

Copy link
Contributor

github-actions bot commented Mar 5, 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 Mar 5, 2024

Current Playwright Test Results Summary

✅ 304 Passing - ⚠️ 5 Flaky

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

(Last updated on 03/13/2024 08:29:33pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: be1f979

Started: 03/13/2024 08:25:59pm UTC

⚠️ Flakes

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Preview Preview - embed-core should load
Retry 1Initial Attempt
0% (0) 0 / 247 runs
failed over last 7 days
36.03% (89) 89 / 247 runs
flaked over last 7 days

📄   apps/web/playwright/organization/organization-invitation.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Organization Email not matching orgAutoAcceptEmail nonexisting user invited to an organization
Retry 1Initial Attempt
0.45% (1) 1 / 220 run
failed over last 7 days
10% (22) 22 / 220 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
0% (0) 0 / 246 runs
failed over last 7 days
1.22% (3) 3 / 246 runs
flaked over last 7 days

📄   apps/web/playwright/availability.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Availablity it can delete date overrides
Retry 1Initial Attempt
25% (1) 1 / 4 run
failed over last 7 days
50% (2) 2 / 4 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Inline Iframe Inline Iframe - Configured with Dark Theme
Retry 1Initial Attempt
4.44% (11) 11 / 248 runs
failed over last 7 days
46.37% (115) 115 / 248 runs
flaked over last 7 days

View Detailed Build Results


Copy link

socket-security bot commented Mar 7, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/[email protected] None 0 1.63 MB types
npm/[email protected] None 0 687 kB davidgoli
npm/[email protected] environment 0 212 kB skn0tt

🚮 Removed packages: npm/@formkit/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@react-icons/[email protected], npm/@rollup/[email protected], npm/@savvywombat/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@tailwindcss/[email protected], npm/@tailwindcss/[email protected], npm/@tailwindcss/[email protected], npm/@tanstack/[email protected], npm/@todesktop/[email protected], npm/@trivago/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@vitejs/[email protected], npm/@wojtekmaj/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@github-actions github-actions bot added consumer 🐛 bug Something isn't working labels Mar 11, 2024
@emrysal emrysal added High priority Created by Linear-GitHub Sync and removed Medium priority Created by Linear-GitHub Sync labels Mar 11, 2024
@github-actions github-actions bot added the Medium priority Created by Linear-GitHub Sync label Mar 11, 2024
@emrysal emrysal marked this pull request as ready for review March 11, 2024 22:59
@graphite-app graphite-app bot requested review from a team March 11, 2024 22:59
@emrysal emrysal removed the request for review from a team March 11, 2024 22:59
Copy link

graphite-app bot commented Mar 11, 2024

Graphite Automations

"Add foundation team as reviewer" took an action on this PR • (03/11/24)

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

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

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

name: "dateOverrides",
});
const excludedDates = fields.map((field) => dayjs(field.ranges[0].start).utc().format("YYYY-MM-DD"));
const excludedDates = useExcludedDates();
Copy link
Contributor

Choose a reason for hiding this comment

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

why can't we use

fields.map((field) => dayjs(field.ranges[0].start).utc().format("YYYY-MM-DD")); here?

await page.getByTestId("add-override-submit-btn").click();
await page.getByTestId("dialog-rejection").click();

const dateOverrideList = page.locator('[data-testid="date-overrides-list"] > li');
Copy link
Contributor

@Udit-takkar Udit-takkar Mar 12, 2024

Choose a reason for hiding this comment

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

no await required here ?

Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

Works fine. Just left some comments

const router = useRouter();
const utils = trpc.useUtils();
const { isPending, mutate } = trpc.viewer.availability.schedule.delete.useMutation({
onError: withErrorFromUnknown((err) => {

This comment was marked as resolved.

Copy link
Member

Choose a reason for hiding this comment

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

zomars
zomars previously approved these changes Mar 13, 2024
Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@zomars zomars merged commit 2803b50 into main Mar 13, 2024
36 of 38 checks passed
@zomars zomars deleted the bugfix/wrong-date-override-removed-on-remove branch March 13, 2024 20:30
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 foundation High priority Created by Linear-GitHub Sync Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3169] Wrong override being deleted
5 participants