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

Convenience Method to create a synonymmap object #16054

Merged
merged 3 commits into from
Jun 29, 2021

Conversation

sarangan12
Copy link
Member

This PR is related to Issue #14664. This PR creates a convenience method that creates a synonymmap object.

A similar method is implemented in Java and could be found here: https://github.com/Azure/azure-sdk-for-java/pull/20984/files

@xirzec Please review and approve

@ramya-rao-a FYI....

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.

Seems useful!

I think there is a small bug with more than 2 lines in the file, though.

sdk/search/search-documents/src/synonymMapHelper.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,2 @@
United States, United States of America => USA
Washington, Wash. => WA
Copy link
Member

Choose a reason for hiding this comment

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

Can we add a third line to this test to catch the "only replace a single \r" bug?

Copy link
Member Author

Choose a reason for hiding this comment

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

@xirzec Added the empty case also now

Copy link
Member

Choose a reason for hiding this comment

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

I don't see it in the latest revision?

Copy link
Member Author

Choose a reason for hiding this comment

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

I added an empty line at the end of the test file. It is not showing up in the diff.

sarangan12 and others added 2 commits June 28, 2021 16:09
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.

The code looks good now, but I don't see the tests you added. Maybe you forgot to push them?

@sarangan12 sarangan12 merged commit 20321ef into Azure:main Jun 29, 2021
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this pull request Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants