-
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
Move Account and Profile related code to accounts app #926
Comments
@shashankks0987 would you be interested in taking this issue? |
@brylie Yes I'd be happy to |
Thanks! I've assigned you. I'll try and add a list of related code that I can find. When working, try to figure out which code isn't needed anymore and remove it. If there is a more conventional way to do things with Django, replace any custom code with the conventional method |
Helloo @brylie, I'm very interested in contributing and would love to help with this issue or another good first issue! Please let me know what can I do for the team. |
hey @brylie I'm new to contributing to open source and would love to contribute here! Let me know if there are issues I can contribute to! |
Thank you for your offer @RiddhiAthreya and @NoriakiMawatari. Since @shashankks0987 is currently working on this task, we would need to see how you might assist them. @shashankks0987 is there any way that @RiddhiAthreya and @NoriakiMawatari can assist you with this task? |
I'm currently working on issue #849 as that was of higher priority. I thought I'll get back to this after that. If they are open to take it, you can assign them too and I can later continue from where they left off |
@brylie can I be assigned this issue? |
@RiddhiAthreya sure thing. You're assigned :-) If you wouldn't mind, please check in with @shashankks0987 periodically as they are stewarding this task along with a couple of related tasks |
Is this issue still open to fix, or someone have already fixed it? |
can i fix this issue? |
@skattel49 still has a pull request in prorgress here and @wassafshahzad is working on related code. Let's try to avoid too many collisions in this area of the project. @wassafshahzad, is there any way that @sandipan898 and @Adyyousf may assist you? |
Moved Account and Profile code as per #926
@brylie I am unable to find the account.py file . I am looking for my first contribution. |
Ah, this task is basically complete. |
@brylie is it possible to reopen this issue and assign me to it? Now I am writing unit testing for |
Yes, for the sake of clarity, please create a new issue outlining the planned changes. I'll make sure you are assigned to the new issue. |
We still have some code in the
api
directory that is related to user accounts/profiles. Move all account/profile code to theaccounts
app and refactor as needed.Relatedly, rename the
Account
model toProfile
.Task
Below are the overarching steps involved in completing this issue. Some steps are optional but might help us achieve cleaner and more maintainable code.
accounts
appRelated code
All code below should be moved to the
accounts
app.Move
Account
model to theaccounts.models
and rename the model toProfile
:OpenCiviWiki/project/api/models/account.py
Lines 1 to 3 in 374381b
Move Accounts views to the
accounts
app:https://github.com/CiviWiki/OpenCiviWiki/blob/develop/project/api/views/account.py
Move account/password related forms to
accounts
app:https://github.com/CiviWiki/OpenCiviWiki/blob/develop/project/api/forms.py
Move User serializer to
accounts
appOpenCiviWiki/project/api/read.py
Lines 8 to 22 in 374381b
User card serializer
OpenCiviWiki/project/api/read.py
Lines 25 to 40 in 374381b
Profile serializer
OpenCiviWiki/project/api/read.py
Lines 43 to 96 in 374381b
Account-related read-only serializers
OpenCiviWiki/project/api/serializers.py
Lines 10 to 116 in 374381b
Account and profile related URLs
OpenCiviWiki/project/api/urls.py
Line 10 in 374381b
OpenCiviWiki/project/api/urls.py
Lines 19 to 21 in 374381b
OpenCiviWiki/project/api/urls.py
Lines 38 to 49 in 374381b
user-related utility function
OpenCiviWiki/project/api/utils.py
Lines 12 to 22 in 374381b
user/profile "write" endpoints
OpenCiviWiki/project/api/write.py
Lines 299 to 583 in 374381b
The text was updated successfully, but these errors were encountered: