This repository was archived by the owner on Dec 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +351
-337
lines changed
announcements-backend/src/search
search-backend-module-announcements Expand file tree Collapse file tree 6 files changed +351
-337
lines changed Original file line number Diff line number Diff line change 55Add the new module to your backend app:
66
77``` bash
8- yarn add --cwd packages/backend @procore-oss/plugin-search-backend-module-announcements
8+ yarn add --cwd packages/backend @procore-oss/backstage- plugin-search-backend-module-announcements
99```
1010
1111Update ` packages/backend/src/index.ts ` to import announcements search module and register it with the backend:
@@ -17,7 +17,9 @@ const backend = createBackend();
1717// ...
1818
1919backend .add (import (' @procore-oss/backstage-plugin-announcements-backend' ));
20- backend .add (import (' @procore-oss/plugin-search-backend-module-announcements' ));
20+ backend .add (
21+ import (' @procore-oss/backstage-plugin-search-backend-module-announcements' ),
22+ );
2123// ...
2224```
2325
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ type AnnouncementCollatorOptions = {
1616} ;
1717
1818/**
19- * @remark This can replaced by the module `@procore-oss/plugin-search-backend-module-announcements` if using
19+ * @remark This can replaced by the module `@procore-oss/backstage- plugin-search-backend-module-announcements` if using
2020 * the new backend system. Note the module does not export the `AnnouncementCollatorFactory` class directly.
2121 */
2222export class AnnouncementCollatorFactory implements DocumentCollatorFactory {
Original file line number Diff line number Diff line change 1- # @procore-oss/plugin-search-backend-module -announcements
2-
3- ## 0.1.1
4-
5- ### Patch Changes
6-
7- - Updated dependencies [ b6c3890]
8- - Updated dependencies [ 2896e85]
9- - Updated dependencies [ 2c733e7]
10- - @procore-oss/backstage-plugin-announcements-backend @0.5.3
1+ # @procore-oss/backstage-plugin-search-backend-module -announcements
Original file line number Diff line number Diff line change 1- # @procore-oss/plugin-search-backend-module -announcements
1+ # @procore-oss/backstage- plugin-search-backend-module -announcements
22
33The announcements backend module for the search plugin.
Original file line number Diff line number Diff line change 11{
2- "name" : " @procore-oss/plugin-search-backend-module-announcements" ,
2+ "name" : " @procore-oss/backstage- plugin-search-backend-module-announcements" ,
33 "description" : " The announcements backend module for the search plugin." ,
4- "version" : " 0.1.1 " ,
4+ "version" : " 0.1.0 " ,
55 "main" : " src/index.ts" ,
66 "types" : " src/index.ts" ,
77 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments