Mike Lewis
e84abaccaf
authz: move permission-common to plugins
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-12 14:18:10 +00:00
Mike Lewis
f816f68bbe
authz: add PermissionClient TODO for better type-safety
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-12 14:18:10 +00:00
Mike Lewis
f0124d29a9
authz: use zod to validate responses in PermissionClient
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-12 14:18:10 +00:00
Mike Lewis
0c0cf0ddaf
build(deps): add dependency on zod in permission-common
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-12 14:18:06 +00:00
Mike Lewis
20d3ef45e2
authz: further relaxation of PermissionCriteria type
...
The PermissionCriteria type is actually intended to be the type used to
represent criteria for arbitrary queries, whether they are expressed as
PermissionConditions or plugin-specific query fragments. As such we
don't need to refer to the PermissionCondition type at all - we can
stick with the TQuery type parameter as the type for the unwrapped
query fragment.
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-12 14:17:16 +00:00
Mike Lewis
ea77555fe3
authz: restrict type of PermissionCondition params
...
We need a guarantee that we'll be able to spread permission condition
params when applying the condition via the `apply` or `toQuery` methods
on the corresponding rule. As such, we need to enforce that the TParams
type parameter is an array.
This commit also supplies a default value of unknown[] for this type
param to make it a bit more convenient to use the type in situations
where the type of the params is not important.
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-12 14:17:16 +00:00
Mike Lewis
00448f02e6
authz: fix PermissionCondition type parameter
...
The type parameter for PermissionCondition refers to the type of the
condition params, not the type of the leaf entries in a
PermissionCriteria object.
It should be safe to always set this type parameter to `unknown[]` in
this case. Each PermissionCondition is will have different parameters,
therefore we just need to enforce that the params is always an array of
unknown.
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-12 14:17:16 +00:00
Mike Lewis
59702b2bde
authz: do not export AuthorizeResult as type
...
Since AuthorizeResult is an enum, exporting it via `export type` is
incorrect - it means we can refer to the AuthorizeResult type, but not
use it or its members as values.
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-12 14:17:16 +00:00
Tim Hansen
dce7237d46
PermissionCriteria generic
...
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
2021-11-12 14:17:15 +00:00
Tim Hansen
c00b4d3829
Remove enum, package fixes
...
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
2021-11-12 14:17:15 +00:00
Tim Hansen
e6805978d8
Remove JSON types, add not criteria
...
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
2021-11-12 14:17:15 +00:00
Tim Hansen
7bba7a8998
Add permission-common package
...
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
2021-11-12 14:17:14 +00:00
Mike Lewis
6f8e995145
Merge pull request #8023 from backstage/bump-api-documenter
...
build(deps): bump @microsoft/api-documenter to v7.13.68
2021-11-12 14:04:11 +00:00
Fredrik Adelöw
b46cd73035
Merge pull request #7612 from backstage/freben/recurring-tasks
...
Add support for distributed tasks
2021-11-12 14:32:30 +01:00
Ben Lambert
7f839ddbb6
Merge pull request #8021 from SDA-SE/feat/dev-switch-theme
...
Add theme switcher to sidebar of dev app
2021-11-12 14:29:45 +01:00
Mike Lewis
f3bd8f4757
build(deps): bump @microsoft/api-documenter to v7.13.68
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-12 12:18:22 +00:00
Oliver Sand
58a4e67ded
Add theme switcher to sidebar of dev app
...
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com >
2021-11-12 11:16:19 +01:00
Patrik Oldsberg
0a66597793
Merge pull request #8000 from marleypowell/marley/7999-storybook-fix
...
fix: Fixed issue with running a subset of stories caused by incorrectly resolved paths.
2021-11-12 11:04:23 +01:00
Johan Haals
96e9afce25
Merge pull request #8016 from backstage/dependabot/npm_and_yarn/types/nunjucks-3.2.0
...
build(deps-dev): bump @types/nunjucks from 3.1.5 to 3.2.0
2021-11-12 10:56:45 +01:00
Johan Haals
f3bf71b925
Merge pull request #8015 from backstage/dependabot/npm_and_yarn/types/jquery-3.5.8
...
build(deps-dev): bump @types/jquery from 3.5.5 to 3.5.8
2021-11-12 10:56:21 +01:00
Fredrik Adelöw
c3ffbd615f
Merge pull request #7947 from backstage/freben/service-builder-errors
...
Make sure that the server builder propagates init errors properly
2021-11-12 09:42:46 +01:00
Marley Powell
f8ebdd571c
refactor: Reworked how subset story paths are created.
...
Signed-off-by: Marley Powell <Marley.Powell@exclaimer.com >
2021-11-12 08:33:39 +00:00
Marley Powell
cdca117d58
Merge branch 'master' of https://github.com/backstage/backstage into marley/7999-storybook-fix
2021-11-12 08:13:33 +00:00
dependabot[bot]
72e0e17fb5
build(deps-dev): bump @types/nunjucks from 3.1.5 to 3.2.0
...
Bumps [@types/nunjucks](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/nunjucks ) from 3.1.5 to 3.2.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/nunjucks )
---
updated-dependencies:
- dependency-name: "@types/nunjucks"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-12 04:13:37 +00:00
dependabot[bot]
0cc1fa949b
build(deps-dev): bump @types/jquery from 3.5.5 to 3.5.8
...
Bumps [@types/jquery](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jquery ) from 3.5.5 to 3.5.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jquery )
---
updated-dependencies:
- dependency-name: "@types/jquery"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-12 04:11:27 +00:00
Patrik Oldsberg
2375361400
Merge pull request #8001 from backstage/rugvip/oda
...
cli: make sure JSS styles receive the highest priority
2021-11-12 01:05:15 +01:00
Patrik Oldsberg
510f16a435
Merge pull request #7845 from jeremyguarini/gcp-plugin-ui-updates
...
UI updates to GCP-projects plugin
2021-11-12 01:02:24 +01:00
Jeremy Guarini
4f3ba47bf3
ran yarn install to clear out data-grid dependency
...
Signed-off-by: Jeremy Guarini <jguarini@paloaltonetworks.com >
2021-11-11 14:49:40 -08:00
Jeremy Guarini
1e33ce7407
swapout material-table for backstage table
...
Signed-off-by: Jeremy Guarini <jguarini@paloaltonetworks.com >
2021-11-11 12:41:30 -08:00
Fredrik Adelöw
333e3c21e5
Merge pull request #7990 from backstage/freben/tar2
...
add snyk ignores for the node-gyp tar vuln
2021-11-11 20:32:04 +01:00
Fredrik Adelöw
5f606617dd
fixup yarn.lock
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:31:05 +01:00
Fredrik Adelöw
3f447ec3e1
use lodash.once instead of memoize, and skip unnecessary PK index
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:24:59 +01:00
Fredrik Adelöw
e72d9ba9f6
remove unnecessary dep on backend-test-utils
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:24:57 +01:00
Fredrik Adelöw
3bf2238187
update to the right version of the errors package
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:24:14 +01:00
Fredrik Adelöw
fdfd2f8a62
remove double config dep in cli
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:24:12 +01:00
Fredrik Adelöw
06b035d120
bump to the latest versions of backstage packages
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:23:19 +01:00
Fredrik Adelöw
41009bb3a5
fix missing link in api report
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:48 +01:00
Fredrik Adelöw
85cc6bd6aa
rename to TaskScheduler to reduce collision risk with other concepts
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:48 +01:00
Fredrik Adelöw
92d85b80e9
more tests and a review comment
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:48 +01:00
Fredrik Adelöw
b5c106ac4c
fix api export and test timeouts
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:48 +01:00
Fredrik Adelöw
26cf7f631d
final cleanup, removing unschedule
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:48 +01:00
Fredrik Adelöw
9bee0b9f71
make it possible to abort tasks
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:48 +01:00
Fredrik Adelöw
d8c28d99cf
make the original task definition into just one object
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:47 +01:00
Fredrik Adelöw
b91fe07309
use a proper AbortController instead of the home baked one
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:40 +01:00
Fredrik Adelöw
cc3b6c25aa
make timeout and frequency mandatory
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:28 +01:00
Fredrik Adelöw
aeaa2fe3e6
log the task id as well when unable to parse settings
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:28 +01:00
Fredrik Adelöw
d252c983b5
use dashes in not-ready-yet
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:28 +01:00
Fredrik Adelöw
5d602f8e29
get rid of the ts-ignore
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:28 +01:00
Fredrik Adelöw
3f1237147f
remove the lock functionality
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:28 +01:00
Fredrik Adelöw
67456f7fc9
remove knexfile
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-11 20:22:28 +01:00