Skip to content

Commit

Permalink
Merge branch 'table-filters' into monitor-alert
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Oct 2, 2024
2 parents 49a2ee1 + c789438 commit 249a9d9
Show file tree
Hide file tree
Showing 18 changed files with 1,136 additions and 35 deletions.
12 changes: 12 additions & 0 deletions App/FeatureSet/BaseAPI/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ import IncidentInternalNoteService, {
import IncidentNoteTemplateService, {
Service as IncidentNoteTemplateServiceType,
} from "Common/Server/Services/IncidentNoteTemplateService";
import TableViewService, {
Service as TableViewServiceType,
} from "Common/Server/Services/TableViewService";
import IncidentOwnerTeamService, {
Service as IncidentOwnerTeamServiceType,
} from "Common/Server/Services/IncidentOwnerTeamService";
Expand Down Expand Up @@ -484,6 +487,7 @@ import ScheduledMaintenanceTemplateOwnerTeamService, {
import ScheduledMaintenanceTemplateOwnerUserService, {
Service as ScheduledMaintenanceTemplateOwnerUserServiceType,
} from "Common/Server/Services/ScheduledMaintenanceTemplateOwnerUserService";
import TableView from "Common/Models/DatabaseModels/TableView";

const BaseAPIFeatureSet: FeatureSet = {
init: async (): Promise<void> => {
Expand Down Expand Up @@ -886,6 +890,14 @@ const BaseAPIFeatureSet: FeatureSet = {
).getRouter(),
);

app.use(
`/${APP_NAME.toLocaleLowerCase()}`,
new BaseAPI<TableView, TableViewServiceType>(
TableView,
TableViewService,
).getRouter(),
);

app.use(
`/${APP_NAME.toLocaleLowerCase()}`,
new BaseAPI<IncidentState, IncidentStateServiceType>(
Expand Down
3 changes: 3 additions & 0 deletions Common/Models/DatabaseModels/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ import AlertOwnerTeam from "./AlertOwnerTeam";
import AlertOwnerUser from "./AlertOwnerUser";
import AlertSeverity from "./AlertSeverity";
import AlertNoteTemplate from "./AlertNoteTemplate";
import TableView from "./TableView";

const AllModelTypes: Array<{
new (): BaseModel;
Expand Down Expand Up @@ -324,6 +325,8 @@ const AllModelTypes: Array<{
TelemetryIngestionKey,

TelemetryException,

TableView,
];

const modelTypeMap: { [key: string]: { new (): BaseModel } } = {};
Expand Down
Loading

0 comments on commit 249a9d9

Please sign in to comment.