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

Change shares api path to match other use cases #23434

Conversation

AndreiZe
Copy link
Contributor

@AndreiZe AndreiZe commented Jan 3, 2025

Description

odsp-driver calls '/shares' API to redeem access to file referenced by redeemable sharing link. I am changing API path to include '/driveItem' in it. Technically it is not required for executing redeem operation. However, we have other cases that use '/shares' API and do require to specify '/driveItem' in order to get specific drive item properties. The reason this matter is when caller of this API must possess logical permissions to call this API (for instance, this will be the case when call is made with app-only token) then two separate logical permissions are needed for the '/shares' call with and without '/driveItem'.

Reviewer Guidance

The review process is outlined on this wiki page.

@Copilot Copilot bot review requested due to automatic review settings January 3, 2025 01:51
@github-actions github-actions bot added area: driver Driver related issues area: odsp-driver base: main PRs targeted against main branch labels Jan 3, 2025
@AndreiZe AndreiZe requested a review from jatgarg January 3, 2025 01:52

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

packages/drivers/odsp-driver/src/getFileLink.ts:105

  • The word 'getFilelink' should be corrected to 'getFileLink'.
 * Handles location redirection while fulfilling the getFileLink call. We don't want browser to handle
@AndreiZe AndreiZe merged commit 352834c into microsoft:main Jan 8, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: driver Driver related issues area: odsp-driver base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants