spec(glue): cross-model schedule source (schedules[].model + forEach.model) - #5
Open
delchev wants to merge 1 commit into
Open
spec(glue): cross-model schedule source (schedules[].model + forEach.model)#5delchev wants to merge 1 commit into
delchev wants to merge 1 commit into
Conversation
…model) A schedule's source entity - and a forEach collection - may live in another model via model: <uses alias>, so a schedule can live with the module that owns the created rows. Generate action only; the source is read-only. Validation splits like relations: alias-declared at parse, field references at generation.
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.
Documents a schedule whose source
entity(and optionally aforEachcollection) lives in another model, referenced bymodel: <uses alias>. This lets a schedule live with the module that owns the CREATED rows instead of being forced into the source's module.notifyis rejected —notifyneeds the source's relation metadata, which only a local entity carries.model:alias must be a declareduses:(checked at parse); the source entity and everywhere/map/matchfield reference are checked at generation against the owner model — an unresolvable owner or a mistyped field drops that schedule with a warning, never emitting code that cannot compile.Removes the corresponding 'Planned — not yet implemented' entry.
Leaving this open for the maintainer to review/merge.