From 32a36aa20f8818d6deac18324ea1548e2bc2eaa1 Mon Sep 17 00:00:00 2001 From: Yue-Long Date: Wed, 20 Dec 2023 12:01:11 +0000 Subject: [PATCH] feat: add explanation to get_jurisdictions --- app/presenters/designations_presenter.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/presenters/designations_presenter.rb b/app/presenters/designations_presenter.rb index 523b60174..26dffc6cf 100644 --- a/app/presenters/designations_presenter.rb +++ b/app/presenters/designations_presenter.rb @@ -72,6 +72,13 @@ def jurisdiction_counts(jurisdiction, exclude_oecms: false) end def get_jurisdictions(jurisdiction) + # 'Not Applicable' jurisdictions are to be included with + # 'National' in the country and region show pages. + # https://unep-wcmc.codebasehq.com/projects/protected-planet-support-and-maintenance/tickets/241 + # jurisdictions = jurisdiction == 'National' ? ['National', 'Not Applicable'] : jurisdiction + + # As 20 DEC 2023 Not Applicable is now showing as a category + # https://unep-wcmc.codebasehq.com/projects/protected-planet-support-and-maintenance/tickets/337#update-73110217 Jurisdiction.where(name: jurisdiction) end end