Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add env variable for enabling / disabling of analytics on development environments #3648

Closed

Conversation

StackedPancakez
Copy link
Contributor

Trello card

None, this is an adhoc fix for an issue that has come up.

Context

Review apps and the development environment share a database, which means when a PR makes a change to the database but isn't merged yet, it blocks other PRs and all deployments because the dev build step fails as DfE Analytics complains that the database doesn't align to the config available in a given branch. This PR adds an env variable to allow the analytics to be temporarily disabled in the dev environment when needed, specifically when a PR with database changes is present, so as to not block other PRs and deployments.

Changes proposed in this pull request

Instead of defaulting to true for enabling analytics, introduce a control on the dev environment to allow it to be enabled and disabled as needed.

Guidance to review

Ensure review apps work as expected, and that CI build steps work and build despite the differences between the database and analytics config.

@github-actions github-actions bot added ruby Pull requests that update Ruby code Config labels Oct 24, 2023
@StackedPancakez StackedPancakez added Review Review_v2 Create AKS review app labels Oct 24, 2023
@StackedPancakez StackedPancakez temporarily deployed to review_aks October 24, 2023 13:06 — with GitHub Actions Inactive
@StackedPancakez StackedPancakez temporarily deployed to review_aks October 24, 2023 13:21 — with GitHub Actions Inactive
@github-actions
Copy link

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

97.2% 97.2% Coverage
0.2% 0.2% Duplication

@StackedPancakez
Copy link
Contributor Author

This is no longer needed, discovered an existing env variable that allowed us to make a similar fix for the dev / review environments.

@StackedPancakez StackedPancakez temporarily deployed to Review October 24, 2023 16:53 — with GitHub Actions Inactive
@StackedPancakez StackedPancakez temporarily deployed to review_aks October 24, 2023 16:53 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Config Review_v2 Create AKS review app Review ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants