-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow providers to csv export all their application choices #10352
Conversation
Previously, we allowed providers to only export their applications choices only from the current and previous cycle This commit allows them to export every recruitment cycle they have application choices for.
app/controllers/provider_interface/application_data_export_controller.rb
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks for adding the line about getting the cycles in the review apps!
One little UI thing: I think it would be better to have the years in reverse order, the current year on top:
But I don't feel strongly about it.
The other thing is I'm not sure about reseeding the timetables in the rails_helper
. Right now, you note something as a :feature
test, it will automatically sed the timetables and set the current time to mid cycle.
If you set the time on any of the tests using the CycleTimetableHelper
(eg mid_cycle
), it will make sure there are timetables seeded.
In the rare cases where they are needed and not covered by these scenarios, you can just add seed_timetables
in the describe line of a test.
I would prefer this method to using the data migration, because how we seed the timetables will evolve as we stop relying on them being defined in a yml file.
I've reversed sorted the recruitment cycle years b4d00c9 |
providers: providers_that_actor_belongs_to, | ||
recruitment_cycle_year: RecruitmentCycleTimetable.pluck(:recruitment_cycle_year), | ||
) | ||
choices.map(&:current_recruitment_cycle_year).uniq.sort.reverse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful! So great to have this out so quickly -- a provider only asked for it on Wednesday.
Context
Previously, we allowed providers to only export their applications
choices only from the current and previous cycle
This commit allows them to export every recruitment cycle they have
application choices for.
Changes proposed in this pull request
Application export
Guidance to review
Go on review app, log as a provider and export applications that are at least 3 cycles ago.
The provider
NIoT@Harris Initial Teacher Education
has 2023 applications to export, 2023, 2 cycles ago was not possible to export.Things to check