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

Signalements – Revoir le mode d'archivage des alertes "FAR 48h" #3806

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

louptheron
Copy link
Collaborator

@louptheron louptheron commented Oct 30, 2024

Linked issues

A exécuter en INTE/PROD :

DELETE FROM reportings
WHERE value->>'type' == 'MISSING_FAR_48_HOURS_ALERT';

  • Tests E2E (Cypress)

@louptheron louptheron changed the title Signalements – Revoir le mode d'archivage des alertes "FAR 48h" Signalements – Revoir le mode d'archivage des alertes "FAR 48h" Oct 30, 2024
@louptheron louptheron force-pushed the loup/refactor_48_alert_far_archive branch from 807fdf9 to f78b859 Compare October 30, 2024 15:04
Comment on lines 39 to 40
const isAlertUnarchivable =
reporting.type === ReportingType.ALERT && reporting.value.type === PendingAlertValueType.MISSING_FAR_48_HOURS_ALERT
Copy link
Member

@ivangabriele ivangabriele Oct 30, 2024

Choose a reason for hiding this comment

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

Suggested change
const isAlertUnarchivable =
reporting.type === ReportingType.ALERT && reporting.value.type === PendingAlertValueType.MISSING_FAR_48_HOURS_ALERT
const canBeArchived =
!(reporting.type === ReportingType.ALERT && reporting.value.type === PendingAlertValueType.MISSING_FAR_48_HOURS_ALERT)

? (taste)

* we could have more middleware functions being called within the
* use-case middleware, and we should be able to capture all of these events.
*/
export const dispatchProcessor = (action, initialState) => {
Copy link
Member

Choose a reason for hiding this comment

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

Pouquoi ne pas suivre le nommage + doc officielle ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tu pourrais me détailler ta proposition ? Tu veux dire faire un createSlice test ?

Note: Ici je ne veux pas descendre au niveau du fetch, pour ne pas avoir à gérer RTK.

Copy link

sonarcloud bot commented Oct 31, 2024

@louptheron
Copy link
Collaborator Author

En attente du passage des fichiers backoffice de JSX en TSX

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.

Signalements – Revoir le mode d'archivage des alertes "FAR 48h"
2 participants