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

[main > release/client/2.1]: Handle Location redirection for getSharingInformation call (#22551) #22621

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

jatgarg
Copy link
Contributor

@jatgarg jatgarg commented Sep 24, 2024

Description

AB#15188

Handle location redirection when calling getSharingInformation in ODSP Driver. Since this call does not include the v2.0 which calls the API without the drive and item ID, these calls fail if the tenant has been renamed. Sometimes this creates issues when creating a new page, since the user could not get the sharing link to the new page. GetFileItem call also returns the new siteUrl to which the file has been moved. Use that to detect the new domain and then change the resolved url accordingly.

…#22551)

## Description


[AB#15188](https://dev.azure.com/fluidframework/internal/_workitems/edit/15188)

Handle location redirection when calling getSharingInformation in ODSP
Driver. Since this call does not include the v2.0 which calls the API
without the drive and item ID, these calls fail if the tenant has been
renamed. Sometimes this creates issues when creating a new page, since
the user could not get the sharing link to the new page.
GetFileItem call also returns the new siteUrl to which the file has been
moved. Use that to detect the new domain and then change the resolved
url accordingly.

Co-authored-by: Jatin Garg <jatingarg@Jatins-MacBook-Pro-2.local>
@jatgarg jatgarg self-assigned this Sep 24, 2024
@github-actions github-actions bot added area: driver Driver related issues area: odsp-driver base: release PRs targeted against a release branch labels Sep 24, 2024
@msfluid-bot
Copy link
Collaborator

msfluid-bot commented Sep 25, 2024

@fluid-example/bundle-size-tests: +245 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 457.05 KB 457.08 KB +35 Bytes
azureClient.js 554.82 KB 554.86 KB +49 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 258.25 KB 258.27 KB +14 Bytes
fluidFramework.js 405.94 KB 405.95 KB +14 Bytes
loader.js 134.04 KB 134.05 KB +14 Bytes
map.js 42.13 KB 42.14 KB +7 Bytes
matrix.js 145.61 KB 145.62 KB +7 Bytes
odspClient.js 522.96 KB 523.01 KB +49 Bytes
odspDriver.js 97.55 KB 97.57 KB +21 Bytes
odspPrefetchSnapshot.js 42.61 KB 42.62 KB +14 Bytes
sharedString.js 162.62 KB 162.63 KB +7 Bytes
sharedTree.js 396.45 KB 396.46 KB +7 Bytes
Total Size 3.29 MB 3.29 MB +245 Bytes

Baseline commit: 8519044

Generated by 🚫 dangerJS against 8b1d41c

Copy link
Contributor

@AndreiZe AndreiZe left a comment

Choose a reason for hiding this comment

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

LGTM

@frankmueller-msft frankmueller-msft merged commit 2bb28a0 into microsoft:release/client/2.1 Sep 25, 2024
28 checks passed
@jatgarg jatgarg deleted the rc21 branch September 26, 2024 19:28
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: release PRs targeted against a release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants