Merge pull request #2955 from spotify/freben/next-steps-in-processing

feat(catalog-backend): First steps of refactoring - split processEntity
This commit is contained in:
Fredrik Adelöw
2020-10-20 14:13:49 +02:00
committed by GitHub
13 changed files with 257 additions and 341 deletions
+13
View File
@@ -0,0 +1,13 @@
---
'@backstage/plugin-catalog-backend': minor
---
- The `CatalogProcessor` API was updated to have `preProcessEntity` and
`postProcessEntity` methods, instead of just one `processEntity`. This makes
it easier to make processors that have several stages in one, and to make
different processors more position independent in the list of processors.
- The `EntityPolicy` is now given directly to the `LocationReaders`, instead of
being enforced inside a policy. We have decided to separate out the act of
validating an entity to be outside of the processing flow, to make it
possible to apply more liberally and to evolve it as a separate concept.
- Because of the above, the `EntityPolicyProcessor` has been removed.