Skip to content

Commit

Permalink
remove notifications-common
Browse files Browse the repository at this point in the history
FLPATH-755
https://issues.redhat.com/browse/FLPATH-755

Signed-off-by: Yaron Dayagi <[email protected]>
  • Loading branch information
ydayagi committed Nov 28, 2023
1 parent 96216d4 commit 2e0332c
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 67 deletions.
4 changes: 4 additions & 0 deletions plugins/notifications-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,7 @@ A user the notifications are filtered for, all targetUsers or targetGroups must
Refer [Backstage documentation](https://backstage.io/docs/auth/) for details.

For the purpose of development, there is `users.yaml` listing example data.

## Building a client for the API

We supply an Open API spec YAML file: openapi.yaml.
1 change: 0 additions & 1 deletion plugins/notifications-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"@backstage/backend-common": "0.19.8",
"@backstage/catalog-client": "^1.4.5",
"@backstage/config": "^1.1.1",
"@backstage/plugin-notifications-common": "0.1.0",
"@types/express": "*",
"express": "^4.18.2",
"express-promise-router": "^4.1.1",
Expand Down
10 changes: 5 additions & 5 deletions plugins/notifications-backend/src/service/handlers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/* eslint-disable func-names */
import { CatalogClient } from '@backstage/catalog-client';

import { Knex } from 'knex';

import { ActionsInsert, MessagesInsert } from './db';
import {
CreateNotificationRequest,
DefaultMessageScope,
Expand All @@ -13,11 +17,7 @@ import {
NotificationsOrderByDirections,
NotificationsOrderByFields,
NotificationsSortingRequest,
} from '@backstage/plugin-notifications-common';

import { Knex } from 'knex';

import { ActionsInsert, MessagesInsert } from './db';
} from './types';

// createNotification
// returns string id of created notification
Expand Down
2 changes: 1 addition & 1 deletion plugins/notifications-backend/src/service/router.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { errorHandler } from '@backstage/backend-common';
import { CatalogClient } from '@backstage/catalog-client';
import { Config } from '@backstage/config';
import { NotificationsSortingRequest } from '@backstage/plugin-notifications-common';

import express from 'express';
import Router from 'express-promise-router';
Expand All @@ -14,6 +13,7 @@ import {
getNotificationsCount,
setRead,
} from './handlers';
import { NotificationsSortingRequest } from './types';

interface RouterOptions {
logger: Logger;
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion plugins/notifications-common/.eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion plugins/notifications-common/README.md

This file was deleted.

39 changes: 0 additions & 39 deletions plugins/notifications-common/package.json

This file was deleted.

1 change: 0 additions & 1 deletion plugins/notifications-common/src/index.ts

This file was deleted.

9 changes: 0 additions & 9 deletions plugins/notifications-common/tsconfig.json

This file was deleted.

9 changes: 0 additions & 9 deletions plugins/notifications-common/turbo.json

This file was deleted.

0 comments on commit 2e0332c

Please sign in to comment.