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
Informal facilities get 'Create an Account' button visible by default #7553
Informal facilities get 'Create an Account' button visible by default #7553
Conversation
Adding myself to the authors.md file - my very first open source contribution!
Codecov Report
|
Hi @AdamStasiw , thanks for this patch! When running your tests using Also, this is a bit of internal process that isn't documented (yet) for community contributors like yourself, but issues with the |
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 good, thank you!
@AdamStasiw If you're interested in a related issue, check out #7334 which is a fix to the Vue frontend code. Basically, the problem is that when you click the "reset to default" button in the Facility Settings page, the "defaults" are not the ones chosen during setup. For example, if I set up my device using the quick setup (i.e. with the "personal/informal" preset) and then click the "reset to default" button later, the "shown download button with resources" setting gets unchecked). |
Ah okay, awesome - thank you! And I'm much more of a backend/Python developer than a frontend one, but I can give #7334 a look! |
Actually, the fix to #7334 might be better handled on the backend. I'll add some notes to the issue. |
Summary
This is to fix #7505, such that facilities created with the "informal" settings will allow the creation of new learners by default. This way, when doing initial setup with the "Quick start" approach, the admin doesn't need to activate this setting manually, and users will be able to create accounts by default.
Steps Taken:
Before:
After:
Clicking on "Create an Account" proceeds to the user creation page:
I also modified the test_personal_setup_defaults test to account for this new default value. Running
pytest kolibri/core/device/test/test_api.py
completed successfully.Reviewer guidance
Since I'm brand new to the codebase (and this is actually my very first open source contribution ever!), I'm not sure if I should run other tests or if the CR tool runs them for me. To be safe, I ran
tox
andpytest
to try running everything. I got mostly all successes, but then a collection of failures/errors before the tests started to hang ondiscovery/test/test_connection_check.py
- though I tried again on the basedevelop
branch without my changes, and got the exact same errors:Not sure if this is something I'm doing wrong in my local testing?
References
See #7505 for the original issue / motivation for the change
Contributor Checklist
PR process:
Testing:
Reviewer Checklist
yarn
andpip
)