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.0]: Handle Location redirection for getSharingInformation call (#22551) #22622

Merged
merged 5 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.

jatgarg and others added 2 commits September 24, 2024 16:48
…#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>
@msfluid-bot
Copy link
Collaborator

msfluid-bot commented Sep 25, 2024

@fluid-example/bundle-size-tests: +238 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 452.23 KB 452.26 KB +35 Bytes
azureClient.js 550.85 KB 550.9 KB +49 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 256.06 KB 256.07 KB +14 Bytes
fluidFramework.js 375.11 KB 375.12 KB +7 Bytes
loader.js 133.46 KB 133.47 KB +14 Bytes
map.js 41.1 KB 41.11 KB +7 Bytes
matrix.js 143.39 KB 143.4 KB +7 Bytes
odspClient.js 518.96 KB 519.01 KB +49 Bytes
odspDriver.js 97.26 KB 97.28 KB +21 Bytes
odspPrefetchSnapshot.js 42.31 KB 42.33 KB +14 Bytes
sharedString.js 159.9 KB 159.91 KB +7 Bytes
sharedTree.js 375.09 KB 375.1 KB +7 Bytes
Total Size 3.22 MB 3.22 MB +238 Bytes

Baseline commit: 18ef26c

Generated by 🚫 dangerJS against 269178d

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 enabled auto-merge (squash) September 25, 2024 20:50
@jatgarg jatgarg closed this Sep 25, 2024
auto-merge was automatically disabled September 25, 2024 20:56

Pull request was closed

@jatgarg jatgarg reopened this Sep 25, 2024
@frankmueller-msft frankmueller-msft merged commit d2fecdf into microsoft:release/client/2.0 Sep 25, 2024
25 checks passed
@jatgarg jatgarg deleted the rc20 branch September 26, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants