Skip to content

Conversation

retrogtx
Copy link
Contributor

@retrogtx retrogtx commented Mar 17, 2025

What does this PR do?

https://www.loom.com/share/70bf41049d7a4e36b8f5a894e8647739?sid=3a37fce8-5c18-441b-8640-bbc6e202a661

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs 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.

@retrogtx retrogtx requested review from a team as code owners March 17, 2025 05:02
Copy link

vercel bot commented Mar 17, 2025

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

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Mar 17, 2025
@graphite-app graphite-app bot requested a review from a team March 17, 2025 05:02
@github-actions github-actions bot added ❗️ migrations contains migration files enterprise area: enterprise, audit log, organisation, SAML, SSO Medium priority Created by Linear-GitHub Sync ✨ feature New feature or request labels Mar 17, 2025
@keithwillcode keithwillcode added the community-interns The team responsible for reviewing, testing and shipping low/medium community PRs label Mar 17, 2025
@dosubot dosubot bot added the event-types area: event types, event-types label Mar 17, 2025
Copy link

graphite-app bot commented Mar 17, 2025

Graphite Automations

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

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

"Add community label" took an action on this PR • (03/17/25)

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

@asadath1395
Copy link
Contributor

@retrogtx You beat me on this :D. I was almost done with the implementation, i had implemented it differently as in instead of dropdown, just provided the max usage and expiry date field as input and then based on the values add the checks for expiry and also show the link expiry error message below the link. Anyways good job!

@retrogtx
Copy link
Contributor Author

hey @asadath1395

thanks for trying, there are many other issues lying around along with bounties that might interest you

thank you again 🫡

Copy link
Contributor

github-actions bot commented Mar 17, 2025

E2E results are ready!

@dosubot dosubot bot added this to the v5.2 milestone Mar 17, 2025
Copy link
Member

@alishaz-polymath alishaz-polymath left a comment

Choose a reason for hiding this comment

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

Clean work! 🙏
There's a NIT though, I'd rather have the expired links showing still and shown as expired instead of turning off the private links automatically upon expiration. Also, it would be better to have a visual representation of how many usages are left for the private link (or when expiration is due) for example.
Otherwise, there is a great overhead in support waiting to crash!

@github-actions github-actions bot marked this pull request as draft March 17, 2025 15:11
…time updates

- Added usageCount to PrivateLinkWithOptions type for tracking link usage.
- Updated getServerSideProps to select hashed link data including usageCount.
- Refactored MultiplePrivateLinksController to fetch and display real-time usage data for links.
- Implemented cache invalidation on component mount to ensure fresh data retrieval.
- Improved link description logic to reflect usage limits and expiration status accurately.
@retrogtx retrogtx marked this pull request as ready for review March 18, 2025 05:53
@dosubot dosubot bot added the i18n area: i18n, translations label Mar 18, 2025
@retrogtx
Copy link
Contributor Author

🫡 @alishaz-polymath everything's done

@alishaz-polymath
Copy link
Member

@retrogtx Can you please close down the mrge comments which are resolved/unnecessary?

@alishaz-polymath
Copy link
Member

Now it is not expiring the single-use link. I could use it to book twice, and it's still not expired.

@retrogtx
Copy link
Contributor Author

@alishaz-polymath bossman 🫡

@CarinaWolli CarinaWolli modified the milestones: v5.4, v5.5 Jun 17, 2025
@dosubot dosubot bot modified the milestone: v5.5 Jun 17, 2025
@dosubot dosubot bot modified the milestone: v5.5 Jun 21, 2025
@CarinaWolli CarinaWolli reopened this Jun 23, 2025
@alishaz-polymath alishaz-polymath requested a review from a team July 7, 2025 04:24
@alishaz-polymath alishaz-polymath marked this pull request as draft July 7, 2025 04:25
@alishaz-polymath
Copy link
Member

Closing in favor of #22304

@dosubot dosubot bot modified the milestones: v5.5, v5.6 Jul 16, 2025
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 community Created by Linear-GitHub Sync community-interns The team responsible for reviewing, testing and shipping low/medium community PRs enterprise area: enterprise, audit log, organisation, SAML, SSO event-types area: event types, event-types ✨ feature New feature or request i18n area: i18n, translations Medium priority Created by Linear-GitHub Sync ❗️ migrations contains migration files ready-for-e2e
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-5283] Expiration capabilities to private links
6 participants