Skip to content

Remove fallback call for redeeming sharing link in ODSP driver which was just added as a precaution when main network was added. #24790

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

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

jatgarg
Copy link
Contributor

@jatgarg jatgarg commented Jun 9, 2025

Description

Remove fallback call for redeeming sharing link which was added as a precaution.

@jatgarg jatgarg self-assigned this Jun 9, 2025
@Copilot Copilot AI review requested due to automatic review settings June 9, 2025 18:05
@github-actions github-actions bot added area: driver Driver related issues area: odsp-driver labels Jun 9, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the fallback call for redeeming a sharing link in the ODSP driver, streamlining the snapshot fetching process.

  • Removed the fallback test case for redeeming sharing link using the siteUrl.
  • Updated the redeemSharingLink function to remove the redundant fallback call and integrate telemetry event handling.

Reviewed Changes

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

File Description
packages/drivers/odsp-driver/src/test/fetchSnapshot.spec.ts Removed the test case for fallback behavior that is no longer required.
packages/drivers/odsp-driver/src/fetchSnapshot.ts Removed the fallback call and updated telemetry event handling in the redeemSharingLink function.
Comments suppressed due to low confidence (2)

packages/drivers/odsp-driver/src/test/fetchSnapshot.spec.ts:567

  • [nitpick] The test case for fallback behavior has been removed; please ensure that all necessary scenarios regarding sharing link redemption are adequately covered elsewhere.
it("RedeemFallback behavior when fallback succeeds with using siteUrl", async () => {

packages/drivers/odsp-driver/src/fetchSnapshot.ts:264

  • [nitpick] The fallback call using the siteUrl has been removed as intended. Please confirm that error handling and telemetry capture fully address all failure scenarios without the fallback.
await callSharesAPI(odspResolvedUrl.siteUrl);

@github-actions github-actions bot added the base: main PRs targeted against main branch label Jun 9, 2025
@jatgarg jatgarg requested a review from markfields June 9, 2025 18:06
const disableUsingTenantDomain = loggerToMonitoringContext(logger).config.getBoolean(
"Fluid.Driver.Odsp.DisableUsingTenantDomainForSharesApi",
);
const details = JSON.stringify({
Copy link
Member

Choose a reason for hiding this comment

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

nit (optional): You don't need JSON.stringify here, the logger will do that for you before sending.

Copy link
Member

@markfields markfields left a comment

Choose a reason for hiding this comment

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

LGTM

@jatgarg jatgarg merged commit 8bc460c into microsoft:main Jun 9, 2025
35 checks passed
@jatgarg jatgarg deleted the sharelink branch June 12, 2025 00:10
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