Skip to content

Comments

YJDH-805 | Kesäseteli backend: Filter & order employer applications#3876

Merged
karisal-anders merged 4 commits intomainfrom
YJDH-805-employer-app-filters
Feb 11, 2026
Merged

YJDH-805 | Kesäseteli backend: Filter & order employer applications#3876
karisal-anders merged 4 commits intomainfrom
YJDH-805-employer-app-filters

Conversation

@karisal-anders
Copy link
Collaborator

@karisal-anders karisal-anders commented Feb 10, 2026

Description ✨

Kesäseteli backend: Filter & order employer applications

Backend support for employer UI's list, not for handlers.

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.

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

Previously the users only were able to see their own created EmployerApplications.

  • Add database indexes for search & ordering performance:
    • Company.name
    • EmployerApplication.created_at
    • EmployerApplication.modified_at
    • EmployerApplication.status

Example 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,id

Issues 🐛

Testing ⚗️

Screenshots 📸

Additional notes 🗒️

@karisal-anders karisal-anders requested review from a team as code owners February 10, 2026 13:42
@karisal-anders karisal-anders removed request for a team February 10, 2026 13:42
@karisal-anders karisal-anders marked this pull request as draft February 10, 2026 13:48
@karisal-anders karisal-anders force-pushed the YJDH-805-employer-app-filters branch from 3953ff7 to f29bee2 Compare February 10, 2026 14:04
@karisal-anders karisal-anders marked this pull request as ready for review February 10, 2026 14:04
@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3876.api.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3876.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3876.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3876.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3876.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3876.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

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
@karisal-anders karisal-anders force-pushed the YJDH-805-employer-app-filters branch from f29bee2 to 9751a7b Compare February 11, 2026 08:38
@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3876.api.dev.hel.ninja 🚀🚀🚀

@sonarqubecloud
Copy link

@azure-pipelines
Copy link

YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3876.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3876.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3876.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://nuortenkesaseteli-pr3876.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3876.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3876.dev.hel.ninja 😆🎉🎉🎉

@karisal-anders karisal-anders merged commit bc70a4b into main Feb 11, 2026
74 checks passed
@karisal-anders karisal-anders deleted the YJDH-805-employer-app-filters branch February 11, 2026 09:03
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.

1 participant