-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create Login #2
Create Login #2
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
src/pyoncatqt/login.py
Outdated
self.client_id = get_data("login.oncat", f"{key}_id") | ||
if not self.client_id: | ||
raise ValueError(f"Invalid key: {key}, ONCat client ID not found") | ||
return |
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.
you can omitt that.
src/pyoncatqt/login.py
Outdated
self.oncat_url = get_data("login.oncat", "oncat_url") | ||
self.client_id = get_data("login.oncat", f"{key}_id") | ||
if not self.client_id: | ||
raise ValueError(f"Invalid key: {key}, ONCat client ID not found") |
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.
Can you put a more descriptive message: e.g. Invalid module {key}. No OnCat client Id is found for this application.
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.
Tested locally. It looks very good!
Short description of the changes:
This creates the Login Dialog and a Login widget that can be used in other neutrons projects to provide a simple interface for logging in to ONCat.
Read the docs page
Manual test for the reviewer
Test out the widget and dialog with the following commands.
References
Relates to EWM #4464