YJDH-805 | Kesäseteli backend: Filter & order employer applications#3876
YJDH-805 | Kesäseteli backend: Filter & order employer applications#3876karisal-anders merged 4 commits intomainfrom
Conversation
Rationale: - For search & ordering performance refs YJDH-805
refs YJDH-805
3953ff7 to
f29bee2
Compare
|
YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3876.api.dev.hel.ninja 🚀🚀🚀 |
|
EMPLOYER branch is deployed to platta: https://kesaseteli-pr3876.dev.hel.ninja 🚀🚀🚀 |
|
HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3876.dev.hel.ninja 🚀🚀🚀 |
|
YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3876.dev.hel.ninja 🚀🚀🚀 |
TestCafe result is success for https://kesaseteli-pr3876.dev.hel.ninja 😆🎉🎉🎉 |
TestCafe result is success for https://kesaseteli-handler-ui-pr3876.dev.hel.ninja 😆🎉🎉🎉 |
TestCafe result is success for https://nuortenkesaseteli-pr3876.dev.hel.ninja 😆🎉🎉🎉 |
e.g. `?only_mine=false` can be used to show all the user's company's EmployerApplications using EmployerApplicationViewSet. Currently it defaults to `?only_mine=true` i.e. the previous behavior. also: - allow all company's users to view all of the company's EmployerApplication objects, EmployerSummerVoucher objects, and their attachments - allow only the employer application's creator to: - update an existing EmployerApplication - post a new attachment to an EmployerSummerVoucher - delete an attachment from an EmployerSummerVoucher refs YJDH-805
f29bee2 to
9751a7b
Compare
|
YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3876.api.dev.hel.ninja 🚀🚀🚀 |
|
|
YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3876.dev.hel.ninja 🚀🚀🚀 |
|
EMPLOYER branch is deployed to platta: https://kesaseteli-pr3876.dev.hel.ninja 🚀🚀🚀 |
|
HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3876.dev.hel.ninja 🚀🚀🚀 |
TestCafe result is success for https://nuortenkesaseteli-pr3876.dev.hel.ninja 😆🎉🎉🎉 |
TestCafe result is success for https://kesaseteli-handler-ui-pr3876.dev.hel.ninja 😆🎉🎉🎉 |
TestCafe result is success for https://kesaseteli-pr3876.dev.hel.ninja 😆🎉🎉🎉 |



Description ✨
Kesäseteli backend: Filter & order employer applications
Backend support for employer UI's list, not for handlers.
e.g.
?only_mine=falsecan be used to show all the user's company'sEmployerApplications using EmployerApplicationViewSet. Currently it
defaults to
?only_mine=truei.e. the previous behavior.Allow all company's users to view all of the company's
EmployerApplication objects, EmployerSummerVoucher
objects, and their attachments
Allow only the employer application's creator to:
Previously the users only were able to see their own created EmployerApplications.
Company.nameEmployerApplication.created_atEmployerApplication.modified_atEmployerApplication.statusExample filtering & ordering of employer applications using query parameters:
https://localhost:8000/v1/employerapplications/?only_mine=false&user_id__in=1080,1082,1062,1006&ordering=user__first_name,user__last_name,-modified_at,idIssues 🐛
Testing ⚗️
Screenshots 📸
Additional notes 🗒️