Skip to content

Commit

Permalink
chore: add force catalogue feature for bento public
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 24, 2025
1 parent 012c96b commit 8312deb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/migrating_to_18.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ Version 18 includes two new Bento Public environment variables for customizing a

* `BENTO_PUBLIC_SHOW_PORTAL_LINK`: Whether to show a link to the private data portal in the header
* `BENTO_PUBLIC_SHOW_SIGN_IN`: Whether to show a "Sign In" button in the header
* `BENTO_PUBLIC_FORCE_CATALOGUE`: Whether to force the data catalogue to display, even with only a single project.

Both of these are set to `true` by default. If desired, they can be toggled to `false` by setting them in `local.env`,
for example:
The first two are set to `true` by default, and the last is set to `false`. If desired, they can be toggled to
non-default settings by modifying `local.env`, for example:

```bash
# ...
BENTO_PUBLIC_SHOW_PORTAL_LINK='false'
BENTO_PUBLIC_SHOW_SIGN_IN='false'
BENTO_PUBLIC_FORCE_CATALOGUE='true'
# ...
```

Expand Down
2 changes: 2 additions & 0 deletions etc/bento_deploy.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ BENTO_PUBLIC_TRANSLATED='true'
# - Switches to enable various links in the Bento Public header (these default to being on)
BENTO_PUBLIC_SHOW_PORTAL_LINK='true'
BENTO_PUBLIC_SHOW_SIGN_IN='true'
# - Switch to force-show the data catalogue in Bento Public even with a single project
BENTO_PUBLIC_FORCE_CATALOGUE='false'

# Feature switches end ------------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions etc/bento_dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ BENTO_PUBLIC_TRANSLATED='true'
# - Switches to enable various links in the Bento Public header (these default to being on)
BENTO_PUBLIC_SHOW_PORTAL_LINK='true'
BENTO_PUBLIC_SHOW_SIGN_IN='true'
# - Switch to force-show the data catalogue in Bento Public even with a single project
BENTO_PUBLIC_FORCE_CATALOGUE='false'

# Feature switches end ------------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions etc/default_config.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ BENTO_PUBLIC_TRANSLATED='true'
# - Switches to enable various links in the Bento Public header (these default to being on)
BENTO_PUBLIC_SHOW_PORTAL_LINK='true'
BENTO_PUBLIC_SHOW_SIGN_IN='true'
# - Switch to force-show the data catalogue in Bento Public even with a single project
BENTO_PUBLIC_FORCE_CATALOGUE='false'

# Feature switches end ------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions lib/public/docker-compose.public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
- BENTO_PUBLIC_TRANSLATED
- BENTO_PUBLIC_SHOW_PORTAL_LINK
- BENTO_PUBLIC_SHOW_SIGN_IN
- BENTO_PUBLIC_FORCE_CATALOGUE
- BENTO_BEACON_UI_ENABLED
- BENTO_BEACON_NETWORK_ENABLED
- BEACON_URL=${BENTOV2_PUBLIC_URL}/api/beacon
Expand Down

0 comments on commit 8312deb

Please sign in to comment.