-
Notifications
You must be signed in to change notification settings - Fork 12
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
54 connector widget special chars #83
54 connector widget special chars #83
Conversation
CI seems to be failing for unknown reason, possibly related to issue #78 |
66e96d7
to
7c73653
Compare
@bryannho is this ready? don't forget to explicitly ask for a review. are you able to request reviews? if you can't, you can tag me and say "ready for review" so I get notified |
Apologies - this is ready to review. I marked the branch as ready but I'm not able to request reviews in the sidebar. Will tag you next time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few things are missing:
- changelog entry
- explain your solution in the PR description
- unit tests
@@ -0,0 +1,15 @@ | |||
export const specialToASCII = (str: string): string => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a docstring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added changelog, PR description, and unit tests |
@bryannho what's the status here? are you gonna tackle the CI issue first or will you work on passing the CI here first? |
I'm working on passing the CI here first. Once I get that done I'll mark it for your review and start working on the CI issue. Apologies I've been working through some hardware issues with my machine but I should be have this ready for review by tomorrow morning! |
sounds good! |
@edublancas I was able to get my own individual tests to work, but the PR keeps failing checks as a result of the CI issue with multiple tries. Might need to pivot to fixing the CI issue first and then come back around to this PR. |
4795a29
to
125862c
Compare
Describe your changes
connect
anddelete
button inConnectorWidget
when special characters were included in the alias:src/widgets/connector.ts
, each connection's alias was being used in the ID for itsconnect
anddelete
buttons. When special characters were included in the alias, this caused an exception whendocument.querySelector
was called on the ID.src/util/helper-functions.ts
to hold a string formatting function for special characters. This will replace special characters with their ASCII values (e.g. ':' -> '58'). I applied this function to the ID's for each connection'sconnect
anddelete
buttons. Now whenquerySelector
is called, the ID is always a valid selector.Issue number
Closes #54
Checklist before requesting a review
pkgmt format