Skip to content

Conversation

@BykhovDenis
Copy link
Member

No description provided.

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
@BykhovDenis BykhovDenis requested a review from Copilot October 5, 2025 18:51
@BykhovDenis BykhovDenis self-assigned this Oct 5, 2025
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 new createContext function that provides a safe wrapper around createDSLContext, standardizing context creation throughout the codebase. The wrapper function catches exceptions and falls back to JSON stringification when DSL context creation fails.

  • Adds a new createContext wrapper function that handles errors gracefully
  • Replaces manual JSON stringification patterns with the new wrapper function
  • Consolidates context creation logic across multiple Svelte components

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
plugins/process/src/dslContext.ts Introduces the new createContext wrapper function
plugins/process-resources/src/utils.ts Replaces manual JSON stringification with createContext
plugins/process-resources/src/components/criterias/RangeCriteria.svelte Updates context creation to use new wrapper function
plugins/process-resources/src/components/criterias/BaseCriteriaEditor.svelte Updates context creation to use new wrapper function
plugins/process-resources/src/components/criterias/ArraySizeCriteria.svelte Updates context creation to use new wrapper function
plugins/process-resources/src/components/contextEditors/ToDoContextSelector.svelte Refactors inline context creation to use new wrapper function
plugins/process-resources/src/components/ProcessAttribute.svelte Replaces try-catch block with new wrapper function

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

@huly-github-staging
Copy link

Connected to Huly®: UBERF-13870

@haiodo haiodo merged commit a9b5591 into develop Oct 6, 2025
15 checks passed
@haiodo haiodo deleted the use_dslContext_other_places branch October 6, 2025 00:31
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