Commit Graph

46 Commits

Author SHA1 Message Date
Fredrik Adelöw e7fdf2997f Address Copilot review: fix pagination test and add credentials assertion
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
Made-with: Cursor
2026-04-03 23:23:42 +02:00
Fredrik Adelöw 999f308ad5 Call getOwnServiceCredentials per request, not once per loop
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
Made-with: Cursor
2026-04-03 23:06:47 +02:00
Fredrik Adelöw 52a45c308b Address review feedback
- Move getOwnServiceCredentials() before the pagination loop in DefaultTechDocsCollatorFactory
- Fix stale test comment that referenced the deleted MSW /entities handler

Signed-off-by: Fredrik Adelöw <freben@spotify.com>
Made-with: Cursor
2026-04-03 23:05:02 +02:00
Fredrik Adelöw 3588c3f57f Make TechDocsCollatorFactoryOptions.catalog required
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
Made-with: Cursor
2026-04-03 22:55:36 +02:00
Fredrik Adelöw 31b6cc68b6 Rename TechDocsCollatorFactoryOptions.catalogClient to .catalog
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
Made-with: Cursor
2026-04-03 22:54:57 +02:00
Fredrik Adelöw 5e32f77884 Migrate techdocs plugins from alpha catalogServiceRef to stable
Migrated `@backstage/plugin-techdocs-backend` and
`@backstage/plugin-search-backend-module-techdocs` to use the stable
`catalogServiceRef` from `@backstage/plugin-catalog-node` instead of
the deprecated one from `@backstage/plugin-catalog-node/alpha`.

This also updates `CachedEntityLoader`, `DefaultTechDocsCollatorFactory`,
and the TechDocs router to use `CatalogService` (credentials-based) instead
of `CatalogApi` (token-based).

Signed-off-by: Fredrik Adelöw <freben@spotify.com>
Made-with: Cursor
2026-04-03 22:53:27 +02:00
Fredrik Adelöw 7455dae884 require the use of node prefix on native imports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-26 13:22:53 +01:00
John Philip ab009bb799 export default document collator
Signed-off-by: John Philip <jphilip@spotify.com>
2025-05-30 14:17:07 -04:00
Andre Wanlin d5c4a9db09 search - Removed legacy backend support
Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Fixed typo

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Updated API report

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Moved types

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Updated changesets

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Fixed type error

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Updated changeset based on feedback

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2025-03-14 14:30:28 -05:00
Bond Yan 03d34525be removed node-fetch workaround
Signed-off-by: Bond Yan <bondy@spotify.com>
2025-03-07 15:10:42 -05:00
Bond Yan e8df7baa63 more filter options
Signed-off-by: Bond Yan <bondy@spotify.com>
2025-03-07 15:10:41 -05:00
Bond Yan d32bdc47fa catalog filter extension point
Signed-off-by: Bond Yan <bondy@spotify.com>
2025-03-07 15:10:41 -05:00
Fredrik Adelöw ee8b63def9 use mockServices more
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-12-18 14:14:42 +01:00
Fredrik Adelöw 5c9cc05eee remove most usages of node-fetch
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-11-30 23:54:19 +01:00
blam fc01ce7e77 chore: fix api-reports warnings
Signed-off-by: blam <ben@blam.sh>
2024-10-14 17:56:00 +02:00
Patrik Oldsberg b071eec7d7 plugins/search-backend-module-*: flip around alpha exports to stable
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-10-13 12:58:37 +02:00
Patrik Oldsberg 3109c24cb3 promote all backend feature exports to main entry point
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-10-11 16:47:41 +02:00
Alex Eftimie 1c9b5545d2 Modify also alpha
Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
2024-10-09 07:59:34 +02:00
Alex Eftimie 3b527b7ae6 Apply suggestions from code review
Co-authored-by: Alex Lorenzi <671432+alexlorenzi@users.noreply.github.com>
Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
2024-10-09 05:33:38 +02:00
Alex Eftimie 98be1a602a refactor to use partials
Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
2024-09-04 17:45:01 +02:00
Alex Eftimie 311efd906c Techdocs: allow custom collation of mkdocs search document
Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
2024-09-04 16:58:34 +02:00
Patrik Oldsberg 1780a67bc5 backend-plugin-api: remove identity and token manager services
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-08-21 21:36:43 +02:00
Camila Belo 25b8873121 refactor: deprecate create router
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-08-20 12:29:37 +02:00
Camila Belo fc24d9ebf0 refactor: stop using backend-tasks in packages and plugins
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-08-19 15:48:21 +02:00
Camila Belo b82aff92aa refactor(test-utils): deprecate the isDockerDisabledForTests function
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 17:06:00 +02:00
Camila Belo 95a3a0b91c refactor(test-utils): rename setupRequestMockHandlers to setupMswHandler
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 15:45:49 +02:00
Fredrik Adelöw 78a0b086d2 Make createBackendPlugin and createBackendModule return BackendFeature instead of () => BackendFeature
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-06-13 15:56:24 +02:00
Camila Belo eb34b87d5a refactor: stop using getVoidLogger in tests
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-05-16 09:21:54 +02:00
Phil Kuang 5dc5f4f8ba refactor(collators): allow tokenManager param to be optional
Signed-off-by: Phil Kuang <pkuang@factset.com>
2024-04-22 09:46:47 -04:00
Heikki Hellgren d5a1fe189b chore: change most of plugins to use LoggerService
quite a big PR for this but the changes are pretty stright forward.
hopefully gets merged before most of these plugins move to the community
repository.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-13 02:10:13 +03:00
Patrik Oldsberg bb368a598b search-backend-module-{catalog,explore,techdocs}: migrate to support new auth services
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Carl-Erik Bergström <cbergstrom@spotify.com>
Co-authored-by: blam <ben@blam.sh>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-02-26 01:33:38 +01:00
Patrik Oldsberg cc4228ec11 switch all backend module IDs to use kebab-case
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-11-28 11:53:57 +01:00
Hannes Jetter 9fdd2431d8 added support for new backend
Signed-off-by: Hannes Jetter <hannes.jetter@aeb.com>
2023-10-19 13:29:40 +02:00
Hannes Jetter c437253b7a Refactored TechDocsCollator; added
entityTransformer functionality

Signed-off-by: Hannes Jetter <hannes.jetter@aeb.com>
2023-10-06 02:24:39 +02:00
Patrik Oldsberg 71114ac50e plugins: refactory to use default export for new backend system
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Co-authored-by: Philipp Hugenroth <philipph@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-09-07 18:53:48 +02:00
Vincenzo Scamporlino f66d490332 backend-test-utils: remove services from startTestBackend
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-08-15 17:47:12 +02:00
Philipp Hugenroth e4527b7c1d Adjust text to changed config scheme
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
2023-08-14 16:50:46 +02:00
Philipp Hugenroth 0d6ddc62d8 Adjust to review
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
2023-08-14 14:37:06 +02:00
Philipp Hugenroth be9238c8fb Use config over options & fix tests
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
2023-08-14 14:22:18 +02:00
Philipp Hugenroth 5ae202c23c Remove options for Explore & TechDocs module
- Quick fix for permission-backend

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
2023-08-14 14:22:18 +02:00
Fredrik Adelöw 29f77f923c Ensure that all services are dependency injected into the module instead of taken from options
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-08-02 11:08:22 +02:00
Vincenzo Scamporlino 2cccf58ef1 chore: config to rootConfig
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-07-31 17:11:00 +02:00
Emma Indal fea29cf62a import from main entry point to avoid duplicate exports
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Co-authored-by: Camila Loiola <camilaibs@gmail.com>
2023-03-21 09:30:09 +01:00
Emma Indal 6da5eb1e50 use default schedule for collator modules and make schedule option opotional
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2023-03-21 09:30:09 +01:00
Camila Belo d4c66877b0 feat(search): add tests for modules
Co-authored-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2023-03-21 09:30:09 +01:00
Camila Belo 1adc2c787e feat(search): create search collator modules
Co-authored-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2023-03-21 09:30:04 +01:00