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

community/: Add a form for uploading google forms #276

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

KVGarg
Copy link
Contributor

@KVGarg KVGarg commented Jul 31, 2019

Not everyone, will be able to fill forms.
Only the logged in users will be able to
fill them and some of the forms, can only
be filled by developers or contributors
who are a part of more than one team.
At every step, the check is performed whether
the user is authenticated or not, to avoid
false form submissions.

Closes #265

@TravisBuddy
Copy link

Travis tests have failed

Hey @KVGarg,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

1st Build

View build log

./.ci/build.sh
+rm db.sqlite3
rm: cannot remove 'db.sqlite3': No such file or directory
+true
+rm -rf private _site public
+mkdir private _site public
+META_REVIEW_DATA=meta_review.json
+EXPORTED_DATA='static/tasks.yaml static/instances.yaml static/meta_review.json'
+ISSUES_JSON=issues.json
+python manage.py fetch_deployed_data --allow-failure _site static/tasks.yaml static/instances.yaml static/meta_review.json
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 35.193.14.140. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
+[[ -n '' ]]
+python manage.py fetch_deployed_data _site issues.json --repo-name gh-board --hoster github
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 35.193.14.140. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
+python manage.py migrate
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Operations to perform:
  Apply all migrations: contenttypes, data, gamification, gci, gsoc, meta_review, openhub
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying data.0001_initial... OK
  Applying data.0002_auto_20180704_1130... OK
  Applying data.0003_auto_20180801_0456... OK
  Applying data.0004_auto_20180809_2229... OK
  Applying data.0005_contributor_location... OK
  Applying data.0006_auto_20190615_1331... OK
  Applying data.0007_auto_20190727_1348... OK
  Applying gamification.0001_initial... OK
  Applying gci.0001_initial... OK
  Applying gsoc.0001_initial... OK
  Applying meta_review.0001_initial... OK
  Applying meta_review.0002_auto_20180707_0305... OK
  Applying openhub.0001_initial... OK
+python manage.py import_contributors_data
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+python manage.py create_org_cluster_map_and_activity_graph org_map
Iywidgets and ipyleaflet support disabled. You must be in a Jupyter notebook to use this feature.
Error raised:
No module named 'ipywidgets'
Check that you have enabled ipyleaflet in Jupyter with:
    jupyter nbextension enable --py ipyleaflet
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+python manage.py import_issues_data
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+python manage.py import_merge_requests_data
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+python manage.py create_config_data
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+python manage.py create_participants
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+python manage.py update_participants_data
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Merge request: https://github.com/coala/coala-eclipse/pull/29 has no labels.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Merge request: https://github.com/coala/coala-atom/pull/85 has no labels.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Merge request: https://github.com/coala/documentation/pull/86 has no labels.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue: https://github.com/coala/projects/issues/508 has no labels.
Issue: https://github.com/coala/projects/issues/601 has no labels.
Issue: https://github.com/coala/coala/issues/2825 has no labels.
Issue: https://github.com/coala/gh-board/issues/10 has no labels.
Issue: https://github.com/coala/coala-quickstart/issues/54 has no labels.
Issue: https://github.com/coala/coala-bears/issues/910 has no labels.
Issue: https://github.com/coala/coala-bears/issues/1499 has no labels.
Issue: https://github.com/coala/coala-bears/issues/781 has no labels.
Issue: https://gitlab.com/coala/cobot/issues/24 has no labels.
Issue: https://gitlab.com/coala/package_manager/issues/158 has no labels.
Issue: https://gitlab.com/coala/mobans/issues/33 has no labels.
+[[ -f _site/meta_review.json ]]
+echo 'File meta_review.json exists.'
File meta_review.json exists.
+python manage.py loaddata _site/meta_review.json
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Installed 2618 object(s) from 1 fixture(s)
+python manage.py run_meta_review_system
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+rm _site/issues.json
+python manage.py dumpdata meta_review
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+python manage.py collectstatic --noinput

25 static files copied to '/home/travis/build/coala/community/_site'.
+python manage.py distill-local public --force
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'

You have requested to create a static version of
this site into the output path directory:

    Source static path:  _site/
    Distill output path: /home/travis/build/coala/community/public

Distill output directory exists, clean up?
This will delete and recreate all files in the output dir

Recreating output directory...

Generating static site into directory: /home/travis/build/coala/community/public
Loading site URLs
Running on Travis: True, build link: https://travis-ci.org/coala/community/builds/565983673
Rendering page: index.html -> /home/travis/build/coala/community/public/index.html ["text/html; charset=utf-8", 21359 bytes]  (renamed from "/")
Running on Travis: True, build link: https://travis-ci.org/coala/community/builds/565983673
Rendering page: join/index.html -> /home/travis/build/coala/community/public/join/index.html ["text/html; charset=utf-8", 19100 bytes]  (renamed from "/join/")
Rendering page: gci/tasks/rss.xml -> /home/travis/build/coala/community/public/gci/tasks/rss.xml ["application/rss+xml; charset=utf-8", 278961 bytes]  (renamed from "/gci/tasks/rss.xml")
Running on Travis: True, build link: https://travis-ci.org/coala/community/builds/565983673
Loaded 204 tasks
student 5302037795307520 is andrewda because of https://github.com/coala/community/issues/7
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 35.193.14.140. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 6160329186738176 url https://github.com/coala/gci-leaders/issues/51: ('{"message":"API rate limit exceeded for 35.193.14.140. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
student 5178132149567488 is 9r0x because of https://github.com/coala/coala/issues/4583
Unable to load gitmate/open-source repo gitmate-2-frontend: 'Please put your GL API key at .GL_API_KEY.'
Failed to load task 6317910194651136 url https://gitlab.com/gitmate/open-source/gitmate-2-frontend/issues/73: 'NoneType' object has no attribute 'assignees'
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5350115776659456 url https://github.com/tldr-pages/tldr/issues/1607: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5130855347388416 url https://github.com/jendrikseipp/vulture/issues/101: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Unable to load coala repo package_manager: 'Please put your GL API key at .GL_API_KEY.'
Failed to load task 4753765758402560 url https://gitlab.com/coala/package_manager/issues/67: 'NoneType' object has no attribute 'assignees'
Unable to load coala repo package_manager: 'Please put your GL API key at .GL_API_KEY.'
Failed to load task 5907067556593664 url https://gitlab.com/coala/package_manager/issues/125: 'NoneType' object has no attribute 'assignees'
student 4552227639263232 is nalinbhardwaj because of https://github.com/coala/community/issues/25
Unable to load gitmate/open-source repo gitmate-2-frontend: 'Please put your GL API key at .GL_API_KEY.'
Failed to load task 6317910194651136 url https://gitlab.com/gitmate/open-source/gitmate-2-frontend/issues/73: 'NoneType' object has no attribute 'assignees'
student 6214590973083648 is indmind because of https://github.com/coala/gci-leaders/issues/17
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5080668067332096 url https://github.com/coala/coala-quickstart/issues/158: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5080575549374464 url https://github.com/manu-chroma/username-availability-checker/issues/21: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Failed to load task 6583830645309440 url https://en.gravatar.com/support/: 'NoneType' object has no attribute 'assignees'
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 4616364578832384 url https://github.com/manu-chroma/username-availability-checker/issues/30: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5144141820329984 url https://github.com/PyCQA/pyflakes/issues/249: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 4853393698848768 url https://github.com/coala/corobo/issues/369: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
student 6479102439587840 is seeeturtle because of https://github.com/coala/community/issues/9
Failed to load task 6425638376308736 url https://github.com/coala/gci-leaders/pull/45: 'NoneType' object has no attribute 'assignees'
student 5057457392975872 is UnimaginaryUnit because of https://github.com/coala/corobo/issues/171
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.154.113.151. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 4892042859642880 url https://github.com/coala/meta/issues/106: ('{"message":"API rate limit exceeded for 104.154.113.151. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Unable to load coala repo package_manager: 'Please put your GL API key at .GL_API_KEY.'
Failed to load task 6211764884602880 url https://gitlab.com/coala/package_manager/issues/138: 'NoneType' object has no attribute 'assignees'
Failed to load task 5952910829551616 url https://github.com/coala/corobo/: 'NoneType' object has no attribute 'assignees'
Failed to load task 6583830645309440 url https://en.gravatar.com/support/: 'NoneType' object has no attribute 'assignees'
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.154.113.151. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5201638933397504 url https://github.com/coala/gci-leaders/issues/50: ('{"message":"API rate limit exceeded for 104.154.113.151. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Failed to load task 6469592090148864 url https://github.com/coala/coala/tree/master/coalib/bearlib/languages/definitions: 'NoneType' object has no attribute 'assignees'
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.154.113.151. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5668029776003072 url https://github.com/coala/coala-bears/issues/2201: ('{"message":"API rate limit exceeded for 104.154.113.151. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
student 5557452655296512 is margobra8 because of https://github.com/coala/coala/issues/4816
Failed to load task 4602539020386304 url https://github.com/coala/community/issues: 'NoneType' object has no attribute 'assignees'
Failed to load task 4602539020386304 url https://github.com/coala/community/issues: 'NoneType' object has no attribute 'assignees'
Failed to load task 6583830645309440 url https://en.gravatar.com/support/: 'NoneType' object has no attribute 'assignees'
student 4973831292715008 is dob9601 because of https://github.com/coala/community/issues/40
Unable to load gitmate/open-source repo gitmate-2-frontend: 'Please put your GL API key at .GL_API_KEY.'
Failed to load task 4566570439278592 url https://gitlab.com/gitmate/open-source/gitmate-2-frontend/issues/63: 'NoneType' object has no attribute 'assignees'
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 34.66.178.120. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5692569096814592 url https://github.com/manu-chroma/username-availability-checker/issues/39: ('{"message":"API rate limit exceeded for 34.66.178.120. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
student 6502237683580928 is biscuitsnake because of https://github.com/coala/coala/issues/4982
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 34.66.178.120. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5604333859110912 url https://github.com/coala/gci-leaders/issues/23: ('{"message":"API rate limit exceeded for 34.66.178.120. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5198834521079808 url https://github.com/coala/gci-leaders/issues/88: ('{"message":"API rate limit exceeded for 104.198.131.58. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 104.154.113.151. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5754678685990912 url https://github.com/coala/community/issues/42: ('{"message":"API rate limit exceeded for 104.154.113.151. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 34.66.178.120. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5165623594188800 url https://github.com/coala/projects/issues/354: ('{"message":"API rate limit exceeded for 34.66.178.120. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 34.66.178.120. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
Failed to load task 5131546711293952 url https://github.com/manu-chroma/username-availability-checker/issues/37: ('{"message":"API rate limit exceeded for 34.66.178.120. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403)
CommandError: Failed to render view: 403 {'message': "API rate limit exceeded for 104.154.113.151. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)", 'documentation_url': 'https://developer.github.com/v3/#rate-limiting'}
pytest
============================= test session starts ==============================
platform linux -- Python 3.6.7, pytest-3.6.4, py-1.7.0, pluggy-0.7.1
Django settings: community.settings (from ini file)
rootdir: /home/travis/build/coala/community, inifile: setup.cfg
plugins: requests-mock-1.6.0, travis-fold-1.3.0, timeout-1.3.3, reqs-0.2.0, reorder-0.1.1, profiling-1.3.0, mock-1.10.4, instafail-0.3.0, error-for-skips-1.0.0, env-0.6.2, django-3.3.3, cov-2.7.1
timeout: 35.0s
timeout method: signal
timeout func_only: False
collected 67 items / 3 skipped                                                 

requirements.txt F

______________________________ requirements-check ______________________________
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/_pytest/runner.py:109: in pytest_runtest_call
    item.runtest()
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/pytest_reqs.py:172: in runtest
    installed_distribution.project_name,
E   AttributeError: 'Distribution' object has no attribute 'project_name'

test-requirements.txt F

______________________________ requirements-check ______________________________
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/_pytest/runner.py:109: in pytest_runtest_call
    item.runtest()
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/pytest_reqs.py:172: in runtest
    installed_distribution.project_name,
E   AttributeError: 'Distribution' object has no attribute 'project_name'

community/tests/test_git.py ....                                         [  8%]
data/tests/test_contrib_data.py ..                                       [ 11%]
data/tests/test_issues.py ..                                             [ 14%]
data/tests/test_management_commands.py ...                               [ 18%]
data/tests/test_merge_requests.py ..                                     [ 21%]
data/tests/test_models.py ...............                                [ 43%]
data/tests/test_org_cluster_map_handler.py ..                            [ 46%]
data/tests/test_views.py ...                                             [ 50%]
gamification/tests/test_activity.py ...                                  [ 55%]
gamification/tests/test_activity_points.py ...                           [ 59%]
gamification/tests/test_labels.py .                                      [ 60%]
gamification/tests/test_management_commands.py ...                       [ 65%]
gamification/tests/test_models.py ...................                    [ 92%]
gamification/tests/test_points.py .                                      [ 94%]
gamification/tests/test_views.py ...                                     [ 98%]
meta_review/handler.py .                                                 [100%]
Profiling (from /home/travis/build/coala/community/prof/combined.prof):
Wed Jul 31 13:47:21 2019    /home/travis/build/coala/community/prof/combined.prof

         693504 function calls (674548 primitive calls) in 1.006 seconds

   Ordered by: cumulative time
   List reduced from 1978 to 20 due to restriction <20>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
       69    0.000    0.000    0.994    0.014 runner.py:105(pytest_runtest_call)
       66    0.000    0.000    0.924    0.014 unittest.py:182(runtest)
       62    0.001    0.000    0.922    0.015 testcases.py:188(__call__)
       66    0.000    0.000    0.898    0.014 case.py:652(__call__)
       66    0.003    0.000    0.898    0.014 case.py:570(run)
        6    0.000    0.000    0.511    0.085 client.py:525(get)
        6    0.000    0.000    0.511    0.085 client.py:334(get)
        6    0.000    0.000    0.510    0.085 client.py:390(generic)
        6    0.000    0.000    0.510    0.085 client.py:457(request)
        6    0.000    0.000    0.509    0.085 client.py:123(__call__)
        6    0.000    0.000    0.505    0.084 base.py:73(get_response)
     36/6    0.000    0.000    0.505    0.084 exception.py:31(inner)
     30/6    0.000    0.000    0.505    0.084 deprecation.py:87(__call__)
        6    0.000    0.000    0.502    0.084 base.py:96(_get_response)
        6    0.000    0.000    0.494    0.082 response.py:97(render)
        6    0.000    0.000    0.493    0.082 response.py:72(rendered_content)
     36/6    0.000    0.000    0.483    0.081 django.py:58(render)
     96/6    0.001    0.000    0.483    0.081 base.py:165(render)
    102/6    0.000    0.000    0.483    0.080 utils.py:90(instrumented_test_render)
    486/6    0.004    0.000    0.482    0.080 base.py:933(render)



travis_fold:start:py-4424.cov.0
----------- coverage: platform linux, python 3.6.7-final-0 -----------
Name                                      Stmts   Miss Branch BrPart  Cover   Missing
-------------------------------------------------------------------------------------
community/__init__.py                         0      0      0      0   100%
community/config.py                           3      0      0      0   100%
community/filters.py                          4      0      0      0   100%
community/forms.py                           16      0      0      0   100%
community/settings.py                        24      0      0      0   100%
community/wsgi.py                             4      0      0      0   100%
data/__init__.py                              0      0      0      0   100%
data/apps.py                                  3      0      0      0   100%
data/contrib_data.py                         32      0      4      0   100%
data/issues.py                               50      0      8      0   100%
data/merge_requests.py                       57      0     10      0   100%
data/models.py                               63      0      2      0   100%
data/newcomers.py                            12      0      2      0   100%
data/org_cluster_map_handler.py              69      0     28      0   100%
data/urls.py                                  3      0      0      0   100%
data/webservices.py                           5      0      0      0   100%
gamification/__init__.py                      0      0      0      0   100%
gamification/data/config.py                  51      0      0      0   100%
gamification/data/points.py                   3      0      0      0   100%
gamification/labels.py                       17      0     19      0   100%
gamification/models.py                       73      0     21      0   100%
gamification/participants.py                  7      0      2      0   100%
gamification/points.py                       12      0      6      0   100%
gamification/process/__init__.py              0      0      0      0   100%
gamification/process/activity.py              9      0      4      0   100%
gamification/process/activity_points.py       8      0      0      0   100%
gamification/process/update.py               55      0     13      0   100%
meta_review/__init__.py                       0      0      0      0   100%
meta_review/apps.py                           3      0      0      0   100%
meta_review/models.py                        38      0      0      0   100%
meta_review/urls.py                           3      0      0      0   100%
-------------------------------------------------------------------------------------
TOTAL                                       624      0    119      0   100%
travis_fold:end:py-4424.cov.0

Required test coverage of 100% reached. Total coverage: 100.00%
=========================== short test summary info ============================
FAIL requirements.txt
FAIL test-requirements.txt
SKIP [1] /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/_pytest/doctest.py:356: unable to import module local('/home/travis/build/coala/community/gci/api_actions.py')
SKIP [1] /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/_pytest/doctest.py:356: unable to import module local('/home/travis/build/coala/community/gci/management/commands/create_issue_tasks.py')
SKIP [1] /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/_pytest/doctest.py:356: unable to import module local('/home/travis/build/coala/community/gci/management/commands/publish_tasks.py')

=============== 2 failed, 67 passed, 3 skipped in 20.61 seconds ================
TravisBuddy Request Identifier: 4e6cf610-b39a-11e9-a522-656c855f12dd

@KVGarg KVGarg force-pushed the org-google-form-uploader branch 2 times, most recently from 5584daf to 1f02fd4 Compare August 3, 2019 14:41
KVGarg and others added 6 commits August 4, 2019 23:10
The updation in model adds new data fields
which will be useful, in further work. Also,
it will reduce the API calls, which are being
made to fetch these information. Instead of
making new API Calls, we can get them from
webservices and use them directly.
The openhub module got disabled due to some
reasons in community project last year. And,
currently the module is raising the CI errors
which need to be avoided. They can be worked
on once we're ready to enable the openhub
module once again in this project in future.
As in future, the data will be fetched
from coala-webservices intead of @sks444
repository (webservices.coala.io). So,
to remove that dependency the tests have
been modified accordingly.
Running command ".ci/build.sh" locally on pc used
to failed the build, if there is more than one
git remote's.

Fixes coala#235
The enhancement includes addition of materialize
css, JQuery, responsiveness, and easy-navigation
of website features. The easy-navigatibility is
achieved by adding a navbar with display of meta
-review and gamification leaderboard on homepage.
Apart from this, the activity graph url is omitted
from website by displaying the graph itslef on the
homepage on large devices.

Closes coala#255
The newly created webpage combines the previous
two webpages- info.txt and log/index.html. This
web-page combines the results of both the pages
and shows them in a better UI/UX with additional
features of filtering and searching within the
existing logs. The logs are fetched from a JSON
file which is created from the logs stored in
the log file _site/community.log

Closes coala#256
The redesigned web-page displays the data
in a better UI/UX form with some additional
information to make it more interactive and
attractive.

Closes coala#257
The redesigned web-page provides a nice
UI/UX design to the web-page with "search"
feature.

Closes coala#259
The redesigned webpages provides a enhanced
UI/UX design to web-page with additional
functionality of searching the contributors.

Closes coala#260
The contributor can sign-in with either
GitHub or GitLab account provided the
user is member of the organization. The
validation is being performed via a http
request which accepts the access_token
retrieved from the netlify o-authentication.

Closes coala#262
The netlify form will ask some particular
inputs that will be used for validating
the user - whether the user is eligible
to be a organization member. The checks for
it have been defined in coala webservices API
which will be accepting form-submissions over
a cron-job defined. After the user submits the
form, a success message will be displayed.

Closes coala#89, coala#266
Show the contributor statistics in the form of
charts. The charts will be shown for issues,
commits, reviews and for merge requests. And,
an overall chart, which will display stats
repository wise. Apart from all these charts,
the type of issues the contrib has worked on
will be shown, with the count of issues the
user is working on and the last updated datetime
the user data was updated. All this will be shown,
only if there is some statistics, otherwise the
popup option willn't be shown.

Closes coala#268
@KVGarg KVGarg force-pushed the org-google-form-uploader branch 2 times, most recently from 4b4a08d to 9e6eb58 Compare August 5, 2019 17:21
Not everyone, will be able to fill forms.
Only the logged in users will be able to
fill them and some of the forms, can only
be filled by developers or contributors
who are a part of more than one team.
At every step, the check is performed whether
the user is authenticated or not, to avoid
false form submissions.

Closes coala#265
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add form for adding a new Google form
2 participants