Skip to content

Filter organisations by translation published#64

Merged
jajaramillo24 merged 1 commit intostagingfrom
WN-359
Mar 25, 2026
Merged

Filter organisations by translation published#64
jajaramillo24 merged 1 commit intostagingfrom
WN-359

Conversation

@jajaramillo24
Copy link
Copy Markdown
Collaborator

Add support for filtering organisations by whether their translations are published. Implemented a new OrganisationRepository::allByTranslationPublished and declared it on the interface. OrganisationController@getAll now accepts an optional boolean ?published query param, validates it (returns 422 on invalid values), and uses the repository filter when provided; otherwise it falls back to returning all organisations. Also exposed public routes GET /org/ and GET /organisations to the controller and removed the duplicate secured route.

Add support for filtering organisations by whether their translations are published. Implemented a new OrganisationRepository::allByTranslationPublished and declared it on the interface. OrganisationController@getAll now accepts an optional boolean ?published query param, validates it (returns 422 on invalid values), and uses the repository filter when provided; otherwise it falls back to returning all organisations. Also exposed public routes GET /org/ and GET /organisations to the controller and removed the duplicate secured route.
@jajaramillo24 jajaramillo24 merged commit 10df2f1 into staging Mar 25, 2026
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.

2 participants