Commit Graph

7695 Commits

Author SHA1 Message Date
Jussi Hallila 9c19d6ad01 Tweak formatting of snippets on README.md files.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila 5ebfedd9c2 Add new api-report
Update persistence context to not be wrapped into a useless class. Modify the way test databases are created.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila 29faa2ace2 Update cli version
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila 2b3e959ef4 Modifications after PR review
* Change entity filter to be an actual entity filter instead of a list of kinds or types
* Modify/simplify types a little bit
* Split common type libs to one for node and one isomorphic
* Remove unnecessary items from FactChecker interface to simplify execution loop.

Needs still matching README.md changes.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila df000b9596 Address various code review comments.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila a1afbe0498 Use a direct custom Error since backstage/errors seems unusable.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila b427f4ba0b Modify validation to have a more user friendly API
* Adding a container type to be returned from validate function
* Modifying JsonRulesEngineFactChecker to throw with error information if check addition fails on validation

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila b2363f3e3b Add explicit type information to checks
Types can be used to:
* Determine which check logic to run
* Determine the correct persistence option to use
* Choose correct ser/deser logic for the check
* Determine correct components to render on the frontend

Modify router API to be post for better usability. The API might end up doing writes if caching etc. is added in later as well.

Modify CheckRegistry & FactChecker to return persisted check when it is registered.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila 75fc6ac85b Implement Tech Insights backend
* Add common types and interfaces for Tech Insights. Exposing components needed to use and modify tech-insights-backend module and to implement individual Fact Retrievers, Fact Checkers and their persistence options.

* Implement a framework to run fact retrievers and store fact data into the database. Add migration scripts to create a new database for `tech_insights`.

* Create a default implementation of a FactChecker enabling users to construct checks and run them and generate scorecards based on checks.

* To be able to use tech insights in your application you need to implement `FactRetriever`s to retrieve and return data for facts and register them to the tech-insights-backend. If you want to use fact checking functionality, you need to create `check`s and register them to an implementation of a `FactChecker`.

For more information see documentation on the README.md files of the respective packages.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Patrik Oldsberg 4eb087ccdc techdocs-backend: release schema hotfix
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-29 11:03:53 +02:00
Andrew Thauer b45607a2ec fix: make techdocs s3 credentials optional in config schema
Signed-off-by: Andrew Thauer <athauer@wealthsimple.com>
2021-10-28 17:56:59 -04:00
github-actions[bot] d66c5f1282 Version Packages 2021-10-28 14:06:43 +00:00
Patrik Oldsberg c9143d2abe Merge pull request #7409 from RoadieHQ/ch3367
Adopt extra field for OAuth state
2021-10-28 16:01:48 +02:00
Fredrik Adelöw bb970cf258 Merge pull request #7444 from N-Shar-ma/file-path-split-bug-fix
Fix FileExplorer Path Splitting Bug
2021-10-28 13:41:35 +02:00
Fredrik Adelöw 303543eeb2 Merge pull request #7807 from andrewthauer/custom-location-analyzer
feat: allow custom location analyzer in next catalog builder
2021-10-28 13:19:22 +02:00
Andrew Thauer b9ce1ce2c1 feat: allow custom location analyzer in next catalog builder
Signed-off-by: Andrew Thauer <athauer@wealthsimple.com>
2021-10-27 15:00:48 -04:00
Jeremy Guarini 72e7a87684 add more testing for FileExplorer tests
Signed-off-by: Jeremy Guarini <jguarini@paloaltonetworks.com>
2021-10-27 09:36:30 -07:00
Oliver Sand 106a5dc3ad Restore original casing for kind, namespace and name in DefaultTechDocsCollator
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-10-27 14:30:40 +02:00
Ben Lambert 40681b867d Merge pull request #7738 from kennethzfeng/kfeng.fix-file-mode
plugin/scaffolder: set the file mode in publish:github:pull-request.
2021-10-27 09:30:53 +02:00
Ben Lambert 082a6513f7 Merge pull request #7767 from ellisio/chore-deps-msw
chore(deps): bump msw to v0.35.0
2021-10-27 09:19:20 +02:00
Tim Hansen 70b825d757 Merge pull request #7524 from GunnerStraiker1/entity-type-picker-hidden
EntityTypePicker can be hidden and initially set
2021-10-26 21:46:46 -06:00
Jeremy Guarini 7ea444c78d update filexplorer test
Signed-off-by: Jeremy Guarini <jguarini@paloaltonetworks.com>
2021-10-26 14:47:32 -07:00
Jeremy Guarini b3fb448e7b removed extra line in imports
Signed-off-by: Jeremy Guarini <jguarini@paloaltonetworks.com>
2021-10-26 14:47:32 -07:00
Jeremy Guarini f7a7fdc2af fixed prettier issues with FileExplorer files
Signed-off-by: Jeremy Guarini <jguarini@paloaltonetworks.com>
2021-10-26 14:47:32 -07:00
Victor Perera bd7f1e506c Tests fixed
Signed-off-by: Victor Perera <v-vperera@expediagroup.com>
2021-10-26 16:43:45 -05:00
blam d465f2e0af chore: bump the msw package and remove it from test-utils as it's not even needed
Signed-off-by: blam <ben@blam.sh>
2021-10-26 17:13:49 +02:00
Johan Haals d5fb02775a Merge pull request #7774 from backstage/msw/usages
chore/cli: Replace msw with setupRequestMockHandlers
2021-10-26 15:56:35 +02:00
Nicolas Arnold f18755ee49 Using req instead of state
Signed-off-by: Nicolas Arnold <nic@roadie.io>
2021-10-26 10:27:18 +01:00
Johan Haals f1e96dc5b1 chore/cli: Replace msw with setupRequestMockHandlers
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-26 10:54:47 +02:00
Nicolas Arnold 118df0f94d Merge branch 'backstage:master' into ch3367 2021-10-26 09:48:31 +01:00
Ben Lambert ce695c62fb Merge pull request #7744 from OscarDHdz/scaffolder/EnableActionButtonsIfTemplateFails
Scaffolder: Enable buttons if template fails to execute
2021-10-26 10:38:51 +02:00
Tim Hansen 2ba4a2caef Merge pull request #7765 from RodionGork/fix/sentry-plugin-period-values
fix: sentry plugin corrected allowed period values
2021-10-25 20:20:25 -06:00
Tim Hansen 5d3253f7b6 Merge pull request #7755 from jrusso1020/jrusso/export-components-for-custom-scaffolderpage
Export components so developers can customize the scaffolder page
2021-10-25 13:57:46 -06:00
rodion 61fe752dad fix: sentry plugin corrected allowed period values
according https://docs.sentry.io/api/events/list-a-projects-issues/

Signed-off-by: rodion <rodiongork@github.com>
2021-10-25 22:48:14 +03:00
OscarDHdz 59a7e369a9 Scaffolder: update template execution error handling
Signed-off-by: OscarDHdz <v-ohernandez@expediagroup.com>
2021-10-25 11:31:24 -05:00
Kenneth Feng ce024e93ce Cast string 'base64' to the compatible Encoding type.
Signed-off-by: Kenneth Feng <kenneth.feng@onepeloton.com>
2021-10-25 10:26:39 -04:00
jrusso1020 5e10974af6 Export components so developers can customize the scaffolder page
This is the first step to allow developers to customize the scaffolder
page. With this work all the scaffolder page is now available to
backstage developers and they can customize the current scaffolder
page how they like similar to what is available for the catalog page
and other plugin pages.

Future work that has been discussed is possibly allowing for SwimLane
components that will allow developers to surface specific templates
or organize templates in specific ways

Signed-off-by: jrusso1020 <jrusso@brex.com>
2021-10-25 10:10:35 -04:00
Ben Lambert 0ad4e5dab0 Merge pull request #7753 from awanlin/topic/azure-devops-frontend-refactoring
Azure DevOps Frontend Refactoring
2021-10-25 15:00:32 +02:00
Ben Lambert 874150c602 Merge pull request #7737 from RodionGork/feat/sentry-plugin-allows-search-query
fix: sentry plugin allows search query parameter
2021-10-25 14:56:29 +02:00
rodion 43b77e1e5e fix: sentry-plugin query parameter is optional
Signed-off-by: rodion <rodiongork@github.com>
2021-10-25 15:05:07 +03:00
Ben Lambert a1b042b508 Merge pull request #7752 from awanlin/topic/add-duration-and-identity-to-azure-devops-backend
Added duration and identity as well as minor refactoring
2021-10-25 11:00:46 +02:00
blam 4289ac5322 chore: export the types properly and update the api-report
Signed-off-by: blam <ben@blam.sh>
2021-10-25 10:34:01 +02:00
Ben Lambert a22ebf3da6 Merge pull request #7681 from mclarke47/refresh-kubernetes-plugin-at-interval
Refresh k8s plugin at interval
2021-10-25 10:23:00 +02:00
blam d184e50c50 chore: updating api report
Signed-off-by: blam <ben@blam.sh>
2021-10-25 10:21:17 +02:00
Ben Lambert 6a4e6e3898 Merge pull request #7733 from cmpadden/tech-docs-scroll-restoration
Scroll to Top of TechDocs Reader During Page Navigation
2021-10-25 10:04:04 +02:00
Andre Wanlin 91e7f2eda8 Added tests for state and result functions
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-24 10:04:11 -05:00
Andre Wanlin 7adcfb4f76 Refactored README
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-24 08:45:22 -05:00
Andre Wanlin e1ebaff47a Removed router
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-24 08:09:00 -05:00
Andre Wanlin 75a865215c Added duration and identity as well as minor refactoring
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-23 11:47:54 -05:00
Kenneth Feng 7a5cb137b5 Always use base64 encoding to prevent interpreting binary files as utf-8 text files
Signed-off-by: Kenneth Feng <kenneth.feng@onepeloton.com>
2021-10-22 21:45:04 -04:00