mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Clarify comments regarding incident visibility and episode display logic in StatusPageAPI
This commit is contained in:
@@ -3647,11 +3647,13 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
statusPage.showEpisodeHistoryInDays || 14,
|
||||
);
|
||||
|
||||
// Get incidents that have monitors on this status page
|
||||
// Note: We don't filter by incident.isVisibleOnStatusPage here because
|
||||
// episode visibility is independent of incident visibility.
|
||||
// An episode should show if episode.isVisibleOnStatusPage is true,
|
||||
// regardless of whether its member incidents are visible.
|
||||
/*
|
||||
* Get incidents that have monitors on this status page
|
||||
* Note: We don't filter by incident.isVisibleOnStatusPage here because
|
||||
* episode visibility is independent of incident visibility.
|
||||
* An episode should show if episode.isVisibleOnStatusPage is true,
|
||||
* regardless of whether its member incidents are visible.
|
||||
*/
|
||||
const incidentQuery: Query<Incident> = {
|
||||
monitors: monitorsOnStatusPage as any,
|
||||
projectId: statusPage.projectId!,
|
||||
|
||||
Reference in New Issue
Block a user