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: broken ui in edit location dialog issue #16013

Merged
merged 8 commits into from
Oct 14, 2024

Conversation

anikdhabal
Copy link
Contributor

@anikdhabal anikdhabal commented Jul 31, 2024

What does this PR do?

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. If N/A, write N/A here and check the checkbox.
  • N/A-I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings

Copy link

vercel bot commented Jul 31, 2024

@anikdhabal is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@keithwillcode keithwillcode added the community-interns The team responsible for reviewing, testing and shipping low/medium community PRs label Jul 31, 2024
@anikdhabal anikdhabal changed the title fix: improved code for issue#15497 fix: improved code for issue#15497 and fix broken e2e Jul 31, 2024
@anikdhabal anikdhabal changed the title fix: improved code for issue#15497 and fix broken e2e fix: improved code for issue#15497 Jul 31, 2024
@anikdhabal anikdhabal marked this pull request as ready for review July 31, 2024 19:58
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jul 31, 2024
@graphite-app graphite-app bot requested a review from a team July 31, 2024 19:59
@dosubot dosubot bot added the 🐛 bug Something isn't working label Jul 31, 2024
@anikdhabal anikdhabal marked this pull request as draft July 31, 2024 19:59
@anikdhabal anikdhabal changed the title fix: improved code for issue#15497 fix: improved code for issue#15497 and fix e2e Jul 31, 2024
Copy link

graphite-app bot commented Jul 31, 2024

Graphite Automations

"Add community label" took an action on this PR • (07/31/24)

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

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

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

@anikdhabal anikdhabal changed the title fix: improved code for issue#15497 and fix e2e fix: improved code for issue#15497 Jul 31, 2024
@github-actions github-actions bot added booking-page area: booking page, public booking page, booker Medium priority Created by Linear-GitHub Sync labels Jul 31, 2024
@anikdhabal anikdhabal changed the title fix: improved code for issue#15497 fix: improved code for meeting link is not updated and broken ui in edit location dialog issue Jul 31, 2024
@anikdhabal anikdhabal marked this pull request as ready for review July 31, 2024 20:22
@anikdhabal anikdhabal requested a review from zomars July 31, 2024 20:22
@dosubot dosubot bot added the ui area: UI, frontend, button, form, input label Jul 31, 2024
@dosubot dosubot bot added this to the v4.4 milestone Jul 31, 2024
@anikdhabal anikdhabal requested review from zomars and removed request for zomars August 13, 2024 09:41
@keithwillcode keithwillcode modified the milestones: v4.4, v4.5 Aug 19, 2024
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.

The code looks fine but in handleNewBooking we have this complex logic to set videoCallUrl

videoCallUrl =
          metadata.hangoutLink ||
          createdOrUpdatedEvent?.url ||
          organizerOrFirstDynamicGroupMemberDefaultLocationUrl ||
          getVideoCallUrlFromCalEvent(evt) ||
          videoCallUrl;

we are updating metadata in L131 in packages/trpc/server/routers/viewer/bookings/editLocation.handler.ts but not updating in booking table.

and we are not updating calendar event (evt) after

const updatedResult = await eventManager.updateLocation(evt, booking);

So I am not sure if

 metadata: {
           ...(typeof booking.metadata === "object" ? booking.metadata : {}),
           ...(location.startsWith("http") ? { videoCallUrl: location } : {}),
         },

would handle all the cases

Copy link
Contributor

github-actions bot commented Sep 3, 2024

This PR is being marked as stale due to inactivity.

@github-actions github-actions bot added the Stale label Sep 3, 2024
@Udit-takkar Udit-takkar marked this pull request as draft September 9, 2024 08:42
@github-actions github-actions bot removed the Stale label Sep 10, 2024
@keithwillcode keithwillcode modified the milestones: v4.5, v4.6 Sep 15, 2024
Copy link
Contributor

This PR is being marked as stale due to inactivity.

@github-actions github-actions bot added the Stale label Sep 30, 2024
@anikdhabal
Copy link
Contributor Author

Looks like the location change issue has been fixed, so we only need to fix the broken UI

@anikdhabal anikdhabal marked this pull request as ready for review October 14, 2024 07:38
@anikdhabal anikdhabal enabled auto-merge (squash) October 14, 2024 07:38
@anikdhabal anikdhabal merged commit cd06141 into calcom:main Oct 14, 2024
49 of 56 checks passed
Copy link
Contributor

E2E results are ready!

@anikdhabal anikdhabal changed the title fix: improved code for meeting link is not updated and broken ui in edit location dialog issue fix: broken ui in edit location dialog issue Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
booking-page area: booking page, public booking page, booker 🐛 bug Something isn't working community Created by Linear-GitHub Sync community-interns The team responsible for reviewing, testing and shipping low/medium community PRs Medium priority Created by Linear-GitHub Sync ready-for-e2e Stale ui area: UI, frontend, button, form, input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(Very annoying) Guest doesn't see updated meeting link on booking page
4 participants