@abayramli/backstage-plugin-scaffolder-backend-module-template-pulse 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"module.cjs.js","sources":["../src/module.ts"],"sourcesContent":["import {\n coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { TeamMembersClient } from '@abayramli/backstage-plugin-template-pulse-node';\nimport { DatabaseHistoryStore } from './historyStore';\nimport { createRouter } from './router';\n\n/** Retained execution analytics hosted inside the Scaffolder plugin. @public */\nexport const scaffolderModuleTemplatePulse = createBackendModule({\n pluginId: 'scaffolder',\n moduleId: 'template-pulse',\n register(env) {\n env.registerInit({\n deps: {\n database: coreServices.database,\n httpRouter: coreServices.httpRouter,\n httpAuth: coreServices.httpAuth,\n permissions: coreServices.permissions,\n config: coreServices.rootConfig,\n lifecycle: coreServices.lifecycle,\n auth: coreServices.auth,\n discovery: coreServices.discovery,\n },\n async init({\n database,\n httpRouter,\n config,\n lifecycle,\n auth,\n discovery,\n ...services\n }) {\n if (config.getOptionalBoolean('permission.enabled') !== true)\n throw new Error(\n 'Template Pulse history requires permission.enabled: true and an administrator permission policy.',\n );\n // Modules receive their target plugin's database. The database service\n // owns the pool and lifecycle; do not create or destroy a second pool.\n const historyStore = new DatabaseHistoryStore(\n () => database.getClient(),\n config.getOptionalNumber('templatePulse.maxHistoryRows') ?? 10_000,\n );\n if (\n config.getOptionalString('templatePulse.historySource') === 'database'\n ) {\n // Module init runs before the plugin. Validate only after Scaffolder\n // has initialized and migrated its database, never before its tables exist.\n lifecycle.addStartupHook(() => historyStore.initialize());\n }\n const teams = new TeamMembersClient({ auth, discovery });\n httpRouter.use(createRouter({ ...services, historyStore, teams }));\n },\n });\n },\n});\n"],"names":["createBackendModule","coreServices","historyStore","DatabaseHistoryStore","TeamMembersClient","createRouter"],"mappings":";;;;;;;AASO,MAAM,gCAAgCA,oCAAA,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O,CAAC,CAAA;AAAA,MACnE;AAAA,KACD,CAAA;AAAA,EACH;AACF,CAAC;;"}
1
+ {"version":3,"file":"module.cjs.js","sources":["../src/module.ts"],"sourcesContent":["import {\n coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { TeamMembersClient } from '@abayramli/backstage-plugin-template-pulse-node';\nimport { DatabaseHistoryStore } from './historyStore';\nimport { createRouter } from './router';\n\n/** Retained execution analytics hosted inside the Scaffolder plugin. @public */\nexport const scaffolderModuleTemplatePulse = createBackendModule({\n pluginId: 'scaffolder',\n moduleId: 'template-pulse',\n register(env) {\n env.registerInit({\n deps: {\n database: coreServices.database,\n httpRouter: coreServices.httpRouter,\n httpAuth: coreServices.httpAuth,\n permissions: coreServices.permissions,\n config: coreServices.rootConfig,\n lifecycle: coreServices.lifecycle,\n auth: coreServices.auth,\n discovery: coreServices.discovery,\n cache: coreServices.cache,\n },\n async init({\n database,\n httpRouter,\n config,\n lifecycle,\n auth,\n discovery,\n cache,\n ...services\n }) {\n if (config.getOptionalBoolean('permission.enabled') !== true)\n throw new Error(\n 'Template Pulse history requires permission.enabled: true and an administrator permission policy.',\n );\n // Modules receive their target plugin's database. The database service\n // owns the pool and lifecycle; do not create or destroy a second pool.\n const historyStore = new DatabaseHistoryStore(\n () => database.getClient(),\n config.getOptionalNumber('templatePulse.maxHistoryRows') ?? 10_000,\n { cache },\n );\n if (\n config.getOptionalString('templatePulse.historySource') === 'database'\n ) {\n // Module init runs before the plugin. Validate only after Scaffolder\n // has initialized and migrated its database, never before its tables exist.\n lifecycle.addStartupHook(() => historyStore.initialize());\n }\n const teams = new TeamMembersClient({ auth, discovery });\n httpRouter.use(createRouter({ ...services, historyStore, teams }));\n },\n });\n },\n});\n"],"names":["createBackendModule","coreServices","historyStore","DatabaseHistoryStore","TeamMembersClient","createRouter"],"mappings":";;;;;;;AASO,MAAM,gCAAgCA,oCAAA,CAAoB;AAAA,EAC/D,QAAA,EAAU,YAAA;AAAA,EACV,QA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,wBAAUH,cAAA,EAAc,KAAA,EAAO,CAAC,CAAA;AAAA,MACnE;AAAA,KACD,CAAA;AAAA,EACH;AACF,CAAC;;"}
@@ -13,8 +13,9 @@ var Router__default = /*#__PURE__*/_interopDefaultCompat(Router);
13
13
  function createRouter(options) {
14
14
  const { httpAuth, permissions, historyStore } = options;
15
15
  const router = Router__default.default();
16
- router.get("/modules/template-pulse/analytics", async (req, res) => {
17
- const query = backstagePluginTemplatePulseNode.parseExecutionQuery(req.query);
16
+ const handle = (facets) => async (req, res) => {
17
+ const facetQuery = facets ? backstagePluginTemplatePulseNode.parseExecutionFacetQuery(req.query) : void 0;
18
+ const query = facetQuery?.query ?? backstagePluginTemplatePulseNode.parseExecutionQuery(req.query);
18
19
  const limit = req.query.limit ?? "200";
19
20
  if (typeof limit !== "string" || !/^\d+$/.test(limit) || Number(limit) < 1 || Number(limit) > 1e3)
20
21
  throw new errors.InputError("limit must be an integer between 1 and 1000");
@@ -26,16 +27,31 @@ function createRouter(options) {
26
27
  );
27
28
  if (!decision || decision.result === pluginPermissionCommon.AuthorizeResult.DENY)
28
29
  throw new errors.NotAllowedError("Scaffolder task access denied");
29
- const teamMembers = query.teamRef ? await options.teams.getMembers(query.teamRef, credentials) : void 0;
30
- const analytics = await historyStore.search(
31
- teamMembers ? { ...query, teamMembers } : query,
32
- credentials.principal.userEntityRef,
33
- decision,
34
- Number(limit)
35
- );
36
- res.setHeader("Cache-Control", "no-store");
37
- res.json(analytics);
38
- });
30
+ const controller = new AbortController();
31
+ const timer = setTimeout(() => controller.abort(new errors.ServiceUnavailableError(
32
+ "History analytics exceeded their time limit. Narrow the date range or filters and try again."
33
+ )), 15e3);
34
+ const onClose = () => {
35
+ if (!res.writableEnded) controller.abort();
36
+ };
37
+ req.once("aborted", onClose);
38
+ res.once("close", onClose);
39
+ try {
40
+ const teamMembers = query.teamRef ? await options.teams.getMembers(query.teamRef, credentials, controller.signal) : void 0;
41
+ const historyQuery = teamMembers ? { ...query, teamMembers } : query;
42
+ const caller = credentials.principal.userEntityRef;
43
+ const result = facetQuery ? await historyStore.searchFacets(historyQuery, caller, decision, facetQuery.facet, facetQuery.search, controller.signal) : await historyStore.search(historyQuery, caller, decision, Number(limit), controller.signal);
44
+ controller.signal.throwIfAborted();
45
+ res.setHeader("Cache-Control", "no-store");
46
+ res.json(result);
47
+ } finally {
48
+ clearTimeout(timer);
49
+ req.removeListener("aborted", onClose);
50
+ res.removeListener("close", onClose);
51
+ }
52
+ };
53
+ router.get("/modules/template-pulse/analytics", handle(false));
54
+ router.get("/modules/template-pulse/facets", handle(true));
39
55
  return router;
40
56
  }
41
57
 
@@ -1 +1 @@
1
- {"version":3,"file":"router.cjs.js","sources":["../src/router.ts"],"sourcesContent":["import type {\r\n HttpAuthService,\r\n PermissionsService,\r\n} from '@backstage/backend-plugin-api';\r\nimport { InputError, NotAllowedError } from '@backstage/errors';\r\nimport { taskReadPermission } from '@backstage/plugin-scaffolder-common/alpha';\r\nimport { AuthorizeResult } from '@backstage/plugin-permission-common';\r\nimport {\r\n authorizeExecutionQuery,\r\n parseExecutionQuery,\r\n type TeamMembersClient,\r\n} from '@abayramli/backstage-plugin-template-pulse-node';\r\nimport Router from 'express-promise-router';\r\nimport type { DatabaseHistoryStore } from './historyStore';\r\n\r\nexport function createRouter(options: {\r\n httpAuth: HttpAuthService;\r\n permissions: PermissionsService;\r\n historyStore: DatabaseHistoryStore;\r\n teams: Pick<TeamMembersClient, 'getMembers'>;\r\n}) {\r\n const { httpAuth, permissions, historyStore } = options;\r\n const router = Router();\r\n router.get('/modules/template-pulse/analytics', async (req, res) => {\r\n const query = parseExecutionQuery(req.query);\r\n const limit = req.query.limit ?? '200';\r\n if (\r\n typeof limit !== 'string' ||\r\n !/^\\d+$/.test(limit) ||\r\n Number(limit) < 1 ||\r\n Number(limit) > 1000\r\n )\r\n throw new InputError('limit must be an integer between 1 and 1000');\r\n const credentials = await httpAuth.credentials(req, { allow: ['user'] });\r\n // This endpoint also enforces analytics permissions when called directly.\r\n await authorizeExecutionQuery({ query, credentials, permissions });\r\n const [decision] = await permissions.authorizeConditional(\r\n [{ permission: taskReadPermission }],\r\n { credentials },\r\n );\r\n if (!decision || decision.result === AuthorizeResult.DENY)\r\n throw new NotAllowedError('Scaffolder task access denied');\r\n const teamMembers = query.teamRef\r\n ? await options.teams.getMembers(query.teamRef, credentials)\r\n : undefined;\r\n const analytics = await historyStore.search(\r\n teamMembers ? { ...query, teamMembers } : query,\r\n credentials.principal.userEntityRef,\r\n decision,\r\n Number(limit),\r\n );\r\n res.setHeader('Cache-Control', 'no-store');\r\n res.json(analytics);\r\n });\r\n return router;\r\n}\r\n"],"names":["Router","parseExecutionQuery","InputError","authorizeExecutionQuery","taskReadPermission","AuthorizeResult","NotAllowedError"],"mappings":";;;;;;;;;;;;AAeO,SAAS,aAAa,OAAA,EAK1B;AACD,EAAA,MAAM,EAAE,QAAA,EAAU,WAAA,EAAa,YAAA,EAAa,GAAI,OAAA;AAChD,EAAA,MAAM,SAASA,uBAAA,EAAO;AACtB,EAAA,MAAA,CAAO,GAAA,CAAI,mCAAA,EAAqC,OAAO,GAAA,EAAK,GAAA,KAAQ;AAClE,IAAA,MAAM,KAAA,GAAQC,oDAAA,CAAoB,GAAA,CAAI,KAAK,CAAA;AAC3C,IAAA,MAAM,KAAA,GAAQ,GAAA,CAAI,KAAA,CAAM,KAAA,IAAS,KAAA;AACjC,IAAA,IACE,OAAO,KAAA,KAAU,QAAA,IACjB,CAAC,QAAQ,IAAA,CAAK,KAAK,CAAA,IACnB,MAAA,CAAO,KAAK,CAAA,GAAI,CAAA,IAChB,MAAA,CAAO,KAAK,CAAA,GAAI,GAAA;AAEhB,MAAA,MAAM,IAAIC,kBAAW,6CAA6C,CAAA;AACpE,IAAA,MAAM,WAAA,GAAc,MAAM,QAAA,CAAS,WAAA,CAAY,GAAA,EAAK,EAAE,KAAA,EAAO,CAAC,MAAM,CAAA,EAAG,CAAA;AAEvE,IAAA,MAAMC,wDAAA,CAAwB,EAAE,KAAA,EAAO,WAAA,EAAa,aAAa,CAAA;AACjE,IAAA,MAAM,CAAC,QAAQ,CAAA,GAAI,MAAM,WAAA,CAAY,oBAAA;AAAA,MACnC,CAAC,EAAE,UAAA,EAAYC,wBAAA,EAAoB,CAAA;AAAA,MACnC,EAAE,WAAA;AAAY,KAChB;AACA,IAAA,IAAI,CAAC,QAAA,IAAY,QAAA,CAAS,MAAA,KAAWC,sCAAA,CAAgB,IAAA;AACnD,MAAA,MAAM,IAAIC,uBAAgB,+BAA+B,CAAA;AAC3D,IAAA,MAAM,WAAA,GAAc,KAAA,CAAM,OAAA,GACtB,MAAM,OAAA,CAAQ,MAAM,UAAA,CAAW,KAAA,CAAM,OAAA,EAAS,WAAW,CAAA,GACzD,MAAA;AACJ,IAAA,MAAM,SAAA,GAAY,MAAM,YAAA,CAAa,MAAA;AAAA,MACnC,WAAA,GAAc,EAAE,GAAG,KAAA,EAAO,aAAY,GAAI,KAAA;AAAA,MAC1C,YAAY,SAAA,CAAU,aAAA;AAAA,MACtB,QAAA;AAAA,MACA,OAAO,KAAK;AAAA,KACd;AACA,IAAA,GAAA,CAAI,SAAA,CAAU,iBAAiB,UAAU,CAAA;AACzC,IAAA,GAAA,CAAI,KAAK,SAAS,CAAA;AAAA,EACpB,CAAC,CAAA;AACD,EAAA,OAAO,MAAA;AACT;;"}
1
+ {"version":3,"file":"router.cjs.js","sources":["../src/router.ts"],"sourcesContent":["import type {\n HttpAuthService,\n PermissionsService,\n} from '@backstage/backend-plugin-api';\nimport { InputError, NotAllowedError, ServiceUnavailableError } from '@backstage/errors';\nimport { taskReadPermission } from '@backstage/plugin-scaffolder-common/alpha';\nimport { AuthorizeResult } from '@backstage/plugin-permission-common';\nimport {\n authorizeExecutionQuery,\n parseExecutionFacetQuery,\n parseExecutionQuery,\n type TeamMembersClient,\n} from '@abayramli/backstage-plugin-template-pulse-node';\nimport Router from 'express-promise-router';\nimport type { Request, Response } from 'express';\nimport type { DatabaseHistoryStore } from './historyStore';\n\nexport function createRouter(options: {\n httpAuth: HttpAuthService;\n permissions: PermissionsService;\n historyStore: DatabaseHistoryStore;\n teams: Pick<TeamMembersClient, 'getMembers'>;\n}) {\n const { httpAuth, permissions, historyStore } = options;\n const router = Router();\n const handle = (facets: boolean) => async (req: Request, res: Response) => {\n const facetQuery = facets ? parseExecutionFacetQuery(req.query) : undefined;\n const query = facetQuery?.query ?? parseExecutionQuery(req.query);\n const limit = req.query.limit ?? '200';\n if (\n typeof limit !== 'string' ||\n !/^\\d+$/.test(limit) ||\n Number(limit) < 1 ||\n Number(limit) > 1000\n )\n throw new InputError('limit must be an integer between 1 and 1000');\n const credentials = await httpAuth.credentials(req, { allow: ['user'] });\n // This endpoint also enforces analytics permissions when called directly.\n await authorizeExecutionQuery({ query, credentials, permissions });\n const [decision] = await permissions.authorizeConditional(\n [{ permission: taskReadPermission }],\n { credentials },\n );\n if (!decision || decision.result === AuthorizeResult.DENY)\n throw new NotAllowedError('Scaffolder task access denied');\n const controller = new AbortController();\n const timer = setTimeout(() => controller.abort(new ServiceUnavailableError(\n 'History analytics exceeded their time limit. Narrow the date range or filters and try again.',\n )), 15_000);\n const onClose = () => {\n if (!res.writableEnded) controller.abort();\n };\n req.once('aborted', onClose);\n res.once('close', onClose);\n try {\n const teamMembers = query.teamRef\n ? await options.teams.getMembers(query.teamRef, credentials, controller.signal)\n : undefined;\n const historyQuery = teamMembers ? { ...query, teamMembers } : query;\n const caller = credentials.principal.userEntityRef;\n const result = facetQuery\n ? await historyStore.searchFacets(historyQuery, caller, decision, facetQuery.facet, facetQuery.search, controller.signal)\n : await historyStore.search(historyQuery, caller, decision, Number(limit), controller.signal);\n controller.signal.throwIfAborted();\n res.setHeader('Cache-Control', 'no-store');\n res.json(result);\n } finally {\n clearTimeout(timer);\n req.removeListener('aborted', onClose);\n res.removeListener('close', onClose);\n }\n };\n router.get('/modules/template-pulse/analytics', handle(false));\n router.get('/modules/template-pulse/facets', handle(true));\n return router;\n}\n"],"names":["Router","parseExecutionFacetQuery","parseExecutionQuery","InputError","authorizeExecutionQuery","taskReadPermission","AuthorizeResult","NotAllowedError","ServiceUnavailableError"],"mappings":";;;;;;;;;;;;AAiBO,SAAS,aAAa,OAAA,EAK1B;AACD,EAAA,MAAM,EAAE,QAAA,EAAU,WAAA,EAAa,YAAA,EAAa,GAAI,OAAA;AAChD,EAAA,MAAM,SAASA,uBAAA,EAAO;AACtB,EAAA,MAAM,MAAA,GAAS,CAAC,MAAA,KAAoB,OAAO,KAAc,GAAA,KAAkB;AACzE,IAAA,MAAM,UAAA,GAAa,MAAA,GAASC,yDAAA,CAAyB,GAAA,CAAI,KAAK,CAAA,GAAI,MAAA;AAClE,IAAA,MAAM,KAAA,GAAQ,UAAA,EAAY,KAAA,IAASC,oDAAA,CAAoB,IAAI,KAAK,CAAA;AAChE,IAAA,MAAM,KAAA,GAAQ,GAAA,CAAI,KAAA,CAAM,KAAA,IAAS,KAAA;AACjC,IAAA,IACE,OAAO,KAAA,KAAU,QAAA,IACjB,CAAC,QAAQ,IAAA,CAAK,KAAK,CAAA,IACnB,MAAA,CAAO,KAAK,CAAA,GAAI,CAAA,IAChB,MAAA,CAAO,KAAK,CAAA,GAAI,GAAA;AAEhB,MAAA,MAAM,IAAIC,kBAAW,6CAA6C,CAAA;AACpE,IAAA,MAAM,WAAA,GAAc,MAAM,QAAA,CAAS,WAAA,CAAY,GAAA,EAAK,EAAE,KAAA,EAAO,CAAC,MAAM,CAAA,EAAG,CAAA;AAEvE,IAAA,MAAMC,wDAAA,CAAwB,EAAE,KAAA,EAAO,WAAA,EAAa,aAAa,CAAA;AACjE,IAAA,MAAM,CAAC,QAAQ,CAAA,GAAI,MAAM,WAAA,CAAY,oBAAA;AAAA,MACnC,CAAC,EAAE,UAAA,EAAYC,wBAAA,EAAoB,CAAA;AAAA,MACnC,EAAE,WAAA;AAAY,KAChB;AACA,IAAA,IAAI,CAAC,QAAA,IAAY,QAAA,CAAS,MAAA,KAAWC,sCAAA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AAA,IACjB,CAAA,SAAE;AACA,MAAA,YAAA,CAAa,KAAK,CAAA;AAClB,MAAA,GAAA,CAAI,cAAA,CAAe,WAAW,OAAO,CAAA;AACrC,MAAA,GAAA,CAAI,cAAA,CAAe,SAAS,OAAO,CAAA;AAAA,IACrC;AAAA,EACF,CAAA;AACA,EAAA,MAAA,CAAO,GAAA,CAAI,mCAAA,EAAqC,MAAA,CAAO,KAAK,CAAC,CAAA;AAC7D,EAAA,MAAA,CAAO,GAAA,CAAI,gCAAA,EAAkC,MAAA,CAAO,IAAI,CAAC,CAAA;AACzD,EAAA,OAAO,MAAA;AACT;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abayramli/backstage-plugin-scaffolder-backend-module-template-pulse",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Read Scaffolder run history from its database, with access controlled by Backstage permissions.",
5
5
  "license": "Apache-2.0",
6
6
  "backstage": {
@@ -44,8 +44,8 @@
44
44
  "postpack": "backstage-cli package postpack"
45
45
  },
46
46
  "dependencies": {
47
- "@abayramli/backstage-plugin-template-pulse-common": "^0.1.0",
48
- "@abayramli/backstage-plugin-template-pulse-node": "^0.1.0",
47
+ "@abayramli/backstage-plugin-template-pulse-common": "^0.1.1",
48
+ "@abayramli/backstage-plugin-template-pulse-node": "^0.1.1",
49
49
  "@backstage/backend-plugin-api": "^1.10.1",
50
50
  "@backstage/errors": "^1.3.1",
51
51
  "@backstage/plugin-permission-common": "^0.9.11",