You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Python] Initialize and normalize resources before/after PythonMutator (#2590)
## Changes
Initialize and normalize resources before/after `PythonMutator`.
Create `ResourceProcessor` that applies `initialize` and `normalize` for
resources. It should be used by mutators after they have added or
modified resources.
- when a new resource its normalized and then initialized
- each resource is initialized only once
- each time a resource is updated, it's normalized
Implementation takes a slice of bundle configuration containing
added/modified resources and runs a set of mutators on it. After that,
only resources are merged back. If initialize or normalize resource
mutators change bundle configuration outside if "resources", such
changes are discarded.
Stacked on top of #2637
## Why
Using `ResourceProcessor,` we fix problems with `PythonMutator` where
either input or output wasn't normalized, default configuration wasn't
applied, or it was impossible to override the default configuration
(e.g., remove the `[dev` prefix).
## Tests
Acceptance and unit tests
0 commit comments