un-fao / calipseo-shiny

Calipseo is FAO web- based platform for national Fisheries Authorities to streamline management of fisheries data and the production, analysis and reporting of fishery statistics.
1 stars 0 forks source link

[CALR-62] Create 'HAS_REGMANGT' R variable based on country-specific parameter #62

Closed eblondel closed 6 months ago

eblondel commented 6 months ago

Issue migrated from JIRA: https://sdlc.review.fao.org/jira/browse/CALR-62 Creator/Reporter: Emmanuel Blondel @eblondel Assignee: Brian Ojok @brianandy Priority: Medium Status: Done Date of creation: 2022-03-17T14:43:54.000+0000

Relates to CALR-61

In the add_country_params table fetched from Calipseo, we have a row with CODE = 'REGMANGT'. In this line, looking at the column 'BOOLEAN' (1/0) we can now if the Calipseo instance in question is supporting registry management.

Please create a simple global variable 'HAS_REGMANGT' that will be TRUE if 'BOOLEAN' column is = 1, FALSE otherwise. We will then use this variable to condition the UI in the R shiny whenever we have vessel registry or not.