-
Notifications
You must be signed in to change notification settings - Fork 54
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
Login page without UI enabled #1039
Conversation
✅ Deploy Preview for conda-store canceled.
|
✅ Deploy Preview for conda-store canceled.
|
e0b1a33
to
56793b8
Compare
796e40a
to
5260960
Compare
After setting the default `next` route to be the base url (when none is provided), the default route to be loaded is no longer the `environments` admin page. This change updates the playwright tests to navigate to the `environments` admin page after logging in.
f9838ee
to
d2c5c34
Compare
I tried testing this by editing the default So this seems like a good start. But it sounds like there's other functionality here which I should be testing too? From the issue
When you say login, you mean login to the admin UI? Should there be a test for this? Something like:
c.CondaStoreServer.enable_ui = False
c.CondaStoreServer.enable_api = True
c.CondaStoreServer.enable_registry = False
c.CondaStoreServer.enable_metrics = False
|
Yep. Sorry, I could have been more clear in the issue. Will update that now.
Do you mean like an integration test to ensure that loging in works when the ui is disabled? |
Actually I can't get to the login screen at all. When I get when I open up Which I think is expected; there's no UI at all with the options set to the above ☝️. The REST API appears to work as intended though.
What I mean is that the only way that I know whether this PR fixes #1034 or not is by manually editing my |
Ah, that's my bad again, you need to go to
This way you have a separate service providing the ui functionality. |
776e547
to
984e90f
Compare
Ah, I see what you mean. Great idea! Added 🦩 |
e03d65e
to
07b963d
Compare
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.
Thank you for adding the extra test. Looks good!
sys.path is manipulated so that only the name of the called program | ||
(e.g. `pytest`) is present. This prevents traitlets from parsing any | ||
additional pytest args as configuration settings to be applied to | ||
the conda-store-server. |
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.
😢 traitlets...
064da02
to
f1367c7
Compare
Fixes #1034
Description
This PR updates the auth module to be agnostic to the admin ui. It does this by:
base.html
templatePull request checklist