Commit Graph

423 Commits

Author SHA1 Message Date
blam bf231ecc7f chore: updating api-report
Signed-off-by: blam <ben@blam.sh>
2022-03-07 10:15:54 +00:00
Fredrik Adelöw 3c2bc73901 add setupRequestMockHandlers to backend-test-utils
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-06 17:06:45 +01:00
Eric Peterson c938e0d61d Merge pull request #9952 from backstage/iameap/mv-techdocs-search-common 2022-03-04 20:06:39 +01:00
Eric Peterson 3e54f6c436 Use @backstage/plugin-search-common instead of @backstage/search-common
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-03-04 18:47:55 +01:00
Fredrik Adelöw ed027b8b28 just fix some random ugly comments
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-04 16:59:57 +01:00
Eric Peterson 91bf1e6c1a Use @backstage/plugin-techdocs-node instead of @backstage/techdocs-common
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-03-04 09:54:19 +01:00
github-actions[bot] 3c8bb2854d Version Packages 2022-03-03 15:23:53 +00:00
Fredrik Adelöw 899f196af5 update to use getEntityByRef
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-03 13:27:25 +01:00
Fredrik Adelöw 36aa63022b deprecate EntityName, introduce CompoundEntityRef
deprecate getEntityName, introduce getCompoundEntityRef

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-02 21:54:45 +01:00
Eric Peterson 0087554f5c Update TechDocs Collator to be stream-based
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-03-02 17:29:13 +01:00
Nikolas Skoufis eed6b57cf8 Update error message in tests
Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>
2022-03-02 11:10:14 +11:00
Nikolas Skoufis 63bb0a9644 Update comments and logs for shouldBuild
Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>
2022-03-02 10:10:16 +11:00
Nikolas Skoufis 4368196fba Accept object in shouldBuild for future extensibility
Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>
2022-03-02 10:10:16 +11:00
Nikolas Skoufis 5adcf26b05 Refactor to a private constructor and static fromConfig
Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>
2022-03-01 09:26:07 +11:00
Nik Skoufis 7a22a78180 Apply suggestions from code review
Co-authored-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>
2022-03-01 09:26:07 +11:00
Nikolas Skoufis 588445b175 Exporting interface and adding docs
This makes the api reporter happy, with good reason

Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>
2022-03-01 09:26:07 +11:00
Nikolas Skoufis f7e6a2fbc7 Add updated api report
Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>
2022-02-27 18:49:59 +11:00
Nikolas Skoufis 54027cb0f6 Merge branch 'master' of github.com:Niksko/backstage into docs-build-strategy 2022-02-27 18:26:57 +11:00
github-actions[bot] c9da151d84 Version Packages 2022-02-24 13:54:37 +00:00
Dede Hamzah d721f8a458 Update to filter techdocs annotation directly in get entities
Signed-off-by: Dede Hamzah <dehamzah@gmail.com>
2022-02-24 10:22:14 +07:00
Dede Hamzah 8e91f7a359 updating api-report
Signed-off-by: Dede Hamzah <dehamzah@gmail.com>
2022-02-24 10:19:52 +07:00
Dede Hamzah bef351550f generate api docs
Signed-off-by: Dede Hamzah <dehamzah@gmail.com>
2022-02-24 10:19:52 +07:00
Dede Hamzah d2ea0473bf Add filter parameter in DefaultTechDocsCollator to help limit scanning all entities
Signed-off-by: Dede Hamzah <dehamzah@gmail.com>
2022-02-24 10:19:52 +07:00
Fredrik Adelöw d0582b2d0f stitch targetRef and backwards compat inject it on read
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-02-23 09:38:40 +01:00
Emma Indal 68abf6e837 Update plugins/techdocs-backend/src/search/DefaultTechDocsCollator.ts
Signed-off-by: Emma Indal <emma.indahl@gmail.com>

Co-authored-by: Eric Peterson <iamEAP@users.noreply.github.com>
2022-02-21 13:24:56 +01:00
Emma Indal e60175e87a clean up deprecated code
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-02-21 12:06:43 +01:00
Emma Indal 81b6d0fabe clean up api report
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-02-21 12:02:50 +01:00
Patrik Oldsberg ba68ea4450 apply 0.68.1 fixes to master
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-18 11:30:15 +01:00
github-actions[bot] 408b0300cb Version Packages 2022-02-17 10:38:59 +00:00
Patrik Oldsberg d99c3c2177 Merge pull request #9254 from backstage/rugvip/add-roles
packages: add roles to all packages
2022-02-16 18:40:37 +01:00
Nikolas Skoufis 2a865343c2 Add a new interface: DocsBuildStrategy
This adds a new interface called DocsBuildStrategy. This strategy allows
for different answers to the question: should the TechDocs backend
perform a build of the given entity?

The default implementation replicates the existing functionality, in
that if the techdocs.builder config value is set to local, then we do
trigger builds, and if the value is set to anything else, we don't
trigger builds. However the strategy has access to the entity, and so
more complex strategies are possible.

This strategy is added as an optional parameter on the RouterOptions
types, and defaults to the DefaultDocsBuildStrategy if unspecified,
allowing for backwards compatibility.

TODO: rename some of the config options, and reword errors to reflect
the new interface

Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>
2022-02-16 16:53:33 +11:00
Patrik Oldsberg 9892d74326 cli: renamed script commands to package
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-15 21:27:12 +01:00
Johan Haals 7aeb491394 catalog-model: deprecate ENTITY_DEFAULT_NAMESPACE, replace with DEFAULT_NAMESPACE
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-02-15 10:27:57 +01:00
Patrik Oldsberg 8f82d80adf migrate all package scripts
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-14 21:50:07 +01:00
Patrik Oldsberg bb5fcc3209 update all plugin package roles
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-14 21:50:05 +01:00
Patrik Oldsberg b521c1b83b detect all package roles
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-14 21:50:03 +01:00
Camila Belo a2e5b91b1c Merge pull request #9333 from RoadieHQ/fix-inline-docs-search
Fix tech docs inline search on Postgres
2022-02-14 08:17:31 +01:00
Fredrik Adelöw 453145abba techdocs: do not use cross-fetch in backend
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-02-10 16:55:24 +01:00
Fredrik Adelöw 1ed305728b bump node-fetch and cross-fetch
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-02-10 15:51:50 +01:00
github-actions[bot] e4791789d1 Version Packages 2022-02-10 11:06:33 +00:00
github-actions[bot] e74f416a00 Version Packages (next) 2022-02-08 19:38:17 +00:00
dependabot[bot] 2441d1cf59 chore(deps): bump knex from 0.95.6 to 1.0.2
Bumps [knex](https://github.com/knex/knex) from 0.95.6 to 1.0.2.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/commits)

---
updated-dependencies:
- dependency-name: knex
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 15:51:55 +01:00
Jussi Hallila d1eff62105 Fix tests.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2022-02-03 12:21:54 +01:00
Jussi Hallila 811c710a21 Fix tech docs inline search on Postgres
Fix bug where tech docs collator stores search indices with wrong entity ref casing. Make the collator to conform legacyPathCasing configuration option.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2022-02-03 12:15:12 +01:00
github-actions[bot] a12bb7b065 Version Packages 2022-02-03 09:42:25 +00:00
github-actions[bot] 51eecb3f03 Version Packages (next) 2022-02-02 14:28:47 +00:00
Eric Peterson 742434a6ba Fix TechDocs download bug when backend/app hosts are the same.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-02-01 13:39:23 +01:00
github-actions[bot] e1580cf73a Version Packages (next) 2022-02-01 08:53:29 +00:00
github-actions[bot] 406848efee Version Packages 2022-01-27 11:07:27 +00:00
MT Lewis 4682340457 techdocs-backend: support authorization in DefaultTechDocsCollator
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-25 13:01:39 +00:00