Skip to content

fix(task-refactor): add environment to OrgInfo/Profile for dataCenter#4984

Merged
akulakum merged 1 commit into
webex:task-refactorfrom
akulakum:DIGITAL_CHANNEL_ISSUE_FIX
May 13, 2026
Merged

fix(task-refactor): add environment to OrgInfo/Profile for dataCenter#4984
akulakum merged 1 commit into
webex:task-refactorfrom
akulakum:DIGITAL_CHANNEL_ISSUE_FIX

Conversation

@akulakum
Copy link
Copy Markdown
Contributor

@akulakum akulakum commented May 12, 2026

COMPLETES #https://jira-eng-sjc12.cisco.com/jira/browse/CAI-7912

This pull request addresses

Digital channel tasks (email, chat) not rendering in the task-refactor branch because store.dataCenter was empty after SDK registration, causing the DigitalChannels component to return null.

by making the following changes

  • Added environment field to OrgInfo type to capture the value from the getOrgInfo API response
  • Added environment optional field to Profile type so it is available on the register() return value
  • Mapped environment: orgInfoData.environment in parseAgentConfigs to include it in the aggregated profile
  • Updated unit test mock mockOrgInfo to include the environment field

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Tooling change
  • Internal code refactor

The following scenarios were tested

< ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >

The GAI Coding Policy And Copyright Annotation Best Practices

  • GAI was not used (or, no additional notation is required)
  • Code was generated entirely by GAI
  • GAI was used to create a draft that was subsequently customized or modified
  • Coder created a draft manually that was non-substantively modified by GAI (e.g., refactoring was performed by GAI on manually written code)
  • Tool used for AI assistance (GitHub Copilot / Other - specify)
    • Github Copilot
    • Other - Please Specify
  • This PR is related to
    • Feature
    • Defect fix
    • Tech Debt
    • Automation

I certified that

  • I have read and followed contributing guidelines
  • I discussed changes with code owners prior to submitting this pull request
  • I have not skipped any automated checks
  • All existing and new tests passed
  • I have updated the documentation accordingly

Make sure to have followed the contributing guidelines before submitting.

@akulakum akulakum requested a review from a team as a code owner May 12, 2026 08:07
@akulakum akulakum added the validated If the pull request is validated for automation. label May 12, 2026
@akulakum akulakum merged commit 965266c into webex:task-refactor May 13, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

validated If the pull request is validated for automation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants