-
Notifications
You must be signed in to change notification settings - Fork 344
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
Remove "closed beta" functionality #849
Comments
Would love to take on this task as one of my first open-source contributions. To get a better understanding, the beta_blocker decorator essentially prevents those without beta access from accessing features. Since you're launching CiviWiki as an active project, I understand why you wouldn't need the "closed beta" feature then. I believe I would just need to remove the decorators from the functions so that everyone has the ability to access all features, correct? Let me know if there any other changes e.g. remove or add functions. Otherwise, I'll get to work on it! |
Thanks for offering to help! 😀 Yes, removing the decorator and setting should be sufficient. Shall I assign you to the task? |
Make sure to remove most/all code related to the closed beta and invitations: https://github.com/CiviWiki/OpenCiviWiki/search?p=2&q=beta Here are a few places to be mindful of:
OpenCiviWiki/project/frontend_views/views.py Lines 22 to 23 in ff74546
OpenCiviWiki/project/authentication/authentication.py Lines 103 to 104 in ff74546
OpenCiviWiki/project/authentication/authentication.py Lines 147 to 148 in ff74546
OpenCiviWiki/project/civiwiki/settings.py Line 110 in ff74546
OpenCiviWiki/project/api/models/account.py Line 124 in ff74546
|
Sure, I'll take it. I believe I've completed the task and will be submitting a PR. Let me know if there are any errors or additional changes I need to make. Thanks! |
@jithenshriyan I am available for the next hour in a CiviWiki office hours hangout on Codebuddies.org. |
@jithenshriyan please provide an update regarding your status with this issue. Let me know if there is any way I can help. Edit: my bad. I had forgotten to review your pull request. Overall, great work! I made a couple of small change requests. |
Is there a working website demo? |
Not currently. We will probably deploy a demo once we are closer to the 2.0 release. |
@shashankks0987 this is another high priority task, which might be worth completing before #926 |
Sure thing! Just redirect the user to the front page after logging in. Make sure the page indicates they are logged in, e.g. by displaying a log out button. |
@brylie How do you guys access the tables in the database usually? Using \d through psql in the docker container is not showing me any tables |
It looks like you might be bumping into an issue with Google Maps. Specifically, the Would you consider removing the Google dependency before taking this "closed beta" issue? That would help out other developers too. |
Closed by #934 |
There is still OpenCiviWiki/project/api/models/account.py Line 123 in aa44eeb
OpenCiviWiki/project/accounts/views.py Lines 57 to 58 in aa44eeb
OpenCiviWiki/project/accounts/authentication.py Lines 151 to 152 in aa44eeb
Do you want these to be removed? |
@Dummy26 yes. Please open a specific PR for those changes. Good catch! |
Sure! |
Yes, migrations get committed to the source control. |
Let's treat CiviWiki as an active project that people might deploy to any number of servers for any purpose. To that end, we probably don't need the "closed beta" feature any longer.
This mainly involves removing the
beta_blocker
decorator from frontend views.Related code
Remove the following code.
makemigrations
command after changing the project models.https://github.com/CiviWiki/OpenCiviWiki/search?p=2&q=beta
Here are a few places to be mindful of:
OpenCiviWiki/project/authentication/urls.py
Line 11 in ff74546
OpenCiviWiki/project/webapp/static/js/beta_register.js
Line 3 in ff74546
OpenCiviWiki/project/frontend_views/views.py
Line 14 in ff74546
OpenCiviWiki/project/frontend_views/views.py
Lines 22 to 23 in ff74546
OpenCiviWiki/project/frontend_views/urls.py
Line 6 in ff74546
OpenCiviWiki/project/frontend_views/urls.py
Line 17 in ff74546
OpenCiviWiki/project/authentication/authentication.py
Lines 103 to 104 in ff74546
OpenCiviWiki/project/authentication/authentication.py
Lines 147 to 148 in ff74546
OpenCiviWiki/project/webapp/templates/beta_register.html
Line 1 in ff74546
OpenCiviWiki/project/authentication/urls.py
Line 11 in ff74546
OpenCiviWiki/project/core/custom_decorators.py
Line 24 in ff74546
OpenCiviWiki/project/webapp/static/less/beta.less
Line 4 in ff74546
OpenCiviWiki/project/civiwiki/settings.py
Line 110 in ff74546
OpenCiviWiki/project/api/models/account.py
Line 124 in ff74546
The text was updated successfully, but these errors were encountered: