Repository navigation
#314 - Scheduler: enter the context with the fields of the launch form - #316
Open
clever-age-gtonon wants to merge 3 commits into
Open
clever-age-gtonon wants to merge 3 commits into
clever-age-gtonon wants to merge 3 commits into
Conversation
…m of the process The context of a schedule is entered with the fields of the launch form of its process (ui.form.context), loaded with the events of the form and reloaded with htmx when the process changes (AssetMapper). Review fixes: * a stored value that its field cannot read is displayed empty (edit no longer fails); * an invalid launch form falls back to free key/value pairs, with a warning; * a warning names the stored context keys that the launch form does not accept; * the default values of another process are displayed by the form, the managed schedule is not changed; * a scalar ProcessSchedule query parameter no longer fails; * confirmation before the values entered in the context are replaced; * AssetMapper documented (UPGRADE, installation). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e a third-party Twig deprecation * LaunchActionTest uses ContextFormType, ProcessScheduleCrudTest uses ContextField (risky tests with coverage); * collectDeprecations() ignores TemplateWrapper::unwrap() without argument (old symfony/twig-bridge with Twig 3.30). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…idge in the functional tests failOnDeprecation made the lowest dependencies job fail on TemplateWrapper::unwrap() without argument, called by the old symfony/twig-bridge (not by the bundle). The error handler of the functional tests ignores it and gives every other error to the handler of PHPUnit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #314:
ui.form.context: types, default values, field constraints) instead of free key/value pairs only (still available when the process allows extra context, or declares no launch form). The internalContextFormTypeis shared with the launch form; its fields are loaded with the events of the form (PRE_SET_DATA,PRE_SUBMIT).key/valuerows.ProcessSchedulequery parameter no longer fails.Checked locally: all tests OK (854), quality OK (phpstan, php-cs-fixer, rector, twig-cs-fixer). Not run with pcov coverage.
Requirements
Breaking changes
symfony/asset-mapperis now required, and the bundle prepends itsassetsdirectory toframework.asset_mapper.paths(this enables AssetMapper in applications that did not use it). In production, runbin/console asset-map:compilewhen deploying, otherwise the scripts of the bundle are not found and the context of a schedule is no longer reloaded when its process changes. See UPGRADE.md.🤖 Generated with Claude Code