Commit Graph

17916 Commits

Author SHA1 Message Date
Patrik Oldsberg 74b6b5cfc2 Merge pull request #7617 from lunarway/fix/github-refresh
Fix refresh token reuse bug in Github provider
2021-10-14 21:55:53 +02:00
Crevil de3e26aecc Fix refresh reuse bug in Github provider
Currently when the Github provider refreshes an access token it doesn't forward
the new refresh token to the caller. As Github only allows refresh tokens to be
used once, the next refresh call will fail.

This change fixes the bug by returning the new refresh token upon refresh.

This change is similar to 25a613bdd7 (#7110) for
the GitLab provider.

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2021-10-14 21:26:43 +02:00
Patrik Oldsberg 72be1cf988 Merge pull request #7614 from backstage/rugvip/e2e-fix
e2e-test: improve page content checking resilience
2021-10-14 19:33:58 +02:00
Patrik Oldsberg 6a7e90c6ca e2e-test: improve page content checking resilience
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-14 19:01:29 +02:00
Patrik Oldsberg 1b02df9f46 Merge pull request #7514 from backstage/changeset-release/master
Version Packages
2021-10-14 18:04:07 +02:00
github-actions[bot] 4c840cebfa Version Packages 2021-10-14 12:45:08 +00:00
Patrik Oldsberg efdefe673f Merge pull request #7410 from SDA-SE/feat/starredentitiesapi
Introduce a new `StarredEntitiesApi` that is used in the `useStarredEntities` hook
2021-10-14 14:39:19 +02:00
Ben Lambert dc93d20204 Merge pull request #7355 from backstage/feat/blam/nunjucks-template
Add support for `scaffolder.backstage.io/v1beta3` Software Templates
2021-10-14 13:52:25 +02:00
Ben Lambert 34c6043600 Merge pull request #7605 from backstage/orkohunter/yarn-lock-sync
chore: sync yarn.lock
2021-10-14 13:23:25 +02:00
Himanshu Mishra 34f9036a5f chore: sync yarn.lock on master branch
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-10-14 12:31:15 +02:00
Fredrik Adelöw 03d306945e Merge pull request #7584 from SDA-SE/feat/fetch-resolvesafe
Use `resolveSafeChildPath` in the `fetchContents` function
2021-10-14 12:18:34 +02:00
Dominik Henneke 5b57ba36f0 Provide a migration from the old storage location and format to the new one
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:46 +02:00
Dominik Henneke 4ec21812bb Fix import
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:46 +02:00
Dominik Henneke 0366c9b667 Introduce a useStarredEntity hook to check if a single entity is starred
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:45 +02:00
Dominik Henneke 1dbaaf7801 Simplify the StarredEntitiesApi interface
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:45 +02:00
Dominik Henneke bd924fece8 Add additional docs
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:45 +02:00
Dominik Henneke c1d50273de Use entity references in the StarredEntitiesApi
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:44 +02:00
Dominik Henneke 78fcb898c4 Rename the storage location of the starred entities from /settings/starredEntities to /starredEntitites/entitifyRefs
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:44 +02:00
Dominik Henneke 615f668d31 Use entity refs as a storage format instead of the custom one
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:44 +02:00
Dominik Henneke 56f0ef983e Remove the star and unstar method from DefaultStarredEntitiesApi
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:43 +02:00
Dominik Henneke 8f55fb815b Fix test
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:43 +02:00
Dominik Henneke 126daa5ec3 Resolve PR comments
* rename starredEntities$ to starredEntitie$
* delete star and unstar from the public interface

Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:42 +02:00
Dominik Henneke 82fbda923e Introduce a new StarredEntitiesApi that is used in the useStarredEntities hook
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:42 +02:00
Dominik Henneke 54bbe25c34 Store the namespaced bucket storage for each instance that was created with MockStorage.create() instead of global variable
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:41 +02:00
blam f71fda7600 chore: removing double log Lines
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam 7fe6c0bb70 chore: reworking the docs a little bit
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam ca16be0611 chore: removing the older json schema not required anymore
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam ac29021b53 chore: re-running things
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam 17d7f5bc57 feat: removing the older stuff and updating to work with the new common packages
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam b1d5d584e5 chore: updating the version string
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam 5118da771f chore: remove the changes for catalog-backend too
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam 18404c795b chore: reset the changes to the catalog-model
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam 8893feca73 chore: docs updates
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam ca9c69f3a8 chore: fix code review comments
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam a61204bc4b chore: remove the link to the legacy docs
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam 808d30cc30 docs: removing older documentation for now
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam f39de106b5 chore: only dump when there's only one param ref
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam cbe2803100 chore: remove the hackery and wrap up the template stringify
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam 18083d1821 chore: add changeset
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam 5a0d2e9fa5 feat(catalog-model/docs): Updating api-report for catalog-model
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam f8355c99cb chore: remove all tracked temp directories and make sure to emit the processing and skipped events
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam 5bdbb6caec chore: fix up some types
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:20 +02:00
blam 154b86e1da feat: think we're at feature parity
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:19 +02:00
blam fe2324e630 chore: added validation for schemas for actions
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:19 +02:00
blam c7b089a5ae chore: adding the new if syntax and using the power of nunjucks
Signed-off-by: blam <ben@blam.sh
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:19 +02:00
blam 1ec5ef3699 chore: acutally make the scaffolder backend run the v3 template
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:19 +02:00
blam 34b1278929 chore: worked out a niceish way to template objects and stuff as first class citizens
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:19 +02:00
blam 6ab1202fc8 feat: rework the TaskWorker to just be concerned with the task delegation
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:19 +02:00
blam 4e005b13cf feat: moving all the legacy tests over to the new LegacyWorkflowRunner tests
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:19 +02:00
blam edb04593ff feat(TaskWorker): move out the logic into the WorkflowRunner implementations
Signed-off-by: blam <ben@blam.sh>
2021-10-14 12:07:19 +02:00