bcgov / MFIN-Data-Catalogue

The Finance Data Catalogue enables users to discover data holdings at the BC Ministry of Finance and offers information and functionality that benefits consumers of data for business purposes. The product is built using Drupal and adheres to the Government of BC's Core Metadata Standard.
Other
6 stars 0 forks source link

Only admins, managers and editors should see environmental indicators #480

Closed CraigClark closed 1 month ago

CraigClark commented 1 month ago

OP timer

https://openplus.monday.com/boards/4092908516/pulses/6655028888


Currently any authenticated user sees the environment indicator at the top of the page. This could be confusing for IDIR users who don't do anything other than use the catalogue. Typically, these users won't know that test and dev exist.

Only DC admin, DC manager, DC API user and DC info specialists should see indicators.

This can be done on the permissions page.

Nice to have

config split so that any authenticated users see test and dev indicators, on the odd chance they end up there.

On prod Only DC admin, DC manager, DC API user and DC info specialists should see indicators.

I'm not sure if we are using config split. If not, I'm not sure it's worth it for this issue alone

Todo

lkmorlan commented 1 month ago

The environment indicator has been restricted to the roles shown above.

The nice to have features are more difficult because it is difficult to split permissions. Module config_role_split claims to do this; we have no experience with it. Another option would be to set the environment_indicator.indicator:name to the empty string on prod. This would allow the toolbar colors to display to those who have a toolbar, but would otherwise hide the environment indicator.

lkmorlan commented 1 month ago

@sylus Please set environment_indicator.indicator:name to empty string on prod. This is done in the settings file.