Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. WalkthroughShared-link types now include an optional expiration feature. Item conversion uses the server-provided value to set ChangesShared-link expiration capability
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The expiration switch follows the server setting when provided and retains existing editor-based behavior when it is omitted. The covered paths leave no actionable merge risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the link at night Comment |
7d71272 to
fa7f945
Compare
|
|
||
| type SharedLinkFeatures = { | ||
| download_url: boolean, | ||
| expiration?: boolean, |
There was a problem hiding this comment.
wouldn't expiration always exist now since we have added the field in the response
| shared_link?: APISharedLink, | ||
| shared_link_features: { | ||
| download_url: boolean, | ||
| expiration?: boolean, |
MOTIVATION
Desktop Content Sharing turned Link Expiration on when the user could change the shared link access level and an editor role was allowed.
GET /2.0/files/{id}?fields=shared_link_featuresnow returnsexpirationfor that permission. The switch follows that value.BEFORE
expirationvalue uses that same checkAFTER
shared_link_features.expirationis trueexpirationvalue leaves the switch off