Commit Graph

325 Commits

Author SHA1 Message Date
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
Fredrik Adelöw cd88dc39fc Merge pull request #27070 from backstage/freben/catalog-expect-too
rewrite some more tests to use actual fake catalog instead of mock
2024-10-21 15:44:32 +02:00
Patrik Oldsberg 96a3eba552 plugins/{kubernetes,techdocs}-backend: fix circular imports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-10-14 10:04:09 +02:00
Patrik Oldsberg 7cfc0c1902 plugins/*-backend: flip around alpha exports to stable
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-10-14 10:04:08 +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
Fredrik Adelöw e836b774d5 support expect on mock catalog service methods
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-10-10 14:26:39 +02:00
Adrian Kosiński fbdc63116c feat(techdocs): Allow to pass options to GCS publisher (#26836)
* feat(techdocs): Allow to pass options to GCS publisher

Signed-off-by: Adrian Kosinski <adrian.kosinski@allegro.com>

---------

Signed-off-by: Adrian Kosinski <adrian.kosinski@allegro.com>
2024-10-01 13:40:47 -04:00
Fredrik Adelöw 0e77776b51 implement in some tests
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-09-11 13:12:00 +02:00
Fredrik Adelöw 5edd344c98 inject catalog client where possible in the new backend system
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-09-02 17:13:58 +02:00
Fredrik Adelöw 53b24d9a59 update usage elsewhere
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-08-30 16:02:40 +02:00
Camila Belo 40b9ef23b9 refactor: apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-08-26 12:57:06 +02:00
Camila Belo 5b679ac14c refactor(techdocs-backend): deprecate create router and router options
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-08-26 12:57:05 +02:00
Oskar Jiang 7b975ba628 techdocs-backend: use separate plugin request token when syncing cache
Signed-off-by: Oskar Jiang <oskarjiang94@gmail.com>
2024-08-20 08:17:51 +02:00
MT Lewis 69bd940408 techdocs: switch to using constants from techdocs-common for annotations
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-24 20:34:59 +01: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
John Philip 25450bab24 Merge pull request #25361 from johnphilip283/add-publisher-extension-point
TechDocs: Add publisher extension point
2024-06-26 10:45:27 -04:00
John Philip c17cf4fd23 add publisher extension point
Signed-off-by: John Philip <jphilip@spotify.com>
2024-06-22 13:00:35 -04:00
Vincenzo Scamporlino 130d0842a1 techdocs-backend: instantiate containerRunner internally
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2024-06-13 14:37:01 +02:00
John Philip 77d6b8cfe3 Merge pull request #24587 from drodil/build_log_transport_extension
feat: allow defining custom build log transport for techdocs
2024-05-29 15:52:45 -04:00
Camila Belo 737f3ae5ef Merge branch 'master' into camilaibs/nbs10-deprecate-legacy-system-commons
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-05-21 15:12:02 +02:00
Camila Belo 8869b8ef30 refactor: stop using the legacy standalone server
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-05-17 11:37:04 +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
Vincenzo Scamporlino fcee1ce391 techdocs-backend: fix build strategy tests
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2024-05-07 15:04:54 +02:00
Vincenzo Scamporlino 8a18e9ef38 techdocs: make builder optional
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2024-05-07 14:29:57 +02:00
Heikki Hellgren e64bfb27cf feat: allow defining custom build log transport for techdocs
should enable way to overcome #24583 memory leak, maybe.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-05-02 12:08:19 +03:00
Camila Belo 7b77befdfb feat: create default get cookie endpoint
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-04-08 16:47:05 +02:00
Heikki Hellgren 8e28c88656 feat: allow overriding default techdocs preparers
a new extension point `TechdocsPreparerExtensionPoint` allows
registering custom preparers for the techdocs plugin.

closes #21952

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-02 13:14:03 +03:00
Camila Belo a846c6fd2a fix: local cookie generation on legacy app
Signed-off-by: Camila Belo <camilaibs@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2024-03-12 09:00:52 +01:00
Camila Belo a57f830fe9 refactor: use cross tab timeout
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-03-12 09:00:52 +01:00
Camila Belo ec9e1d2103 feat: migrate non cokie endpoints
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-03-12 09:00:51 +01:00
Camila Belo de083201d2 feat: implement refresh cookie on frontend
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-03-12 09:00:51 +01:00
Camila Belo 19d00fe372 feat: add allow static cookie auth
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-03-12 09:00:51 +01:00
secustor 22e11bb48c chore: fix variable name
Signed-off-by: secustor <sebastian@poxhofer.at>
2024-02-27 21:55:32 +01:00
secustor 718b734433 feat(plugins/techdocs): add TechdocsGeneratorExtensionPoint
Signed-off-by: secustor <sebastian@poxhofer.at>
2024-02-27 11:42:31 +01:00
John Philip 7a51a81f6a regenerate token on every fetch to the search index
Signed-off-by: John Philip <jphilip@spotify.com>
2023-12-12 16:22:17 -05:00
Fredrik Adelöw 6226ea5ad5 Merge pull request #20700 from zcmander/zcmander/fix-techdocs-memory-leak
techdocs: fix buildLogTransport-related memory leak
2023-10-27 13:53:10 +02:00
Fredrik Adelöw a72143c79b Merge pull request #20576 from kuangp/feat/buildStrategyExtension
feat(techdocs): add extension for setting build strategy
2023-10-25 16:45:06 +02:00
Phil Kuang b99e29ab8f refactor(techdocs): deprecate ShouldBuildParameters type
Signed-off-by: Phil Kuang <pkuang@factset.com>
2023-10-24 13:06:05 -04:00
zcmander 48a61bfdca techdocs: fix buildLogTransport-related memory leak
Signed-off-by: zcmander <zcmander@gmail.com>
2023-10-20 11:23:16 +03:00
Patrik Oldsberg 124ba80362 Merge pull request #20675 from drodil/techdocs_fail_message_improvement
chore: add info about entity if tech docs building fails
2023-10-19 13:54:02 +02:00
Heikki Hellgren c3c5c7e514 chore: add info about entity if tech docs building fails
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2023-10-19 14:28:44 +03:00
Phil Kuang 31458f5b63 feat(techdocs): rename extension point
Signed-off-by: Phil Kuang <pkuang@factset.com>
2023-10-16 19:10:46 -04:00
Phil Kuang 67cff7b06f feat(techdocs): add extension for setting build strategy
Signed-off-by: Phil Kuang <pkuang@factset.com>
2023-10-12 18:56:45 -04:00
Fredrik Adelöw ba9c46bdd7 stop using SingleHostDiscovery
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-10-12 09:22:23 +02:00
Heikki Hellgren 344cfbcfbc feat: allow prepared directory clean up for custom preparers
When using custom preparer for TechDocs, the `preparedDir` might
end up taking disk space. This requires all custom preparers to
implement a new method `shouldCleanPreparedDirectory` which indicates
whether the prepared directory should be cleaned after generation.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2023-10-05 09:37:10 +03: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
coderrob 659264dad4 Fix invalid deprecated import paths in plugins/techdocs-backend
Signed-off-by: coderrob <coderrob@users.noreply.github.com>
2023-08-03 12:53:37 -05: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 ab61195ea9 update api reports
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Co-authored-by: Camila Loiola <camilaibs@gmail.com>
2023-03-21 09:30:38 +01:00