Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
apps/ideas/phases: remove ordering from phases to use default (daily …
Browse files Browse the repository at this point in the history
…random) - fixes #436
  • Loading branch information
fuzzylogic2000 authored and Rineee committed Apr 21, 2021
1 parent 00a4ab7 commit dffc1cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
18 changes: 6 additions & 12 deletions apps/ideas/phases.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class PreCallPhase(BaseIdeaPhase):
'get an idea how the idea challenge is run'
)

default_filters = QueryDict('ordering=newest&'
'status=winner',
default_filters = QueryDict('status=winner',
mutable=True
)

Expand Down Expand Up @@ -67,8 +66,7 @@ class InterimPostSketchPhase(BaseIdeaPhase):
'submitting of idea sketches is closed'
)

default_filters = QueryDict('ordering=newest&'
'status=&'
default_filters = QueryDict('status=&'
'project=',
mutable=True
)
Expand All @@ -89,8 +87,7 @@ class CommunityAwardRatingPhase(BaseIdeaPhase):
# rating only for users, that added an idea in this (or previous) years
}

default_filters = QueryDict('ordering=comments&'
'status=&'
default_filters = QueryDict('status=&'
'project=',
mutable=True
)
Expand All @@ -105,8 +102,7 @@ class InterimShortlistSelectionPhase(BaseIdeaPhase):
name = _('Interim shortlist selection phase')
description = _('ideas for the shortlist are chosen by the jury')

default_filters = QueryDict('ordering=support&'
'status=&'
default_filters = QueryDict('status=&'
'project=',
mutable=True
)
Expand All @@ -121,8 +117,7 @@ class InterimShortlistPublicationPhase(BaseIdeaPhase):
name = _('Interim shortlist publication phase')
description = _('the shortlist is published')

default_filters = QueryDict('ordering=title&'
'status=shortlist&project=',
default_filters = QueryDict('status=shortlist&project=',
mutable=True
)

Expand All @@ -137,8 +132,7 @@ class InterimWinnersPhase(BaseIdeaPhase):
description = _('winning ideas are from the current idea '
'challenge are shown')

default_filters = QueryDict('ordering=newest&'
'status=winner&'
default_filters = QueryDict('status=winner&'
'project=',
mutable=True
)
Expand Down
10 changes: 2 additions & 8 deletions docs/phase_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,32 @@
This document explains, which phase types exist and are implemented for a project (one idea challenge).

1. Pre Call Phase
- sorting: newest
- filtering: status - winners
- will be empty the first time the challenge is held

2. Idea Sketch Phase
2. Idea Phase
- _idea sketches can be added and updated_
- sorting: newest
- filtering: status - ideasketch, year - current

3. Interim Post Sketch Phase
- sorting: newest
- filtering: status - ideasketch, year - current

4. Community Award Rating Phase
- _rating of the ideas, only possible to users who added idea in this or previous years_
- sorting: most support
- filtering: status - ideasketch, year - current

5. Interim Shortlist Selection Phase
- sorting: most support
- filtering: status - ideasketch, year - current

6. Interim Shortlist Published Phase
- shortlist (including the community award winner) is published
- sorting: alphabetical
- filtering: status - shortlist, year - current

7. Interim Winners Phase
- sorting: newest
- filtering: status - winner, year - current

8. Final Implementation (not a Phase)
- winners can add journey entries (as they can always do)
- sorting: newest
- sorting: daily random (as this is the default)
- filtering: status - winners

0 comments on commit dffc1cd

Please sign in to comment.