Skip to content

Reduce frequency of alerts#57

Merged
dbtavernerffdc merged 10 commits intoapex-dev-tools:mainfrom
moladimejicertinia:main
Dec 17, 2025
Merged

Reduce frequency of alerts#57
dbtavernerffdc merged 10 commits intoapex-dev-tools:mainfrom
moladimejicertinia:main

Conversation

@moladimejicertinia
Copy link
Contributor

@moladimejicertinia moladimejicertinia commented Dec 15, 2025

As a user, when I receive alerts, I want to reduce the frequency of alerts so that I am not overwhelmed by notifications.
As a user, when I see alert messages, I want them to be less "shouty" so that they are more pleasant to read.
The goal is to update the logic for alert notifications. This involves ensuring that if an alert has been sent within the last three days, no new alert will be created. Additionally, the language used in the alerts needs to be toned down.

componentLoadThresholdDegraded < criticalComponentLoadThreshold
) {
alert.componentLoadTimeDegraded = componentLoadThresholdDegraded;
alert.alertType = NORMAL;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be left alone.

/*****************************************************************************
* UI ALERT TYPES
******************************************************************************/
export const NORMAL = 'normal';
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs reverting


// Then
expect(results).to.have.lengthOf(1);
expect(results[0].alertType).to.equal(NORMAL);
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs reverting

@mmakwanaCertinia
Copy link
Contributor

As a user, when I receive alerts, I want to reduce the frequency of alerts so that I am not overwhelmed by notifications. As a user, when I see alert messages, I want them to be less "shouty" so that they are more pleasant to read. The goal is to update the logic for alert notifications. This involves ensuring that if an alert has been sent within the last three days, no new alert will be created. Additionally, the language used in the alerts needs to be toned down.

@moladimejicertinia When we spoke we said "I want them to be less "shouty" so that they are more pleasant to read" was part of the bitbucket changes, NOT part of these changes. In future can we please write down notes so there is no confusion.

package.json Outdated
{
"name": "@apexdevtools/benchmarker",
"version": "6.0.2",
"version": "6.1.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be 6.1.0

CHANGELOG.md Outdated
### Added

- New property on `TestStepDescription`, `additionalData`. Provide custom string information to link to results.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we revert this new line please

CHANGELOG.md Outdated
### Added

- New alerts config for global and per test usage. Used for reporting on degradations over time.

Copy link
Contributor

Choose a reason for hiding this comment

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

Same here


import { UiTestResultDTO } from '../../src/database/uiTestResult';
import { NORMAL, CRITICAL } from '../../src/shared/constants';
import { CRITICAL } from '../../src/shared/constants';
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs NORMAL adding back

@dbtavernerffdc dbtavernerffdc merged commit d3f7b4a into apex-dev-tools:main Dec 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants