Enable "Updated By, Synonyms,RelatedTerms,Status" field in workflow check conditions #25689
Enable "Updated By, Synonyms,RelatedTerms,Status" field in workflow check conditions #25689
Conversation
- Move UPDATED_BY from glossary-specific fields to common fields - Update eventBasedEntityTrigger maxItems from 1 to 2 to allow both relatedEntity and updatedBy - This enables UPDATED_BY field in workflow check conditions for all entities including test suites Co-authored-by: karanh37 <33024356+karanh37@users.noreply.github.com>
|
@copilot revert this change eventBasedEntityTrigger.json |
Co-authored-by: karanh37 <33024356+karanh37@users.noreply.github.com>
Reverted in commit 6c37af9. The eventBasedEntityTrigger.json file now has maxItems: 1 as it was originally. |
| EntityReferenceFields.UPDATED_AT, | ||
| EntityReferenceFields.UPDATED_BY, | ||
| EntityReferenceFields.VERSION, | ||
| EntityReferenceFields.ENTITY_STATUS, |
There was a problem hiding this comment.
⚠️ Bug: EntityStatus from glossary model used for all entity types
EntityStatus is imported from '../generated/entity/data/glossaryTerm' and used in the ENTITY_STATUS field definition. However, ENTITY_STATUS was added to COMMON_ENTITY_FIELDS_KEYS, meaning it will appear as an available field for all entity types (tables, test suites, etc.), not just glossary terms.
If EntityStatus values (e.g., "Approved", "Draft", etc.) are specific to glossary terms, showing them for entities like test suites or tables would be misleading — users would select a status value that doesn't exist on those entities, producing incorrect workflow conditions.
Suggested fix: Either:
- Move
ENTITY_STATUSfromCOMMON_ENTITY_FIELDS_KEYStoGLOSSARY_ENTITY_FIELDS_KEYSif the status field is glossary-specific, or - Verify that all entity types share the same
EntityStatusvalues and document this assumption with a comment.
Was this helpful? React with 👍 / 👎
Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|



Describe your changes:
The "Updated By" field was only available in workflow check conditions for glossary terms. Users creating workflows for test suites and other entities could only access "Updated On" but not "Updated By".
Changes:
JSONLogicSearch.constants.ts): MovedUPDATED_BYfromGLOSSARY_ENTITY_FIELDS_KEYStoCOMMON_ENTITY_FIELDS_KEYSResult: "Updated By" field with
isOwnerandisRevieweroperators now available for all entity types in workflow conditions.Example usage for test suites:
{ "type": "checkEntityAttributesTask", "name": "CheckIfUpdatedByOwner", "config": { "rules": "{\"and\":[{\"isOwner\":{\"var\":\"updatedBy\"}}]}" } }Summary by Gitar
ENTITY_STATUStoCOMMON_ENTITY_FIELDS_KEYSfor status-based filtering (Active/Deprecated/Deleted) in workflow conditions across all entity typesSYNONYMSandRELATED_TERMStoGLOSSARY_ENTITY_FIELDS_KEYSfor glossary-specific workflow conditionsENTITY_STATUS: Select dropdown with status values and search capabilitySYNONYMS: Multiselect with custom values supportRELATED_TERMS: Glossary term search with entity reference selectionThis will update automatically on new commits.
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.