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

Multi year staging #149

Merged
merged 42 commits into from
May 29, 2024
Merged

Multi year staging #149

merged 42 commits into from
May 29, 2024

Conversation

struan
Copy link
Member

@struan struan commented May 20, 2024

This is all the work to cope with enabling multiple question sets to exist in grace.

struan added 17 commits May 8, 2024 11:58
Enables multiple sets of questions etc to be in one database by
associating sections and assignments with a marking session
Set this as a propery on the request object which is not entirely ideal
but is handy. Also set some context data with current session and all
sessions as this is useful in templates
The same as the default set but with a marking session as the first
element in the path so we can be specific about which marking session
Any time we load sections or assignments it needs to check the current
marking session and only load the sections or assignments for that
session. Also use it in counts.
Also adds a command to set up a basic session
Mostly to allow filtering using sessions, but also to display sessions
To allow different section names for different marking sessions
Enables us to refer to something other than councils in the interface
This is at a per site level.
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 77.26764% with 203 lines in your changes are missing coverage. Please review.

Project coverage is 78.94%. Comparing base (2aa5ec8) to head (4c8bad5).

Files Patch % Lines
crowdsourcer/views/volunteers.py 40.36% 65 Missing ⚠️
crowdsourcer/forms.py 34.48% 57 Missing ⚠️
crowdsourcer/management/commands/export_marks.py 63.46% 16 Missing and 3 partials ⚠️
crowdsourcer/scoring.py 63.82% 16 Missing and 1 partial ⚠️
crowdsourcer/views/stats.py 25.00% 12 Missing ⚠️
crowdsourcer/views/progress.py 71.87% 5 Missing and 4 partials ⚠️
crowdsourcer/views/marking.py 65.00% 5 Missing and 2 partials ⚠️
crowdsourcer/views/base.py 73.91% 5 Missing and 1 partial ⚠️
...management/commands/remove_identical_duplicates.py 70.00% 3 Missing ⚠️
...ands/unassign_incomplete_sections_from_inactive.py 62.50% 3 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #149      +/-   ##
==========================================
+ Coverage   76.85%   78.94%   +2.08%     
==========================================
  Files          67       80      +13     
  Lines        3414     3984     +570     
  Branches      334      357      +23     
==========================================
+ Hits         2624     3145     +521     
- Misses        720      767      +47     
- Partials       70       72       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

struan and others added 12 commits May 20, 2024 16:54
Lots of other things will probably break but at least you don't get
immediately presented with a 500 error
As well as a bunch of other improvements, this brings a fix for
`<button>` elements appearing unstyled when used in a `.nav`
(which we do in our header).
- Admin options are now in their own navbar
- Admin nav dropdown menus are end-aligned, to prevent "Stats" menu
  extending beyond right edge of viewport
- "Sign in" nav link now leads to `login` page, rather than homepage
It seems the first one (“Volunteer progress”) is actually
all about the First Mark. And there’s no need to repeat
“progress” at the end of each one, especially as some of
the child elements aren’t about ‘progress’ really.
@struan struan force-pushed the multi-year-staging branch from 4c8bad5 to 552f7e5 Compare May 22, 2024 10:06
struan added 2 commits May 22, 2024 12:27
make sure we strip and lower case, plus warn if it's not a string
makes things a bit clearer in the admin
@struan struan force-pushed the multi-year-staging branch from 552f7e5 to cc57454 Compare May 22, 2024 11:29
@struan struan force-pushed the multi-year-staging branch from 661ac36 to e7b2b7c Compare May 22, 2024 14:32
@struan struan merged commit a0fb7a2 into main May 29, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants