-
Notifications
You must be signed in to change notification settings - Fork 479
Tech debt: improve get node info to work both on server and DC #708
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
Tech debt: improve get node info to work both on server and DC #708
Conversation
app/selenium_ui/jira/pages/pages.py
Outdated
| text = self.__get_footer_text() | ||
| return text.split('#')[0].replace('(v', '') | ||
|
|
||
| # def get_node_id(self): |
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.
pls remove this
app/selenium_ui/jira/pages/pages.py
Outdated
| elif len(text_split) == 3: | ||
| return text_split[2].replace(')', '') | ||
| else: | ||
| return f"Warning: failed to get the node id from {text}" |
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.
- Looks like there is extra space after the colon.
- Let's change text to f"Warning: failed to get the node information from '{text}'." - this way we could easily catch a case when text is an empty string.
| elif len(text_split) == 3: | ||
| return text_split[2].replace(')', '') | ||
| else: | ||
| return f"Warning: failed to get the node id from {text}" |
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.
"Let's change text to f"Warning: failed to get the node information from '{text}'." - this way we could easily catch a case when text is an empty string."
Probably, you should change it here too
…ork_both_on_server_and_DC
…n_server_and_DC' of github.com:atlassian/dc-app-performance-toolkit into dca_1351_Tech_debt_improve_get_node_info_to_work_both_on_server_and_DC
…prove_get_node_info_to_work_both_on_server_and_DC Tech debt: improve get node info to work both on server and DC
No description provided.