Skip to content

Conversation

@zendesk-punavwalke
Copy link
Contributor

@zendesk-punavwalke zendesk-punavwalke commented Oct 16, 2025

💐

/cc @zendesk/wattle

Description

Fixes YAML formatting issues and parameter inconsistencies in Custom Objects V2 validation error messages.

Key Changes:

  • Fixed display issue: Removed "" wrapper quotes that caused \ prefix/suffix to appear in error messages
  • Parameter correction: Replaced %{trigger_title} with %{trigger_key} as unique identifier
  • Translation management: Created updated entries and marked old ones as obsolete (2025-12-31)
  • Improved consistency: Standardized error message patterns across all Custom Objects V2 validations
Screenshot 2025-10-16 at 5 11 15 PM

References

JIRA: https://zendesk.atlassian.net/browse/CRYSTAL-574

Before merging this PR

  • Fill out the Risks section
  • Think about performance and security issues

Risks

  • [low] Updating only translations. This changes are not consumed in any of the zas versions.

- Remove the \ prefix and suffix in strings wrapped in double quotes
@zendesk-punavwalke zendesk-punavwalke changed the title fix: consistency in cov2 validation error messages [CRYSTAL-574] Fix: remove escaped quotes and standardize trigger parameters in validation messages Oct 16, 2025
@zendesk-punavwalke zendesk-punavwalke force-pushed the zendesk-punavwalke/translation-cleanup branch from 66ed247 to 76b2c82 Compare October 16, 2025 11:44
@zendesk-punavwalke zendesk-punavwalke marked this pull request as ready for review October 16, 2025 11:50
@zendesk-punavwalke zendesk-punavwalke requested a review from a team as a code owner October 16, 2025 11:50
Copilot AI review requested due to automatic review settings October 16, 2025 11:50
Copy link

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

Fixes YAML formatting issues and parameter inconsistencies in Custom Objects V2 validation error messages to improve display quality and ensure consistent parameter usage.

  • Removed escaped quotes that caused \ prefixes/suffixes to appear in error messages
  • Replaced %{trigger_title} with %{trigger_key} as the standardized unique identifier for triggers
  • Created new translation entries with corrected formatting and marked obsolete entries with deprecation dates

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

- translation:
key: "txt.apps.admin.error.app_build.invalid_cov2_object_reference_in_fields_v2"
title: 'App builder job: requirements file contains an invalid object reference in object_fields for Custom Objects V2. Do not translate "requirements.json", "object_fields", %{item_identifier}, %{object_key}.'
value: The requirements.json file contains an invalid object reference in object_fields. Field %{item_identifier} references object %{object_key} which does not exist in the objects array.
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

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

The value field is missing quotes around the string value, which is inconsistent with the YAML format used throughout the rest of the file.

Suggested change
value: The requirements.json file contains an invalid object reference in object_fields. Field %{item_identifier} references object %{object_key} which does not exist in the objects array.
value: "The requirements.json file contains an invalid object reference in object_fields. Field %{item_identifier} references object %{object_key} which does not exist in the objects array."

Copilot uses AI. Check for mistakes.
screenshot: "https://drive.google.com/file/d/1yHiq5uUyGmQjLgO72ARAVCgFA1tXFUHT/view?usp=sharing"
- translation:
key: "txt.apps.admin.error.app_build.invalid_cov2_object_reference_in_triggers_v2"
title: 'App builder job: requirements file contains an invalid object reference in object_triggers for Custom Objects V2. Do not translate "requirements.json", "object_fields", %{item_identifier}, %{object_key}.'
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

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

The title references 'object_fields' in the translation note, but this validation message is for 'object_triggers'. The note should reference 'object_triggers' instead of 'object_fields'.

Suggested change
title: 'App builder job: requirements file contains an invalid object reference in object_triggers for Custom Objects V2. Do not translate "requirements.json", "object_fields", %{item_identifier}, %{object_key}.'
title: 'App builder job: requirements file contains an invalid object reference in object_triggers for Custom Objects V2. Do not translate "requirements.json", "object_triggers", %{item_identifier}, %{object_key}.'

Copilot uses AI. Check for mistakes.
screenshot: "https://drive.google.com/file/d/1peD9NjuFQ6_dW4ia6Cxz-GimTN0rdjMk/view?usp=sharing"
- translation:
key: "txt.apps.admin.error.app_build.missing_cov2_trigger_schema_key_v2"
title: 'App builder job: requirements file is missing a custom object trigger schema key. These are the required keys: (title, actions, conditions, object_key). The term \"schema key\" typically refers to an identifier or attribute that defines a specific item within a schema and it should be translated. Leave requirements.json as is (do not translate)'

Choose a reason for hiding this comment

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

Suggested change
title: 'App builder job: requirements file is missing a custom object trigger schema key. These are the required keys: (title, actions, conditions, object_key). The term \"schema key\" typically refers to an identifier or attribute that defines a specific item within a schema and it should be translated. Leave requirements.json as is (do not translate)'
title: 'App builder job: requirements file is missing a custom object trigger schema key. These are the required keys: (title, actions, conditions, object_key). The term "schema key" typically refers to an identifier or attribute that defines a specific item within a schema and it should be translated. Leave requirements.json as is (do not translate)'

screenshot: "https://drive.google.com/file/d/1hTiBvSHqEXCsoa2YAt1bnGNCs8cXSzlx/view?usp=sharing"
- translation:
key: "txt.apps.admin.error.app_build.invalid_cov2_trigger_actions_structure_v2"
title: "App builder job: requirements file contains an invalid custom object trigger actions structure. Actions must be an array. 'actions' is part of requirements file. Leave requirements.json and 'actions' as is (do not translate)"

Choose a reason for hiding this comment

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

Suggested change
title: "App builder job: requirements file contains an invalid custom object trigger actions structure. Actions must be an array. 'actions' is part of requirements file. Leave requirements.json and 'actions' as is (do not translate)"
title: "App builder job: requirements file contains an invalid custom object trigger actions structure. Actions must be an array. 'actions' is part of requirements file. Leave requirements.json as is (do not translate). 'actions' is part of the schema and shouldn't be translated (do not translate)."

screenshot: "https://drive.google.com/file/d/1UeBrY4GlnHDK19zuUE8xUoHnZl9HQv3y/view?usp=sharing"
- translation:
key: "txt.apps.admin.error.app_build.empty_cov2_trigger_actions_v2"
title: "App builder job: requirements file contains empty custom object trigger actions. At least one action must be specified. Leave requirements.json as is (do not translate)"

Choose a reason for hiding this comment

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

Suggested change
title: "App builder job: requirements file contains empty custom object trigger actions. At least one action must be specified. Leave requirements.json as is (do not translate)"
title: "App builder job: requirements file contains empty custom object trigger actions. At least one action must be specified. Leave requirements.json as is (do not translate). 'actions' is part of the schema and shouldn't be translated (do not translate)."

screenshot: "https://drive.google.com/file/d/1ywYAYOoeVmjUgZ2yfFl3YdJ-xkrBSgUG/view?usp=sharing"
- translation:
key: "txt.apps.admin.error.app_build.invalid_object_fields_structure_in_cov2_requirements_v2"
title: "App builder job: requirements file contains invalid object_fields structure for custom objects v2. Object_fields must be an array. Leave requirements.json and 'object_fields' as is (do not translate)"

Choose a reason for hiding this comment

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

Suggested change
title: "App builder job: requirements file contains invalid object_fields structure for custom objects v2. Object_fields must be an array. Leave requirements.json and 'object_fields' as is (do not translate)"
title: "App builder job: requirements file contains invalid object_fields structure for custom objects v2. Object_fields must be an array. Leave requirements.json as is (do not translate). 'object_fields' is part of the schema and shouldn't be translated (do not translate). "

screenshot: "https://drive.google.com/file/d/1ishzANlbt4PiyxikwXDTTPKy9drlWWlP/view?usp=sharing"
- translation:
key: "txt.apps.admin.error.app_build.invalid_cov2_requirements_structure_v2"
title: 'App builder job: requirements file contains invalid custom objects v2 structure. An "object" here refers to a programming object (a set of key-value pairs), not a custom object in Zendesk. Leave requirements.json, custom_objects_v2 as is (do not translate)'

Choose a reason for hiding this comment

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

Suggested change
title: 'App builder job: requirements file contains invalid custom objects v2 structure. An "object" here refers to a programming object (a set of key-value pairs), not a custom object in Zendesk. Leave requirements.json, custom_objects_v2 as is (do not translate)'
title: 'App builder job: requirements file contains invalid custom objects v2 structure. An "object" here refers to a programming object (a set of key-value pairs), not a custom object in Zendesk. Leave 'requirements.json' as is (do not translate). 'custom_objects_v2' is part of the schema and shouldn't be translated (do not translate).'

screenshot: "https://drive.google.com/file/d/1TQSnKbBXxLSYFpcgEBGNceLpo5ARMBAa/view?usp=sharing"
- translation:
key: "txt.apps.admin.error.app_build.invalid_object_triggers_structure_in_cov2_requirements_v2"
title: "App builder job: requirements file contains invalid object_triggers structure for custom objects v2. Object_triggers must be an array. Leave requirements.json and 'object_triggers' as is (do not translate)"

Choose a reason for hiding this comment

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

Suggested change
title: "App builder job: requirements file contains invalid object_triggers structure for custom objects v2. Object_triggers must be an array. Leave requirements.json and 'object_triggers' as is (do not translate)"
title: "App builder job: requirements file contains invalid object_triggers structure for custom objects v2. Object_triggers must be an array. Leave requirements.json as is (do not translate). 'object_triggers' is part of the schema and shouldn't be translated (do not translate)."

screenshot: "https://drive.google.com/file/d/19r2xv15OnXtu2-JxU_ioAVMmaP33DiB-/view?usp=sharing"
- translation:
key: "txt.apps.admin.error.app_build.invalid_cov2_object_reference_in_fields_v2"
title: 'App builder job: requirements file contains an invalid object reference in object_fields for Custom Objects V2. Do not translate "requirements.json", "object_fields", %{item_identifier}, %{object_key}.'

Choose a reason for hiding this comment

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

Suggested change
title: 'App builder job: requirements file contains an invalid object reference in object_fields for Custom Objects V2. Do not translate "requirements.json", "object_fields", %{item_identifier}, %{object_key}.'
title: 'App builder job: requirements file contains an invalid object reference in object_fields for Custom Objects V2. Do not translate "requirements.json", "object_fields" as this is a schema key, %{item_identifier}, %{object_key}.'

Copy link

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

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


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

@alok2806 alok2806 added the g11n-approved Approved by Globalization label Oct 16, 2025
Copy link

@zenfw zenfw left a comment

Choose a reason for hiding this comment

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

LGTM

@zendesk-punavwalke zendesk-punavwalke merged commit 9c00f3f into main Oct 17, 2025
5 checks passed
@zendesk-punavwalke zendesk-punavwalke deleted the zendesk-punavwalke/translation-cleanup branch October 17, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

g11n-approved Approved by Globalization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants