WFPREV-813 Add query parameter filters to project location endpoint#1018
Merged
WFPREV-813 Add query parameter filters to project location endpoint#1018
Conversation
…eature/WFPREV-813
…eature/WFPREV-813
|
sukhpalp
approved these changes
Oct 6, 2025
sukhpalp
pushed a commit
that referenced
this pull request
Jan 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Query being performed for example API call {{LOCAL_API_URL}}/project-locations?fiscalYear=2024&projectTypeCode=CULT_RX_FR&fireCentreOrgUnitId=25&forestDistrictOrgUnitId=30&planFiscalStatusCode=DRAFT&activityCategoryCode=MNT_SURVEY&programAreaGuid=27602cd9-4b6e-9be0-e063-690a0a0afb50&searchText=parks
Hibernate:
select
pe1_0.project_guid,
pe1_0.latitude,
pe1_0.longitude
from
project pe1_0
where
pe1_0.latitude is not null
and pe1_0.longitude is not null
and pe1_0.program_area_guid in (?)
and pe1_0.forest_district_org_unit_id in (?)
and pe1_0.fire_centre_org_unit_id in (?)
and pe1_0.project_type_code in (?)
and exists(select
pfe1_0.project_guid
from
wfprev.project_plan_fiscal pfe1_0
where
pfe1_0.project_guid=pe1_0.project_guid
and (cast(pfe1_0.fiscal_year as text) like ? escape '')
and pfe1_0.activity_category_code in (?)
and pfe1_0.plan_fiscal_status_code in (?))
and (
lower(pe1_0.project_name) like ? escape ''
or lower(pe1_0.project_lead) like ? escape ''
or lower(pe1_0.project_description) like ? escape ''
or lower(pe1_0.closest_community_name) like ? escape ''
or lower(pe1_0.site_unit_name) like ? escape ''
or lower(cast(pe1_0.project_number as text)) like ? escape ''
or lower(pe1_0.results_project_code) like ? escape ''
or exists(select
pfe2_0.project_guid
from
wfprev.project_plan_fiscal pfe2_0
where
pfe2_0.project_guid=pe1_0.project_guid
and (lower(pfe2_0.project_fiscal_name) like ? escape ''
or lower(pfe2_0.first_nations_partner) like ? escape ''
or lower(pfe2_0.other_partner) like ? escape ''))
)