Skip to content
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

new: remove closed beta and invitation functionality #859 #861

Closed
wants to merge 5 commits into from
Closed

new: remove closed beta and invitation functionality #859 #861

wants to merge 5 commits into from

Conversation

jithenms
Copy link

Remove: closed beta and invitation functionality.

Closes #849.

Changes proposed in this pull request:

Remove Beta_Blocker function and decorator from custom_decorators.py and views.py
Remove HTML files for closed beta features
Remove functions and settings for closed beta features

Sorry about the last two PRs I had opened and closed. I had chosen your base repository as master and saw there were 10,000 changes. I figured out I need to choose develop as the base repo. Let me know if there's anything else. Thanks!

Removing functionality for closed beta.
Removing html files for beta blocker and invitations and updating decorators.
@pep8speaks
Copy link

pep8speaks commented Apr 25, 2021

Hello @jithenshriyan! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-05-15 08:05:26 UTC

Trying to fulfill the line length requirement
@brylie
Copy link
Member

brylie commented Apr 25, 2021

Thanks. We will need to make a database migration for this pull request. Are you able to successfully run the command python manage.py makemigrations on your branch? If not, I can help.

@jithenms
Copy link
Author

jithenms commented Apr 25, 2021

No, I've installed PostgreSQL, Redis, and a virtual environment.

I'm getting an error when running pip install -r requirements.txt. It's installed some of the packages but not all of them.

ERROR: Could not find a version that satisfies the requirement psycopg2==2.8.6
ERROR: No matching distribution found for psycopg2==2.8.6

Do I need to change the versions labeled to the latest ones in order for pip to install them?

Also, once I've completed that, how do I create the environment variables on Mac and finally populate the database?

Thanks!

@brylie
Copy link
Member

brylie commented Apr 26, 2021

Psycopg2 2.8.6 is a valid release (and installs in my virtual environment):

https://www.psycopg.org/articles/2020/09/06/psycopg-286-released/

Are you installing the requirements globally or in a virtual environment?

@jithenms
Copy link
Author

I'm installing everything locally and I believe it's on my virtual env.

I have the following already setup:

  • Virtual Env
  • Some of the requirements (Others coming as failures)
  • Local Postgre Database

I'm stuck at the requirements file and environment variables.

Is it fine if I make the changes without having to set up all the databases and users? I won't be using it after, and I've tried setting up everything but it didn't work.

Thanks.

@jithenms
Copy link
Author

jithenms commented Apr 26, 2021

I was able to get docker set up on my computer and it was so much easier to set up other projects.

When setting this project up on Docker, there was an error with your requirements.txt file.

> [11/13] RUN pip install -r requirements.txt: #15 1.370 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

If we're able to get this fixed, then the entire project will be set up on my computer and I can fix the PR.

@brylie
Copy link
Member

brylie commented Apr 27, 2021

I was suspecting that Python 2 was the issue. We should now be targeting Python 3.7+. I'll create an issue to make sure we are not specifying Python 2 anywhere. Also, the main goal of the current release is to remove many dependencies, to the point where even Docker should be unnecessary unless it is desirable to use Postgres for local development.

@brylie
Copy link
Member

brylie commented Apr 27, 2021

I created an issue to clean up the Dockerfile #865

@@ -99,8 +99,7 @@ def cw_register(request):
user = authenticate(username=username, password=password)

account = Account(user=user)
if not settings.CLOSED_BETA:
account.beta_access = True
account.beta_access = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this field entirely, since there will no longer be a beta_access field in the Account model.

@@ -139,7 +139,6 @@ class Account(models.Model):
"self", related_name="followings", symmetrical=False
)

beta_access = models.BooleanField(default=False)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Note Remember to run the makemigrations command after changing model fields.

@brylie brylie added the mentoring Issues that need active mentoring. label May 13, 2021
@jithenms
Copy link
Author

Got it. Has the Docker issue been fixed? If so, I can get it set up quickly on my computer and make the changes.

@brylie
Copy link
Member

brylie commented May 15, 2021

@jithenshriyan yes, we just merged an improved Dockerfile. :-)

@brylie
Copy link
Member

brylie commented Jun 1, 2021

@jithenshriyan please let me know your status with this issue. I'm available to help resolve any issues you might be facing.

@brylie
Copy link
Member

brylie commented Jun 14, 2021

@jithenshriyan are you able to create the migrations now? This pull request looks great overall!

@brylie
Copy link
Member

brylie commented Jun 14, 2021

@all-contributors please add @jithenshriyan for code

@jithenshriyan I'm adding you as a code contributor for your efforts, even though we haven't been able to merge them yet :-)

@allcontributors
Copy link
Contributor

@brylie

I've put up a pull request to add @jithenshriyan! 🎉

@brylie brylie marked this pull request as draft June 14, 2021 08:53
@brylie
Copy link
Member

brylie commented Sep 14, 2021

Closing, since this work has been completed.

@brylie brylie closed this Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mentoring Issues that need active mentoring.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove "closed beta" functionality
3 participants