Skip to content

Conversation

@aonnikov
Copy link
Member

No description provided.

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13696

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 refactors the controlled document metadata update mechanism by removing client-side synchronization and implementing a server-side trigger that automatically updates document metadata when title or code changes occur.

  • Replaced manual client-side syncDocumentMetaTitle calls with a new server-side trigger OnDocTitleChanged
  • Removed the syncDocumentMetaTitle utility function and its imports from client components
  • Added trigger configuration to automatically handle document metadata updates

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
server-plugins/controlled-documents/src/index.ts Added trigger declaration for OnDocTitleChanged
server-plugins/controlled-documents-resources/src/index.ts Implemented OnDocTitleChanged trigger function and added it to exports
plugins/controlled-documents-resources/src/utils.ts Removed syncDocumentMetaTitle utility function
plugins/controlled-documents-resources/src/components/document/popups/ChangeDocCodePopup.svelte Removed manual syncDocumentMetaTitle call and import
plugins/controlled-documents-resources/src/components/document/EditDocContent.svelte Removed manual syncDocumentMetaTitle call, import, and related logic
models/server-controlled-documents/src/index.ts Added trigger model configuration for OnDocTitleChanged

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

@aonnikov aonnikov marked this pull request as draft September 15, 2025 10:40
@aonnikov aonnikov marked this pull request as ready for review September 15, 2025 10:51
@aonnikov aonnikov merged commit 3b60a5d into develop Sep 15, 2025
15 checks passed
@aonnikov aonnikov deleted the eqms-1643-doc-title branch September 15, 2025 10:52
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