Commit Graph

5898 Commits

Author SHA1 Message Date
Himanshu Mishra a0949d5892 docs: Add docs explaining sign-in resolvers and profile transform
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-15 13:12:39 +02:00
Himanshu Mishra a848395e2b auth-backend: getEntityClaims make sure target is group kind
We are interested in the User isMemberOf Group relation. So this is just an additional check that the target is of Group kind.

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-15 13:12:39 +02:00
Himanshu Mishra 17a26e7ed3 auth-backend: Use stringifyEntityRef helper
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-15 13:12:39 +02:00
Patrik Oldsberg 1111c0753c auth-backend: implement sign-in and profile options for google provider
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
Patrik Oldsberg 48a5dcf9d5 auth-backend: added SignInResolver and ProfileTransform types
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
Patrik Oldsberg 02d2b8681f auth-backend: add getEntityClaims helper that figures out the claims needed to represent an entity
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
Patrik Oldsberg 3430f0d1ff auth-backend: add ent to possible claims in TokenParams
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
Patrik Oldsberg de81880419 auth-backend: refactor CatalogIdentityClient to depend on TokenIssuer directly
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
Crevil 7453511900 Describe publish:github scaffolder action fields
Currently the fields of the publish:github action uses some undocumented
conventions in the repoUrl and access input fields.

This change adds a description to the fields with examples of what to input. The
collaborators description is also expanded a bit to make it more clear that
these are additional compared to access and owner.

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2021-06-15 12:13:09 +02:00
blam f547a1473e feat: update the usage of the EntitySwitch to use the new traversal composability API
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>

Signed-off-by: blam <ben@blam.sh>
2021-06-15 12:09:26 +02:00
blam 31e067d346 chore: actually use the right packages - went and messed up a bit
Signed-off-by: blam <ben@blam.sh>
2021-06-15 12:09:26 +02:00
blam 359a118902 chore: reworking some thigns
Signed-off-by: blam <ben@blam.sh>
2021-06-15 12:09:26 +02:00
blam 969c6750af feat: writing some tests and have a nicer api now
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>

Signed-off-by: blam <ben@blam.sh>
2021-06-15 12:09:25 +02:00
blam 78ccf9ea98 feat: replace implementations of children introspection with our new thing
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>

Signed-off-by: blam <ben@blam.sh>
2021-06-15 12:09:25 +02:00
blam d7f0b0bed6 chore: working through beginning API
Signed-off-by: blam <ben@blam.sh>
2021-06-15 12:09:25 +02:00
blam 794af0de8e feat: more work with the nice API
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>

Signed-off-by: blam <ben@blam.sh>
2021-06-15 12:09:25 +02:00
Johan Haals a0f2f63374 Merge pull request #5901 from backstage/jhaals/legacy-catalog
Catalog: Make the new processing engine the default
2021-06-15 11:40:53 +02:00
Patrik Oldsberg 3be9904e63 Merge pull request #6027 from backstage/rugvip/pipeline
catalog-backend: introduce TaskPipeline
2021-06-15 11:24:49 +02:00
Johan Haals 0176d78f27 Merge pull request #6007 from backstage/jhaals/configure-refresh
catalog/next: Make refresh interval configurable
2021-06-15 10:58:46 +02:00
Vitor Capretz fccbc7d1b6 Fix NaN bug with null end_time
Signed-off-by: Vitor Capretz <capretzvitor@gmail.com>
2021-06-15 09:55:37 +02:00
Eric Peterson e03eaeec3e Fix TechDocs annotation on remaining scaffolder templates.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-14 19:19:47 +02:00
Eric Peterson aeed120114 Fix Scaffolder Docs Template
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-14 19:19:11 +02:00
Dominik Henneke df3ac03cfb Use the correct parameter to create a public repository in Bitbucket Server.
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-06-14 18:14:26 +02:00
Dominik Henneke 938aee2fbd Fix the link to the documentation page when no owned documents are displayed
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-06-14 17:33:55 +02:00
Patrik Oldsberg 608e83f928 Merge pull request #5959 from carlo-colombo/bitbucket-lfs
Add supprt to enable LFS for hosted Bitbucket
2021-06-14 16:41:22 +02:00
Johan Haals 9600e5e669 chore: Update constructor args to object
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-06-14 16:18:15 +02:00
Johan Haals 5b721e1ebc chore: pass constructor arguments
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-06-14 16:18:14 +02:00
Johan Haals 5f6c806378 catalog/next: Make refresh interval configurable
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-06-14 16:18:12 +02:00
Johan Haals f68632411b catalog: Reuse builder for next/legacy catalog
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-06-14 16:10:18 +02:00
Patrik Oldsberg d4e73b45f9 Merge pull request #6026 from backstage/rugvip/skip-locked
catalog-backend: avoid duplication of work due to race conditions in task pickup
2021-06-14 15:12:52 +02:00
Fredrik Adelöw 3108ff7bfd Make yarn dev for backends respect the PLUGIN_PORT env var
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-14 14:46:19 +02:00
Patrik Oldsberg 18ab535c83 catalog-backend: use select for update skip locked for the work queue
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-14 13:35:33 +02:00
Dominik Henneke ca70bd37d5 Move from require to import
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-06-14 12:55:19 +02:00
Dominik Henneke 4ca3228268 Migrate from the command-exists-promise dependency to command-exists
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-06-14 10:38:24 +02:00
Fredrik Adelöw ab3d4e92eb Merge pull request #5949 from backstage/dependabot/npm_and_yarn/http-proxy-middleware-2.0.0
chore(deps): bump http-proxy-middleware from 0.19.2 to 2.0.0
2021-06-14 10:30:28 +02:00
Tim Hansen 30c2fdad2c Export catalog components to match docs
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-06-13 10:24:40 -06:00
Patrik Oldsberg 72fbf43721 catalog-backend: introduce TaskPipeline
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-12 17:36:11 +02:00
Mathias Åhsberg b861c082b6 Support jenkins build details for branches that contains slashes
Signed-off-by: Mathias Åhsberg <mathias.ahsberg@resurs.se>
2021-06-12 14:41:48 +00:00
Vitor Capretz eeed844d78 remove moment as step 1 of migration to lexon
Signed-off-by: Vitor Capretz <capretzvitor@gmail.com>
2021-06-12 14:38:31 +02:00
Vitor Capretz 4bd96b110f Replace timeago.js in favor of luxon in Sentry plugin
Signed-off-by: Vitor Capretz <capretzvitor@gmail.com>
2021-06-12 13:42:40 +02:00
Emma Indal 667656c8b5 [TechDocs] TechDocs custom homepage with user owned filter support (#5994)
* add emptystate to docs card grid

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* adjust filterpredicate to accept a string, adjust custom home page based on owned documents filter

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* update the techdocs home page to use the new ownedByUser filter

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* fix tests

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* use useOwnUser hook from catalog react plugin and delete duplicate one

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add changeset

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2021-06-11 16:52:46 +02:00
Oliver Sand 873116e5df Fix a react warning in <EntityListComponent>
`entityRef` should only be passed conditionally if component is present, otherwise React logs a warning/error to console.

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-06-11 12:38:22 +02:00
Eric Peterson 86fc1c3930 Carve out exception for external SVGs
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-11 10:35:01 +02:00
dependabot[bot] a89ec167e1 chore(deps): bump leasot from 11.5.0 to 12.0.0
Bumps [leasot](https://github.com/pgilad/leasot) from 11.5.0 to 12.0.0.
- [Release notes](https://github.com/pgilad/leasot/releases)
- [Commits](https://github.com/pgilad/leasot/compare/v11.5.0...v12.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-11 04:10:19 +00:00
Tim Hansen 42a2d2ebc1 Fix theme toggling bug
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-06-10 19:45:37 -06:00
github-actions[bot] 4a93128245 Version Packages 2021-06-10 12:18:06 +00:00
Minn Soe 5a3ce34072 refactor: migrate from deprecated database manager
Changes:
- Swaps out `SingleConnectionDatabaseManager` to `DatabaseManager`
  across the repo.
- Updates `backend-test-utils` to generate test plugin names prefixed
  with db to satisfy plugin naming constraint, e.g. 0 becomes db0.

Signed-off-by: Minn Soe <contributions@minn.io>
2021-06-10 11:14:40 +01:00
Patrik Oldsberg 399abf9670 Merge pull request #5878 from backstage/rugvip/codemods
Introduce @backstage/codemods package, with an initial transform for migrating core-* imports
2021-06-10 11:53:44 +02:00
Oliver Sand 429f9c0bf1 Merge pull request #5957 from SDA-SE/feat/scaffolder-source
Show link to template source on template card
2021-06-10 10:19:02 +02:00
Eric Peterson 5c9c34dee9 Merge pull request #5927 from backstage/iameap/search-alpha-release
[Search] Initial, Alpha Release
2021-06-09 19:21:15 +02:00