Skip to content

Refactor AttributeContext to use the Engine context - #64

Merged
kettasoft merged 2 commits into
masterfrom
refactor/attribute-context-engine
Sep 7, 2026
Merged

Refactor AttributeContext to use the Engine context#64
kettasoft merged 2 commits into
masterfrom
refactor/attribute-context-engine

Conversation

@kettasoft

Copy link
Copy Markdown
Owner

Summary

Simplify AttributeContext by replacing the generic query and state dependencies with the active Engine and Payload instances.

Changes

  • Replace the query and shared state properties with a typed Engine
  • Keep the current Payload directly accessible to attributes
  • Update the Invokable Engine to construct the new context
  • Access the query builder through the Engine context
  • Use the Payload field in required validation messages
  • Remove unused attribute handler implementations
  • Remove the unused scope state flag
  • Update custom annotation and AttributeContext documentation
  • Update attribute tests for the new constructor

kettasoft and others added 2 commits September 7, 2026 07:18
…ecture (#52)

* refactor(attributes): replace query+state deps with Engine.

* refactor(AttributePipeline): remove unused parameter from constructor

* refactor: remove unused AttributeHandler implementations

* refactor(engines): replace query deps with Engine context

* fix(Required): update error message to use payload field instead of context state key

* refactor(Scope): update query retrieval method and remove scope applied flag

* refactor(CastAttributeTest): mock Engine in AttributeContext for improved test isolation
@kettasoft kettasoft self-assigned this Sep 7, 2026
@kettasoft kettasoft added the enhancement New feature or request label Sep 7, 2026
@kettasoft
kettasoft merged commit 323f4d2 into master Sep 7, 2026
1 check passed
@kettasoft
kettasoft deleted the refactor/attribute-context-engine branch September 7, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant