GithubHelp home page GithubHelp logo

technikradio / c3focsite Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 3.45 MB

This is the repository for the C3FOC web site. Follow @c3foc on twitter for upcomming news.

License: BSD 3-Clause "New" or "Revised" License

Python 89.76% CSS 10.24%
c3 django

c3focsite's People

Contributors

doralitze avatar felixrindt avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

c3focsite's Issues

DoesNotExist exception at /search

Behaviour mismatch

DoesNotExist exception when attempting to search to nonexistent article

How to reproduce the bug

Type a search into the search bar that does not yield any query results.

My environment

Does not apply here.

Missing remove article button

Behaviour mismatch

When adding a reservation one should be able to correct an article request

How to reproduce the bug

Go to the reservations page and add one

Navbar untested

The feature of the navigation bar isn't tested to be working yet.

Editing a post creates a new one

Behaviour mismatch

Instead of editing the content of an existing post the action simply creates a new one containing the modifications.

How to reproduce the bug

  1. Create a post entry.
  2. Edit the previously created post
  3. Review the stored posts: there should be 2 now

My environment

  • Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64
  • Python 3.6.3
  • beautifulsoup4==4.6.0 certifi==2017.7.27.1 chardet==3.0.4 Django==1.11 django-extensions==1.9.1 django-markdown-app==0.9.2 idna==2.6 Markdown==2.6.8 MarkdownSubscript==2.0.0 MarkdownSuperscript==2.0.0 nose==1.3.7 numpy==1.13.3 pyembed==1.3.3 pyembed-markdown==1.1.0 pytz==2017.2 requests==2.18.4 six==1.11.0 urllib3==1.22
  • No broken requirements found.

Closing a reservation doesn't decrease real amount

The following needs to be done:

  • decrease amount of requested articles
  • When computing virtual amount only use active reservations
  • Change rendering of article amount inside index page to virtual amount or decrease after putting reservation to ready state

Render total at end of order

Behaviour mismatch

There should be a dedicated table entry at the end of the reservation containing the summed up ordered articles and the total cost. It should be implemented with remaining space as well.

Make processing of orders a paper thing

Behaviour mismatch

Sometimes it doesn't fit the workflow to use a pure digital solution when fulfilling the orders.

Solution

Make the processing of an order be possible by exporting a pdf list for the orders.

CSFR protection issue

All the @csfr_exempt must be removed and the issue about the non working tokens must be fixed before production

External user add

When the admin adds a user it should be possible to generate a random password. The password should be sent by mail and the user should be required to change the password on next login.

Mark invisible articles

Behaviour mismatch

Invisible articels should be marked as invisible in table

How to reproduce the bug

Look at the invisible articles. None of them is marked.

User Input HTML escaping

Make sure that no user is capable of putting html code inside fields. <> should be escaped using the correct html notation.
All text fields producing cached html should only be allowed to contain html beside markdown when permission is given by the admin. Other html must also be properly escaped.

New article after image change

Behaviour mismatch

After changing the image of an article one gets redirected to the add new article wizzard. This seams to be caused by a missing article id get statement imposed by /admin/actions/add-image-to-article

How to reproduce the bug

Go to the Articles administration and edit an existing article. After changing the splash image one gets redirected to ´´´/admin/articles/edit´´´ missing the article_id tag.

Articles with long notes get cut off

When the article is longer than the remaining page the pdf article render function should return the Request instead putting it on a retry list.

Fix broken CSS for Chrome

Misbehaviour

When loading the admin area using google chrome some tables have broken layout.

How to reproduce the bug

Open the admin dashboard using google chrome.

My environment

Does not apply here

Arrayoverflow when attempting to add article reservation

Behaviour mismatch

Attempting to add a new article reservation causes an array overflow

How to reproduce the bug

  1. Go to reservations
  2. Click on "Add a new order"
  3. Click on select article button
  4. Select an article
  5. Specify amount and click ok

My environment

Does not apply

Stack trace


Environment:

Request Method: POST
Request URL: http://technikradio.org:8000/admin/actions/add-article-to-reservation?article_id=1&redirect=/admin/reservations/edit

Django Version: 1.11.7
Python Version: 3.6.3
Installed Applications:
['django_extensions',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'frontpage.apps.FrontpageConfig']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']

Traceback:

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  58.         return view_func(*args, **kwargs)

File "/usr/home/leondietrich/C3FOCSite/c3shop/frontpage/views.py" in action_add_article_to_reservation
  133.     return reservation_actions.add_article_action(request, "/admin/reservations")

File "/usr/home/leondietrich/C3FOCSite/c3shop/frontpage/management/reservation_actions.py" in add_article_action
  22.     current_reservation = json.loads(request.COOKIES.get(RESERVATION_CONSTRUCTION_COOKIE_KEY))

File "/usr/local/lib/python3.6/json/__init__.py" in loads
  348.                             'not {!r}'.format(s.__class__.__name__))

Exception Type: TypeError at /admin/actions/add-article-to-reservation
Exception Value: the JSON object must be str, bytes or bytearray, not 'NoneType'

/admin/media/select renderes blank page / 405

Behaviour mismatch

When opening /admin/media/select the server renders a 405 issue and returns a document but won't display anything.

How to reproduce the bug

Add a new article and let the redirect happen.

My environment

Fresh database, no images added.

Customize confirm message

Add the handling of an optional GET argument to admin/confirm in order to customize the messages.

Add setting to allow unpriviledged users the creation of orders

#Please make sure you've read the guidlines relating issues inside CONTRIBUTING.md
This will make both your and our lives easier. Have you already done this you can
delete this template code or use the template below for submitting bugs:

Behaviour mismatch

Insert details about the issue here

How to reproduce the bug

Insert instructions here

My environment

Insert your environment information here in case you're using your own installation
Don't forget to label accordingly

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.