Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

monitoring: disable critical alerts banner by default #12155

Merged
merged 2 commits into from
Jul 14, 2020

Conversation

bobheadxi
Copy link
Member

This banner is currently a significant source of confusion, and since we're still working on dogfooding alerts in sourcegraph.com (https://github.com/sourcegraph/sourcegraph/issues/5370) it's hard to say we're confident about all our alerts enough to have it displayed so prominently (yet)

This changes the default of alerts.hideObservabilitySiteAlerts to true

Most recent Slack discussion: https://sourcegraph.slack.com/archives/C07KZF47K/p1594730258245600

@codecov
Copy link

codecov bot commented Jul 14, 2020

Codecov Report

Merging #12155 into master will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #12155   +/-   ##
=======================================
  Coverage   50.66%   50.67%           
=======================================
  Files        1420     1420           
  Lines       80360    80360           
  Branches     6734     6680   -54     
=======================================
+ Hits        40718    40721    +3     
+ Misses      36061    36059    -2     
+ Partials     3581     3580    -1     
Flag Coverage Δ
#go 52.07% <ø> (+<0.01%) ⬆️
#integration 24.06% <ø> (+<0.01%) ⬆️
#storybook 11.64% <ø> (ø)
#typescript 46.95% <ø> (+<0.01%) ⬆️
#unit 47.38% <ø> (+<0.01%) ⬆️
Impacted Files Coverage Δ
web/src/tree/TreeRoot.tsx 81.03% <0.00%> (+1.72%) ⬆️
.../internal/codeintel/resolvers/graphql/locations.go 87.27% <0.00%> (+1.81%) ⬆️

@codecov
Copy link

codecov bot commented Jul 14, 2020

Codecov Report

Merging #12155 into master will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #12155   +/-   ##
=======================================
  Coverage   50.66%   50.67%           
=======================================
  Files        1420     1420           
  Lines       80360    80360           
  Branches     6734     6734           
=======================================
+ Hits        40718    40721    +3     
+ Misses      36061    36059    -2     
+ Partials     3581     3580    -1     
Flag Coverage Δ
#go 52.07% <ø> (+<0.01%) ⬆️
#integration 24.06% <ø> (+<0.01%) ⬆️
#storybook 11.64% <ø> (ø)
#typescript 46.95% <ø> (+<0.01%) ⬆️
#unit 47.38% <ø> (+<0.01%) ⬆️
Impacted Files Coverage Δ
web/src/tree/TreeRoot.tsx 81.03% <0.00%> (+1.72%) ⬆️
.../internal/codeintel/resolvers/graphql/locations.go 87.27% <0.00%> (+1.81%) ⬆️

Copy link
Contributor

@ryanslade ryanslade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@unknwon unknwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve to unblock.

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <[email protected]>
@bobheadxi bobheadxi merged commit 71fd269 into master Jul 14, 2020
@bobheadxi bobheadxi deleted the distribution/disable-critical-banner-for-now branch July 14, 2020 15:01
@@ -175,7 +175,7 @@
"alerts.hideObservabilitySiteAlerts": {
"description": "Disables observability-related site alert banners.",
"type": "boolean",
"default": false
"default": true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the confusion, but these default values are not respected they only act as documentation. This had no impact on the actual default behavior - you need to handle that at the location where you use this setting in code

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're still seeing this on sourcegraph.com because of this
image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you fix this, make sure you cherry-pick the commit into the 3.18 branch so it gets into the release as well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah that's unfortunate - thanks for catching that! https://github.com/sourcegraph/sourcegraph/pull/12189

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants