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

[Storage] port PR #24953 from storage/stable branch #26279

Merged
merged 10 commits into from
Jun 22, 2023

Conversation

jeremymeng
Copy link
Member

@jeremymeng jeremymeng commented Jun 20, 2023

#24953

  • port tests. source changes are not needed any more as we no longer use URLBuilder, but switched to URL
  • add recordings for new tests

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Jun 20, 2023
@azure-sdk
Copy link
Collaborator

azure-sdk commented Jun 20, 2023

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-storage-blob
azure-storage-file-datalake

@jeremymeng jeremymeng added the Client This issue points to a problem in the data-plane of the library. label Jun 20, 2023
@jeremymeng jeremymeng requested a review from xirzec June 21, 2023 16:59
Copy link
Member

@xirzec xirzec left a comment

Choose a reason for hiding this comment

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

Adding the tests is good, not sure if we need all of the non-test changes.

@@ -268,7 +268,9 @@ export function appendToURLPath(url: string, name: string): string {
path = path ? (path.endsWith("/") ? `${path}${name}` : `${path}/${name}`) : name;
urlParsed.pathname = path;

return urlParsed.toString();
const normalizedUrl = new URL(urlParsed.toString());
Copy link
Member

Choose a reason for hiding this comment

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

@jeremymeng the original PR was working around behavior inside URLBuilder, but since we're using URL to parse things now, do we need these changes? I'm curious if we undo this change if the test still passes.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes the tests are still passing. I undid the src changes. Thanks for pointing out!

Copy link
Member

@xirzec xirzec left a comment

Choose a reason for hiding this comment

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

Thanks for porting these tests!

@jeremymeng jeremymeng merged commit 84aeb3d into Azure:main Jun 22, 2023
@jeremymeng jeremymeng deleted the storage/port-pr-24953 branch June 22, 2023 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants