Closed haudquaquam closed 4 months ago
Thanks, code changes so far LGTM. I'll take a closer look when the actual survey has been integrated.
(Reminder to add a popup to the renewal request detail view, showing the answers.)
Changes
renewal_survey_responses
to export_data
command:
survey_responses
to new_project_responses
renewal_survey_responses
is a subcommand that will print the responses of AllocationRenewalRequest
renewal survey responses given a format and allocation period.AllocationRenewalRequest
objects within a certain allocation_period
are empty).allocation_period
flag where user specifies the period (i.e. 'Allowance Year 2024 - 2025').How to Test
AllocationRenewalRequest
with the corresponding survey answers under the 2024-2025 allowance year (since the previous years did not have required renewal forms.)python3 manage.py export_data renewal_survey_responses --allocation_period 'Allowance Year 2024 - 2025' --format json
csv
and ensure that it displays properly as well.'Allowance Year 2023 - 2024'
) to make sure that the proper exception is thrown, indicating that allocation periods earlier than 2024 - 2025 did not have required renewal surveys.Changes
export_data
renewal survey responses function:
list index out of bounds
for invalid allocation periods._swap_form_answer_id_for_text
.Changes:
app-base
Docker image to install libfaketime
, which can be used to mock a date/time by setting some environment variables.
Fixes #571
Changes
renewal_survey_answers
toAllocationRenewalRequest
model to store survey responses. Default value is an empty dict.ProjectRenewalSurveyForm
(modeled afterSavioProjectSurveyForm
):BRC_ONLY
orLRC_ONLY
flag at runtime to determine which questions to display. BRC and LRC will use different survey questions.project_renewal_survey.html
, modeled afternew_project_survey.html
.AllocationRenewalRequestUnderProjectView
andAllocationRenewalRequestView
inrenewal_views/request_views.py
.How to Test