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

Acataldi/10779 fix schema registry lint errors #12011

Merged

Conversation

abc516
Copy link
Contributor

@abc516 abc516 commented Oct 22, 2020

fixes #10779

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Oct 22, 2020
@ghost
Copy link

ghost commented Oct 22, 2020

Thank you for your contribution abc516! We will review the pull request and get back to you soon.

@@ -45,7 +45,7 @@ const testGroup = "azsdk_js_test_group";
const testSchemaIds = [
"{773E17BE-793E-40B0-98F1-0A6EA3C11895}",
"{DC7EF290-CDB1-4245-8EE8-3DD52965866E}"
].map((x) => x.replace(/[\{\-\}]/g, ""));
].map((x) => x.replace(/[{\-}]/g, ""));
Copy link
Contributor

Choose a reason for hiding this comment

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

@abc516 Can you share which linting rule failure is this change fixing?

@nguerrera, Do you recall what exactly are we trying to replace here and why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ramya-rao-a @nguerrera this fixes this rule: https://eslint.org/docs/rules/no-useless-escape .

I believe it just subs out the '{', '-', and '}' chars in the guid strings with blank spaces. Note the test below from https://regexr.com , using the new expression :
image

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, that's what it does and this is fine. 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks Nick

@ramya-rao-a ramya-rao-a merged commit 1ca7329 into Azure:master Oct 26, 2020
@ramya-rao-a
Copy link
Contributor

Thanks @abc516!

@nguerrera
Copy link
Contributor

Thanks, @abc516 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix ESLint errors for Schemaregistry
4 participants