Giter VIP home page Giter VIP logo

mumbleapi's Introduction

API

Welcome to the Mumble Api Repository

Mumble Community Mumble SQL Diagram Mumble


Getting Started

If you are trying to use this project for the first time, you can get up and running by following these steps.

To contribute to this project, please see the contributing guidelines.

⚠ Note, this step assumes you are using github ssh keys for the git clone method

The Mumble Diagram

--> Preview :


--> Full View:

You can see clearly the diagram at : 

Requirements

Technology Version
Python 3.x
pip latest version
asgiref 3.3.4
certifi 2020.12.5
chardet 4.0.0
coreapi 2.3.3
coreschema
dj-database-url 0.5.0
Django 3.2
django-ckeditor 6.0.0
django-cors-headers 3.7.0
django-heroku 0.3.1
django-js-asset 1.2.2
djangorestframework 3.12.4
djangorestframework-simplejwt 4.6.0
dnspython 2.1.0
email-validator 1.1.2
gunicorn 20.1.0
idna 2.10
itypes 1.2.0
Jinja2 3.0.0
MarkupSafe 2.0.0
Pillow 8.2.0
psycopg2 2.8.6
PyJWT 2.0.1
pytz 2021.1
PyYAML 5.4.1
requests 2.25.1
sentry-sdk 1.0.0
six 1.15.0
sqlparse 0.4.1
typing-extension 3.10.0.0
uritemplate 3.0.1
urllib3 1.26.4
whitenoise 5.2.0

Install and Run

Make sure you have Python 3.x installed and the latest version of pip installed before running these steps.

To contribute, please follow the guidelines process.

Clone the repository using the following command

git clone [email protected]:divanov11/mumbleapi.git
# After cloning, move into the directory having the project files using the change directory command
cd mumbleapi

Create a virtual environment where all the required python packages will be installed

# Use this on Windows
python -m venv env
# Use this on Linux and Mac
python -m venv env

Activate the virtual environment

# Windows
.\env\Scripts\activate
# Linux and Mac
source env/bin/activate

Install all the project Requirements

pip install -r requirements.txt

-Apply migrations and create your superuser (follow the prompts)

# apply migrations and create your database
python manage.py migrate

# Create a user with manage.py
python manage.py createsuperuser

Load test data to your database

# load data for feed
python manage.py loaddata feeddata.json

# load data for article
python manage.py loaddata articledata.json

# load data for discussion
python manage.py loaddata discussiondata.json

Run the tests

# run django tests for article app
python manage.py test article
# run django tests for discussion app
python manage.py test discussion
# run django tests for feed app
python manage.py test feed
# run django tests for users app
python manage.py test users

Run the development server

# run django development server
python manage.py runserver

Reviewers

After submitting your PR, please tag reviewer(s) in your PR message. You can tag anyone below for the following.


Explore admin panel for model data or instances

http://127.0.0.1:8000/admin or http://localhost:8000/admin

Login with the user credentials (you created) using "createsuperuser" cmd

⚠ If everything is good and has been done successfully, your Django Rest API should be hosted on port 8000 i.e http://127.0.0.1:8000/ or http://localhost:8000/

mumbleapi's People

Contributors

abhivemp avatar bashiru98 avatar codyseibert avatar divanov11 avatar gauthampkrishnan avatar hrithik5 avatar i-am-zach avatar itzomen avatar kaushal-dhungel avatar lawliet-cpp avatar mani-barathi avatar midouwebdev avatar mkhnuser avatar mohamedmuneerm avatar muntasir-mahmud avatar nandraj avatar okumujustine avatar praveenmalethia avatar remcohalman avatar rshalem avatar sachin-chaurasiya avatar shehanat avatar ugamthakkar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mumbleapi's Issues

While login, my username with uppercase becomes lowercase

Describe the bug

I have an account called Rifat. while I tried to login via that . It says No active account found with the given credentials

To Reproduce

Steps to reproduce the behavior:
I noticed is that while I put my username with uppercase It automatically becomes lowercase I knew code is magic but I didn't know it.

one User can delete edit other user article using enpoint with id of another use article id

Describe the bug

A clear and concise description of what the bug is that using postman anyone can get authorized and then using auth that user can delete or edit other user post or article or comment providing id to URL

To Reproduce

Steps to reproduce the behavior:

Login to your account! Hit the user article, article comment delete or edit URL with other users article id using postman or whatever client-side you want

What was expected?

A clear and concise description of what I expected to happen is that not another user can delete, edit my article post

Update Gitflow and Contributing Section and PR Template Report

Preflight Checklist

  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

git flow with PRs

To solidify our contributing and gitflow process: the community has agreed to put in place a system. These are the following updates to contributing to this repo

  1. Going forward, all Pull Requests will require 2 reviewers prior to merging. If the contribution isn't hefty, one reviewer is fine. Repo Collaborators should edit this otherwise.
  2. The PR author will choose a label (between "Review: Needs 1" and "Status: Needs 2") to further organize the repo
  3. It's mandatory that the PR author adds reviewers prior to submitting the pull request

What needs to be done:

  1. Assignee needs to update the PR template
  2. Should reflect the above rules in the contributing document

@codyseibert @divanov11 @PraveenMalethia I know that we can rephrase the list above. If you guys have a better way of saying it, please add a comment 😃

Follow Flake8 PEP8 Guidelines

Flake8 warns PEP8 violations.

This flake8 run assumes:

  • excluding files __init__.py, __pycache__, apps.py, manage.py, migrations, settings.py, tests and .env
  • ignoring W504, W601 (PEP8 rules)
  • sets max line length to 119

All of the other defaults can be seen here.

Flake8 Warnings
.\article\admin.py:2:29: E231 missing whitespace after ','
.\article\admin.py:2:44: E231 missing whitespace after ','
.\article\admin.py:7:33: W292 no newline at end of file
.\article\models.py:6:1: E302 expected 2 blank lines, found 1
.\article\models.py:7:46: E241 multiple spaces after ','
.\article\models.py:8:34: E231 missing whitespace after ','
.\article\models.py:19:46: E241 multiple spaces after ','
.\article\models.py:20:40: E231 missing whitespace after ','
.\article\models.py:21:34: E231 missing whitespace after ','
.\article\models.py:30:46: E241 multiple spaces after ','
.\article\models.py:31:34: E231 missing whitespace after ','
.\article\models.py:33:74: E231 missing whitespace after ','
.\article\serializers.py:7:1: F401 'users.serializers.UserSerializer' imported but unused
.\article\serializers.py:7:52: E203 whitespace before ','
.\article\serializers.py:11:1: E303 too many blank lines (3)
.\article\serializers.py:13:1: W293 blank line contains whitespace
.\article\serializers.py:23:1: E302 expected 2 blank lines, found 1
.\article\serializers.py:35:1: E302 expected 2 blank lines, found 1
.\article\serializers.py:41:1: W293 blank line contains whitespace
.\article\urls.py:5:12: E231 missing whitespace after ','
.\article\urls.py:5:27: E231 missing whitespace after ','
.\article\urls.py:6:19: E231 missing whitespace after ','
.\article\urls.py:6:39: E231 missing whitespace after ','
.\article\urls.py:7:17: E231 missing whitespace after ','
.\article\urls.py:7:34: E231 missing whitespace after ','
.\article\views.py:1:1: F401 'django.shortcuts.render' imported but unused
.\article\views.py:2:45: W291 trailing whitespace
.\article\views.py:6:28: E203 whitespace before ','
.\article\views.py:6:45: E203 whitespace before ','
.\article\views.py:7:43: E203 whitespace before ','
.\article\views.py:11:1: E302 expected 2 blank lines, found 1
.\article\views.py:17:5: F841 local variable 'e' is assigned to but never used
.\article\views.py:20:1: E302 expected 2 blank lines, found 1
.\article\views.py:22:24: E231 missing whitespace after ','
.\article\views.py:35:5: F841 local variable 'e' is assigned to but never used
.\article\views.py:38:1: E302 expected 2 blank lines, found 1
.\article\views.py:40:26: E231 missing whitespace after ','
.\article\views.py:48:5: F841 local variable 'e' is assigned to but never used
.\article\views.py:51:1: E302 expected 2 blank lines, found 1
.\article\views.py:55:14: E711 comparison to None should be 'if cond is None:'
.\article\views.py:57:66: E227 missing whitespace around bitwise or shift operator
.\article\views.py:60:5: F841 local variable 'result_page' is assigned to but never used
.\article\views.py:60:55: E231 missing whitespace after ','
.\article\views.py:67:31: E231 missing whitespace after ','
.\article\views.py:71:58: E231 missing whitespace after ','
.\article\views.py:75:5: F841 local variable 'e' is assigned to but never used
.\article\views.py:78:1: E302 expected 2 blank lines, found 1
.\article\views.py:80:33: E231 missing whitespace after ','
.\article\views.py:84:58: E231 missing whitespace after ','
.\article\views.py:89:5: F841 local variable 'e' is assigned to but never used
.\article\views.py:105:13: E123 closing bracket does not match indentation of opening bracket's line
.\article\views.py:107:54: E231 missing whitespace after ','
.\article\views.py:118:13: E123 closing bracket does not match indentation of opening bracket's line
.\article\views.py:123:1: E302 expected 2 blank lines, found 1
.\article\views.py:130:68: W291 trailing whitespace
.\article\views.py:137:74: E231 missing whitespace after ','
.\article\views.py:137:90: E231 missing whitespace after ','
.\article\views.py:137:100: E231 missing whitespace after ','
.\article\views.py:143:74: E231 missing whitespace after ','
.\article\views.py:143:84: E231 missing whitespace after ','
.\discussion\admin.py:2:32: E231 missing whitespace after ','
.\discussion\admin.py:2:50: E231 missing whitespace after ','
.\discussion\models.py:7:46: E241 multiple spaces after ','
.\discussion\models.py:8:34: E231 missing whitespace after ','
.\discussion\models.py:12:11: W291 trailing whitespace
.\discussion\models.py:20:46: E241 multiple spaces after ','
.\discussion\models.py:21:46: E231 missing whitespace after ','
.\discussion\models.py:22:34: E231 missing whitespace after ','
.\discussion\models.py:31:46: E241 multiple spaces after ','
.\discussion\models.py:32:34: E231 missing whitespace after ','
.\discussion\models.py:34:77: E231 missing whitespace after ','
.\discussion\serializers.py:11:1: E303 too many blank lines (3)
.\discussion\serializers.py:14:1: W293 blank line contains whitespace
.\discussion\serializers.py:27:1: E302 expected 2 blank lines, found 1
.\discussion\serializers.py:39:1: E302 expected 2 blank lines, found 1
.\discussion\serializers.py:45:1: W293 blank line contains whitespace
.\discussion\urls.py:5:12: E231 missing whitespace after ','
.\discussion\urls.py:5:30: E231 missing whitespace after ','
.\discussion\urls.py:6:19: E231 missing whitespace after ','
.\discussion\urls.py:6:42: E231 missing whitespace after ','
.\discussion\urls.py:7:17: E231 missing whitespace after ','
.\discussion\urls.py:7:34: E231 missing whitespace after ','
.\discussion\views.py:1:1: F401 'django.shortcuts.render' imported but unused
.\discussion\views.py:2:45: W291 trailing whitespace
.\discussion\views.py:6:50: E203 whitespace before ','
.\discussion\views.py:7:46: E203 whitespace before ','
.\discussion\views.py:9:1: F811 redefinition of unused 'api_view' from line 3
.\discussion\views.py:16:19: E225 missing whitespace around operator
.\discussion\views.py:19:5: F841 local variable 'e' is assigned to but never used
.\discussion\views.py:22:1: E302 expected 2 blank lines, found 1
.\discussion\views.py:24:27: E231 missing whitespace after ','
.\discussion\views.py:26:19: E225 missing whitespace around operator
.\discussion\views.py:38:5: F841 local variable 'e' is assigned to but never used
.\discussion\views.py:41:1: E302 expected 2 blank lines, found 1
.\discussion\views.py:43:29: E231 missing whitespace after ','
.\discussion\views.py:45:19: E225 missing whitespace around operator
.\discussion\views.py:51:5: F841 local variable 'e' is assigned to but never used
.\discussion\views.py:54:1: E302 expected 2 blank lines, found 1
.\discussion\views.py:57:14: E711 comparison to None should be 'if cond is None:'
.\discussion\views.py:60:72: E227 missing whitespace around bitwise or shift operator
.\discussion\views.py:63:5: F841 local variable 'result_page' is assigned to but never used
.\discussion\views.py:63:58: E231 missing whitespace after ','
.\discussion\views.py:70:34: E231 missing whitespace after ','
.\discussion\views.py:74:61: E231 missing whitespace after ','
.\discussion\views.py:78:5: F841 local variable 'e' is assigned to but never used
.\discussion\views.py:81:1: E302 expected 2 blank lines, found 1
.\discussion\views.py:83:36: E231 missing whitespace after ','
.\discussion\views.py:87:61: E231 missing whitespace after ','
.\discussion\views.py:92:5: F841 local variable 'e' is assigned to but never used
.\discussion\views.py:103:19: E225 missing whitespace around operator
.\discussion\views.py:108:13: E123 closing bracket does not match indentation of opening bracket's line
.\discussion\views.py:110:57: E231 missing whitespace after ','
.\discussion\views.py:117:19: E225 missing whitespace around operator
.\discussion\views.py:122:13: E123 closing bracket does not match indentation of opening bracket's line
.\discussion\views.py:127:1: E302 expected 2 blank lines, found 1
.\discussion\views.py:137:15: E225 missing whitespace around operator
.\discussion\views.py:141:83: E231 missing whitespace after ','
.\discussion\views.py:141:99: E231 missing whitespace after ','
.\discussion\views.py:141:109: E231 missing whitespace after ','
.\discussion\views.py:147:83: E231 missing whitespace after ','
.\discussion\views.py:147:93: E231 missing whitespace after ','
.\feed\models.py:6:1: E265 block comment should start with '# '
.\feed\models.py:8:13: E225 missing whitespace around operator
.\feed\models.py:9:5: E265 block comment should start with '# '
.\feed\models.py:12:5: E265 block comment should start with '# '
.\feed\models.py:20:46: E241 multiple spaces after ','
.\feed\models.py:28:9: E722 do not use bare 'except'
.\feed\models.py:39:9: E265 block comment should start with '# '
.\feed\models.py:43:1: W293 blank line contains whitespace
.\feed\models.py:45:1: E303 too many blank lines (3)
.\feed\models.py:46:1: W293 blank line contains whitespace
.\feed\models.py:50:9: E123 closing bracket does not match indentation of opening bracket's line
.\feed\models.py:55:46: E241 multiple spaces after ','
.\feed\models.py:58:38: E222 multiple spaces after operator
.\feed\models.py:58:55: E221 multiple spaces before operator
.\feed\models.py:58:87: W292 no newline at end of file
.\feed\serializers.py:2:1: F401 'django.contrib.auth.models.User' imported but unused
.\feed\serializers.py:24:5: E303 too many blank lines (2)
.\feed\serializers.py:26:21: E711 comparison to None should be 'if cond is not None:'
.\feed\signals.py:1:1: F401 'django.db.models.signals.pre_save' imported but unused
.\feed\signals.py:2:1: F401 'django.contrib.auth.models.User' imported but unused
.\feed\signals.py:3:1: F401 'users.models.UserProfile' imported but unused
.\feed\signals.py:7:1: E302 expected 2 blank lines, found 1
.\feed\signals.py:8:5: E265 block comment should start with '# '
.\feed\signals.py:19:5: E265 block comment should start with '# '
.\feed\signals.py:24:5: F841 local variable 'e' is assigned to but never used
.\feed\signals.py:30:5: F841 local variable 'e' is assigned to but never used
.\feed\signals.py:33:1: E305 expected 2 blank lines after class or function definition, found 1
.\feed\signals.py:40:1: W293 blank line contains whitespace
.\feed\signals.py:41:9: F841 local variable 'vote' is assigned to but never used
.\feed\signals.py:44:18: E222 multiple spaces after operator
.\feed\signals.py:45:20: E222 multiple spaces after operator
.\feed\signals.py:49:5: F841 local variable 'e' is assigned to but never used
.\feed\signals.py:54:1: E303 too many blank lines (3)
.\feed\signals.py:55:32: E241 multiple spaces after ','
.\feed\urls.py:7:6: E126 continuation line over-indented for hanging indent
.\feed\urls.py:14:2: W292 no newline at end of file
.\feed\utils.py:1:1: E265 block comment should start with '# '
.\feed\utils.py:11:1: E265 block comment should start with '# '
.\feed\utils.py:12:1: E302 expected 2 blank lines, found 1
.\feed\views.py:1:1: F401 'django.shortcuts.render' imported but unused
.\feed\views.py:2:45: W291 trailing whitespace
.\feed\views.py:19:14: E711 comparison to None should be 'if cond is None:'
.\feed\views.py:30:5: E265 block comment should start with '# '
.\feed\views.py:53:13: E123 closing bracket does not match indentation of opening bracket's line
.\feed\views.py:58:13: E123 closing bracket does not match indentation of opening bracket's line
.\feed\views.py:63:1: E302 expected 2 blank lines, found 1
.\feed\views.py:65:23: E231 missing whitespace after ','
.\feed\views.py:74:49: E231 missing whitespace after ','
.\feed\views.py:74:54: E251 unexpected spaces around keyword / parameter equals
.\feed\views.py:74:56: E251 unexpected spaces around keyword / parameter equals
.\feed\views.py:77:48: E231 missing whitespace after ','
.\feed\views.py:80:5: F841 local variable 'e' is assigned to but never used
.\feed\views.py:81:59: W291 trailing whitespace
.\feed\views.py:83:1: E302 expected 2 blank lines, found 1
.\feed\views.py:94:5: F841 local variable 'e' is assigned to but never used
.\feed\views.py:97:1: E302 expected 2 blank lines, found 1
.\feed\views.py:123:24: W291 trailing whitespace
.\feed\views.py:127:5: E265 block comment should start with '# '
.\feed\views.py:131:9: E265 block comment should start with '# '
.\feed\views.py:132:22: W291 trailing whitespace
.\feed\views.py:135:19: E225 missing whitespace around operator
.\feed\views.py:138:5: E265 block comment should start with '# '
.\mumblebackend\views.py:3:1: F401 'rest_framework.reverse.reverse_lazy' imported but unused
.\mumblebackend\views.py:24:7: W292 no newline at end of file
.\notification\models.py:15:46: E241 multiple spaces after ','
.\notification\models.py:16:37: E231 missing whitespace after ','
.\notification\models.py:18:40: E231 missing whitespace after ','
.\notification\serializers.py:8:1: W293 blank line contains whitespace
.\notification\signals.py:1:1: F401 'django.contrib.auth.models.User' imported but unused
.\notification\signals.py:2:1: F401 'django.db.models.signals.post_delete' imported but unused
.\notification\signals.py:2:1: F401 'django.db.models.signals.pre_save' imported but unused
.\notification\signals.py:7:1: F401 'users.models.UserProfile' imported but unused
.\notification\signals.py:13:19: E701 multiple statements on one line (colon)
.\notification\signals.py:16:9: F841 local variable 'notification' is assigned to but never used
.\notification\signals.py:26:19: E701 multiple statements on one line (colon)
.\notification\signals.py:29:9: F841 local variable 'notification' is assigned to but never used
.\notification\signals.py:39:1: E303 too many blank lines (3)
.\notification\signals.py:40:19: E701 multiple statements on one line (colon)
.\notification\signals.py:43:9: F841 local variable 'notification' is assigned to but never used
.\notification\signals.py:51:1: E305 expected 2 blank lines after class or function definition, found 1
.\notification\signals.py:53:56: W292 no newline at end of file
.\notification\urls.py:5:26: E231 missing whitespace after ','
.\notification\urls.py:5:49: E231 missing whitespace after ','
.\notification\views.py:1:1: F401 'django.db.models.Q' imported but unused
.\notification\views.py:2:1: F401 'django.shortcuts.render' imported but unused
.\notification\views.py:8:1: F401 'users.models.UserProfile' imported but unused
.\notification\views.py:18:21: E225 missing whitespace around operator
.\notification\views.py:26:5: F841 local variable 'e' is assigned to but never used
.\notification\views.py:34:16: E711 comparison to None should be 'if cond is None:'
.\users\models.py:16:5: E265 block comment should start with '# '
.\users\models.py:16:14: W291 trailing whitespace
.\users\models.py:17:5: E265 block comment should start with '# '
.\users\models.py:17:17: W291 trailing whitespace
.\users\models.py:20:46: E241 multiple spaces after ','
.\users\serializers.py:12:5: E301 expected 1 blank line, found 0
.\users\serializers.py:19:9: E722 do not use bare 'except'
.\users\serializers.py:29:1: E302 expected 2 blank lines, found 1
.\users\serializers.py:31:5: E301 expected 1 blank line, found 0
.\users\serializers.py:56:39: W292 no newline at end of file
.\users\signals.py:1:1: F401 'django.db.models.signals.pre_save' imported but unused
.\users\signals.py:1:1: F401 'django.db.models.signals.post_delete' imported but unused
.\users\signals.py:7:1: W191 indentation contains tabs
.\users\signals.py:8:1: W191 indentation contains tabs
.\users\signals.py:9:1: W191 indentation contains tabs
.\users\signals.py:10:1: W191 indentation contains tabs
.\users\signals.py:11:1: E101 indentation contains mixed spaces and tabs
.\users\signals.py:11:13: E122 continuation line missing indentation or outdented
.\users\signals.py:12:1: W191 indentation contains tabs
.\users\signals.py:12:4: E265 block comment should start with '# '
.\users\signals.py:13:1: W191 indentation contains tabs
.\users\signals.py:13:4: E123 closing bracket does not match indentation of opening bracket's line
.\users\signals.py:14:1: E101 indentation contains mixed spaces and tabs
.\users\signals.py:14:1: W293 blank line contains whitespace
.\users\signals.py:15:1: W191 indentation contains tabs
.\users\signals.py:19:1: E101 indentation contains mixed spaces and tabs
.\users\signals.py:20:1: E101 indentation contains mixed spaces and tabs
.\users\signals.py:20:16: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
.\users\signals.py:21:1: E101 indentation contains mixed spaces and tabs
.\users\signals.py:21:1: W293 blank line contains whitespace
.\users\signals.py:22:1: E101 indentation contains mixed spaces and tabs
.\users\signals.py:24:1: E101 indentation contains mixed spaces and tabs
.\users\signals.py:24:9: E265 block comment should start with '# '
.\users\signals.py:25:1: E101 indentation contains mixed spaces and tabs
.\users\signals.py:26:1: E101 indentation contains mixed spaces and tabs
.\users\signals.py:28:1: E305 expected 2 blank lines after class or function definition, found 1
.\users\urls.py:7:5: E265 block comment should start with '# '
.\users\urls.py:14:87: W291 trailing whitespace
.\users\urls.py:22:28: E231 missing whitespace after ','
.\users\urls.py:22:49: E231 missing whitespace after ','
.\users\urls.py:26:39: E231 missing whitespace after ','
.\users\urls.py:26:65: E231 missing whitespace after ','
.\users\urls.py:27:36: E231 missing whitespace after ','
.\users\urls.py:28:2: W292 no newline at end of file
.\users\views.py:5:1: E265 block comment should start with '# '
.\users\views.py:10:1: F401 'django.shortcuts.render' imported but unused
.\users\views.py:26:1: F401 'notification.serializers.NotificationSerializer' imported but unused
.\users\views.py:30:25: E128 continuation line under-indented for visual indent
.\users\views.py:34:1: E302 expected 2 blank lines, found 1
.\users\views.py:48:1: E302 expected 2 blank lines, found 1
.\users\views.py:49:1: W293 blank line contains whitespace
.\users\views.py:79:5: E265 block comment should start with '# '
.\users\views.py:96:14: E711 comparison to None should be 'if cond is None:'
.\users\views.py:112:1: E302 expected 2 blank lines, found 1
.\users\views.py:118:1: E302 expected 2 blank lines, found 1
.\users\views.py:125:1: E302 expected 2 blank lines, found 1
.\users\views.py:132:1: E302 expected 2 blank lines, found 1
.\users\views.py:139:51: W291 trailing whitespace
.\users\views.py:141:1: W293 blank line contains whitespace
.\users\views.py:144:46: E222 multiple spaces after operator
.\users\views.py:165:5: E265 block comment should start with '# '
.\users\views.py:168:5: E303 too many blank lines (2)
.\users\views.py:174:1: W293 blank line contains whitespace
.\users\views.py:184:23: E225 missing whitespace around operator
.\users\views.py:185:21: E225 missing whitespace around operator
.\users\views.py:186:17: E225 missing whitespace around operator
.\users\views.py:189:1: W293 blank line contains whitespace
.\users\views.py:190:20: E225 missing whitespace around operator
.\users\views.py:191:25: E225 missing whitespace around operator
.\users\views.py:192:19: E225 missing whitespace around operator
.\users\views.py:195:40: E225 missing whitespace around operator
.\users\views.py:196:17: E225 missing whitespace around operator
.\users\views.py:197:21: E225 missing whitespace around operator
.\users\views.py:198:25: E127 continuation line over-indented for visual indent
.\users\views.py:200:21: E225 missing whitespace around operator
.\users\views.py:205:72: W291 trailing whitespace
.\users\views.py:208:1: E302 expected 2 blank lines, found 1
.\users\views.py:225:49: E231 missing whitespace after ','
.\users\views.py:226:5: F841 local variable 'e' is assigned to but never used
.\users\views.py:227:66: E231 missing whitespace after ','
.\users\views.py:243:66: E231 missing whitespace after ','
.\users\views.py:245:1: E302 expected 2 blank lines, found 1
.\users\views.py:256:38: E231 missing whitespace after ':'
.\users\views.py:256:71: E231 missing whitespace after ','
.\users\views.py:258:38: E231 missing whitespace after ':'
.\users\views.py:260:34: E231 missing whitespace after ':'
.\users\views.py:262:34: E231 missing whitespace after ':'

Add db.sqlite3 to .gitignore

Describe the bug

A clear and concise description of what the bug is that we should remove the DB.sqlite3 from the repo or add it to .gitignore so that we can avoid merging conflict and docs for createsuperuser command so that anyone contributing the repo can view and add their data in admin panel and test out everything that they have done !

To Reproduce

Steps to reproduce the behavior:

Commit any after changing something to DB

What was expected?

PR should be able merge without conflicts

server error on unauthenticated user

500 server error on unauthenticated users while viewing updating mumble and remumble
fix: add permission classes decorators (is authenticated)

Sentry Send Error reports only for production

The Sentry SDK should only send the Error reports when the website is live or should I say when the website hit any error at the local development server it sends error reports to sentry SDK, that should not be the case!
we have to allow the sentry SDK to send an error when the website is live on the Heroku server ! not on the local server!

To Reproduce

Steps to reproduce the behavior:

  1. Go to your local development server!
  2. Click on try raising an error on your local development server
  3. See the Local dev server logs
  4. See the sentry SDK will show up there!

What we expect is that sentry should only send error reports only in production server !

Feed Pagination Needed

I have the feed rendering posts from people a user is following but we may also want to add pagination along with "lazy load" on the frontend.

.gitignore file is not working properly

Describe the bug

The .gitignore file is not working properly i.e can't exclude the db.sqlite3 file

To Reproduce

Steps to reproduce the behavior:

  1. Pull Recent changes from the repo
  2. You will see that the SQLite database is not excluded

What was expected ?

The SQLite database is supposed to be ignored

Screenshots

Screenshot from 2021-04-27 20-39-29

Add database content in json

Is your feature request related to a problem? Please describe.

Since the database has been removed from the repository, it is necessary to have some similar content in our database for Development purposes

Describe the solution you'd like

I want to create a json file that will contain database content which contributers can load into their database. This permit contributers to have a prefilled database when they run the project.

adding gitignore

adding gitignore to prevent pushing bytecodes, database, media files

Request failed with status code 500 (login)

Preflight Checklist

  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Describe the bug

I can't login

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'mumble.dev'
  2. Type the username and password
  3. Login
  4. See error : Request failed with status code 500

Adding Automatic Migration Command for deployment

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is that when any new migrations are made then they are not applied in the Heroku DB

Describe the solution you'd like

A clear and concise description of what I want to happen is that whenever new migrations are made then the deployment should also apply new migrations to the Heroku DB.

Additional context

There will some additional code to Procfile so that Heroku can run new migrations to apply on its DB

Email verification for user

add email verification system

the solution i'd like

A clear and concise description of what i want to happen is that we should add a boolean field to the user model and a view to send verification email with token to user's provided email and frontend devs will make an email verification template to use in the email that will be sent to the user for verification.

social-auth activate or anyone working?

I wanna add the functionalities of using the social auth.

I have noticed the social-auth (login with google) is not ready to go .I wanna do the func using djoser authentication. Or anyone working to set that up?

adding heroku database configs

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is that we can add configs to use Heroku Postgres database for deployment without SQLite

the solution I'd like

A clear and concise description of what I want to happen is that to add configs to add settings for using Heroku Postgres at deployment and using SQLite for local without changing any setting manually

Notifications

We will need notification for the following:

  • New Follows
  • Comments & Replies
  • Retweets
  • Votes
  • User post notifications
  • New discussion and articles

I have seen several ways of implementing this. Maybe we can start a open discussion on the best way of implementing this? If you have ideas, speak up ;)

Notifcations

share delete post

when you post in mumble and share it then when you want to delete it it delete also the orign post like it is same token in the database and also the new post most be up and down to old post in your profile . i had an idea for story and messages and also skills not work there more if you wanna to tell you thenks for your hard work

Article App for API

Is your feature request related to a problem? Please describe.

It will be Article features and API endpoints and models with Views obviusly 

Describe the solution you'd like

It will make api for the Article to integrate with Frontend 

Datetime library import Error

Preflight Checklist

[[]] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Describe the bug

In the Users/views.py file on line 171, there is an undefined variable error i.e the DateTime library is not imported

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'users folder'
  2. Click on 'views.py file'
  3. Scroll down to 'line 171'
  4. See an error

What was expected?

Import of DateTime library at the top if view.py file

Screenshots

Error

Skills and Topic tags

Model for Skill and Topic Tags needed. At this point I feel both tags can be added in the "Users" app.

We also need to render these tags in the user serializer. At this point we just have hard coded values.
User Tags

Work on Avatar Endpoint

We need to fix up the image upload endpoint so that people can update their avatar image.

Feat: Improve Test Suite

Problem

As the project grows we need to add in more and more test cases to early detect bugs and be confident about the feature we wrote. The current setup limits us to write test cases in a linear way which may contain repetition of code in more places and also difficult for to extend..

Approach

  • Add in coverage and pytest-cov to cover the areas covered by the test suite. This allows us to cover more parts of the code which are not covered(tested).

  • Organize the test files in a proper way.

    • We may contain multiple views, multiple models, multiple serializers as the project grows. So writing unit tests for each and every thing in a single file (test_models.py, test_serializers.py, test_views.py) might not help in the long run.
    • Instead we can split the test files featurewise. For eg, the test files must be created separately for different features. The naming convention would be any of these (test_<feature_name>.py, <feature_name>_test.py)
  • Add in pytest-django as our test runner. pytest-django gives us as added advantage comparing to the regular test runner. And also it comes with additional features out of the box that django test runner don't have.

Note

The above mentioned approach will help us in the long run. Would love hear feedback on this. Thanks!

Discussion app for Mumble Api

Is your feature request related to a problem? Please describe.

I will like to work on the discussion app for the mumble API

Describe the solution you'd like

Firstly, I will create the discussion app with the models for the discussion.
Then I will proceed in making the endpoints and any future adjustments.

No description for the repo !

Preflight Checklist

[x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Describe the bug

There is no description for this repo !
And no attached link 

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'https://github.com/divanov11/mumbleapi'
  2. Click on 'code'
  3. Look at the right column
  4. See the error

What was expected ?

      I expected to see the link of Mumble and the Mumble Api

      A description as : 

      The Mumble Api Repository !
      Mumble is an open source social media built for developers.

setup editor config, flake8 and isort

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

  • Want to add a basic .editorconfig file
  • Next, we’ll add flake8 to enforce PEP8 rules
  • Finally, isort to have a standard way of sorting imports

Additional context

Well, the main aim is to maintain style consistency in the project as it grows.

Feat: Add django-debug-toolbar

Problem

As the project grows the codebase will contain huge number of urls, views, models etc. It may be hard for an individual to trace back the error that he/she never seen before.

Solution

  • By including the django-debug-toolbar in our project, we may reduce the time taken for an individual trace back to the root of the issue(like find the respective views, models, urls and so on).

  • This will also give us the ability to check the individual QRT for now.

Users Not Unique

Bug IN RegisterView(APIView):

While Creating An User/Account We Can Use Same Mail ID For Multiple Accounts, Which isn't An Issue Until We Wanna Reset Password/ Multiple Password Crashes

Issue 2:
Usernames Not Unique,
I Can Pretend To Dennis And Get Followers Because Of This Bug

Seo friendly link for articles

Adding slug field in articles

we can add slug field to articles model so that later we can create seo friendly links for each articles.

Endpoint and view for User reset password using Email

Including an endpoint for a user to reset their password via email without login

Describe the solution you'd like

A clear and concise description of what I want to happen is the user can enter their email in the form and if there will be any user associated with that email then the backend will send an password reset email to that user's email

Describe alternatives you've considered

Creating a token and sending a link attached to the email that will be sent to the user's email
also
I've considered installing a package for that which is 'django_rest_passwordreset'

IntegrityError at /admin/auth/user/

Preflight Checklist

FOREIGN KEY constraint failed Error on users table

Describe the bug

This error is raised when you try to delete a user in the database

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'http://127.0.0.1:8000/admin/auth/user/'
  2. Select a user
  3. Choose to delete on action bar
  4. See an error

What was expected ?

The user is supposed to be deleted successfully.

Screenshots

Screenshot from 2021-04-28 05-36-38

User able to delete the Remumbled Post !

Describe the bug

A clear and concise description of what the bug is that the user is not able to delete the post the was remumbled by the user!

Solution

Make an endpoint to delete the Remumbled post which was done by the current user!

Redirect to HTTPS

Describe the bug:

Redirect the URL to HTTPS

Screenshots:

image

Solution:

Add the following to the settings.py file, adding the middleware to your existing MIDDLEWARE list if one exists.

MIDDLEWARE = [
    # SecurityMiddleware must be listed before other middleware
    'django.middleware.security.SecurityMiddleware',
    # ...
]

if not DEBUG:      # When we are in production ( DEBUG = False ), the URL will redirect to HTTPS
    SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
    SECURE_SSL_REDIRECT = True    

Source:

User Recommendation Enhancement

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is.

  • In the API endpoint of User recommender in the 'user' application, the users are being recommended based on their primary key that literally makes no sense.

Describe the solution you'd like

A clear and concise description of what you want to happen.

  • A recommendation system can be used instead of this, which will be based on a machine learning model that recommends similar user based on certain user attributes.
  • I want to work on this, if you are willing to have this feature in this project.
  • I have worked on something similar previously that I can show you in the next discord meeting for better understanding of what I am trying to say

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context such as screenshots, schematics, about the feature request here.

Writing Test for API !

Writing Automated Test to make sure some bugs keep themselves out

Describe the solution you'd like

A clear and concise description of what I want to happen is to write automated tests for every app to make sure they are working as expected.

Delete and edit Report API

A clear and concise description of code will be to add edit and delete to article , comment edit and delete .

Update Contributing Guidelines for Code Review

Preflight Checklist

[x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Describe the bug

Update the contributing guidelines and PR template because non-collaborators cannot add reviewers or labels.

Solution

We'll ask PR authors to tag reviewers in the post if they want someone specifically to review. Or else, collab in charge of adding reviewer(s) and labels.

Refactor Notifications to use Foreign Keys

Is your feature request related to a problem? Please describe.

Our notifications link back to other models using content_id, but we don't use any type of foreign key. We want to refactor our notification model to have references to the article, mumble, follow_user, etc that the notification was originally created for to describe the event.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.