Coder Social home page Coder Social logo

django-dmp's Introduction

django-dmp's People

Contributors

ellesmith88 avatar spepler avatar

Watchers

James Cloos avatar Philip Kershaw avatar Ag Stephens avatar Matt Pritchard avatar Andrew Harwood avatar  avatar Steve Donegan avatar Graham Parton avatar  avatar

Forkers

sreelathav

django-dmp's Issues

500 when trying to create draft dmp

Traceback (most recent call last):
  File "/home/waitress/venv/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/home/waitress/venv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/waitress/venv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib64/python3.6/contextlib.py", line 52, in inner
    return func(*args, **kwds)
  File "/home/waitress/venv/lib64/python3.6/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/waitress/src/django_dmp/dmp/views.py", line 302, in dmp_draft
    if token.token_expiry < datetime.datetime.now():
TypeError: can't compare offset-naive and offset-aware datetimes

Name error settings is not defined

[Mon Oct 07 07:38:14 2019] [error] [client 130.246.120.193]   File "/usr/local/pyenv/lib/python2.7/site-packages/dmp/views.py", line 305, in dmp_draft
[Mon Oct 07 07:38:14 2019] [error] [client 130.246.120.193]     r = requests.post("https://www.googleapis.com/oauth2/v4/token",{'client_id':settings.DMP_AUTH['OAUTH']['CLIENT_ID'],
[Mon Oct 07 07:38:14 2019] [error] [client 130.246.120.193] NameError: global name 'settings' is not defined

Draft DMP Uploader - Duplicates DMP

If there is more than one folder with the same name as the parent folder eg. DMP or 2013 then the DMP will be uploaded to every location where this is true.

Projects with closed reminders do not show up in projects with no reminders.

I've spotted that the reporting stats for projects and actions aren't quite being calculated properly.

Basically, the issue is that the search for "projects with no reminders" is ignoring those projects with no open tasks but with 1 or more closed tasks. E.g. see : https://dmp.ceda.ac.uk/admin/dmp/project/330/change/

this has 2 completed tasks.... and doesn't show up under the "Project with no reminder" listing on https://dmp.ceda.ac.uk/dmp/todo_list/

[2:15]
and so the stats on this page aren't quite right either : https://dmp.ceda.ac.uk/dmp/todo_list/summary/

Project 559 DMP upload giving server error. Looks like an encoding error in views.py

[Wed Apr 05 09:53:52 2017] [error] [client ] django.request exception ERROR [2017-04-05 09:53:52,011] Internal Server Error: /dmp/google_drive_upload/559/
[Wed Apr 05 09:53:52 2017] [error] [client ] Traceback (most recent call last):
[Wed Apr 05 09:53:52 2017] [error] [client ] File "/usr/local/pyenv/lib/python2.7/site-packages/django/core/handlers/exception.py", line 39, in inner
[Wed Apr 05 09:53:52 2017] [error] [client ] response = get_response(request)
[Wed Apr 05 09:53:52 2017] [error] [client ] File "/usr/local/pyenv/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
[Wed Apr 05 09:53:52 2017] [error] [client ] response = self.process_exception_by_middleware(e, request)
[Wed Apr 05 09:53:52 2017] [error] [client ] File "/usr/local/pyenv/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
[Wed Apr 05 09:53:52 2017] [error] [client ] response = wrapped_callback(request, callback_args, **callback_kwargs)
[Wed Apr 05 09:53:52 2017] [error] [client ] File "/usr/local/pyenv/lib/python2.7/site-packages/dmp/views.py", line 75, in google_drive_upload
[Wed Apr 05 09:53:52 2017] [error] [client ] result.write(html.encode("ISO-8859-1"))
[Wed Apr 05 09:53:52 2017] [error] [client ] File "/usr/local/pyenv/lib/python2.7/site-packages/django/utils/functional.py", line 15, in _curried
[Wed Apr 05 09:53:52 2017] [error] [client ] return _curried_func(
(args + moreargs), *dict(kwargs, morekwargs))
[Wed Apr 05 09:53:52 2017] [error] [client ] File "/usr/local/pyenv/lib/python2.7/site-packages/django/utils/safestring.py", line 104, in _proxy_method
[Wed Apr 05 09:53:52 2017] [error] [client ] data = method(self, args, kwargs)
[Wed Apr 05 09:53:52 2017] [error] [client ] UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2013' in position 17123: ordinal not in range(256)
[Wed Apr 05 09:53:54 2017] [error] [client ] requests.packages.urllib3.connectionpool connectionpool DEBUG [2017-04-05 09:53:54,512] Starting new HTTPS connection (1): www.googleapis.com
[Wed Apr 05 09:53:54 2017] [error] [client ] requests.packages.urllib3.connectionpool connectionpool DEBUG [2017-04-05 09:53:54,582] https://www.googleapis.com:443 "POST /oauth2/v4/token HTTP/1.1" 200 None
[Wed Apr 05 09:53:54 2017] [error] [client ] requests.packages.urllib3.connectionpool connectionpool DEBUG [2017-04-05 09:53:54,588] Starting new HTTPS connection (1): www.googleapis.com
[Wed Apr 05 09:53:54 2017] [error] [client ] requests.packages.urllib3.connectionpool connectionpool DEBUG [2017-04-05 09:53:54,789] https://www.googleapis.com:443 "GET /oauth2/v3/userinfo?access_token=
HTTP/1.1" 200 None

Create notes when user makes change to reminders

When the user makes a change to a reminder, be that modify description/due date, delete or complete, create a new note against the project. Also allow the user to make additional comments at the same time.

New View - To-do list

Have a way of flagging when projects require action and present a list of projects where this date has passed and which ones are upcoming. Gives a shortened list where projects which do not require attention for some time are not shown.

Order of buttons in navbar

On branch dmp-site-python-3: order of buttons is incorrect. Home, Projects, Grants should come before welcome/login/logout

Add a project status field

Add a dropdown field with options:

  • Initial contact
  • DMP comms
  • Progress
  • Data delivery

On the todo list, display the status and give a count for each type at the end of the summary table.

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.