Skip to content

Conversation

@BykhovDenis
Copy link
Member

@BykhovDenis BykhovDenis commented Oct 4, 2025

DSL for SelectedContext. As part of preparation for process dsl and for calculating fields separation. Why we need it? Because old way (JSON) was too big, especially for nested context (real example part on screenshot)
image

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
@BykhovDenis BykhovDenis self-assigned this Oct 4, 2025
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13865

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a DSL (Domain Specific Language) for SelectedContext to replace the JSON-based approach for better performance with nested contexts. The DSL provides a more compact representation that reduces payload size significantly.

  • Implements a bi-directional DSL parser and serializer for SelectedContext objects
  • Updates context parsing to fallback to DSL when JSON parsing fails
  • Refactors ProcessAttribute component to use DSL format by default

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
plugins/process/src/dslContext.ts Core implementation of DSL parser and serializer functions
plugins/process/src/utils.ts Added DSL fallback parsing when JSON fails
plugins/process/src/index.ts Exported DSL context functionality
plugins/process/src/tests/dslContext.test.ts Comprehensive test suite for DSL roundtrip functionality
plugins/process/docs/dsl.md Complete documentation of DSL syntax and usage
plugins/process-resources/src/components/ProcessAttribute.svelte Updated to use DSL format with JSON fallback
plugins/process-resources/src/components/attributeEditors/ConfigurePopup.svelte Enhanced function filtering logic
plugins/process-resources/package.json Added test scripts
packages/platform/src/index.ts Exposed ident module for parsing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
@BykhovDenis BykhovDenis merged commit baa42a1 into develop Oct 5, 2025
25 of 26 checks passed
@BykhovDenis BykhovDenis deleted the context_value_dsl branch October 5, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants