Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: regression of listing connected agent with null-check on live_stat from response #2286

Merged

Conversation

lizable
Copy link
Contributor

@lizable lizable commented Apr 1, 2024

Sometimes there has a chance of receiving NULL value in live_stat in agent status, but since now It's been treated as if always has value, which caused runtime-error. Therefore I added conditional statement so that parsing live_stat value is only available when it's not NULL.

Checklist: (if applicable)

  • Mention to the original issue
  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

@lizable lizable marked this pull request as ready for review April 1, 2024 07:00
@lizable lizable self-assigned this Apr 1, 2024
@github-actions github-actions bot added the size:XS ~10 LoC label Apr 1, 2024
@lizable lizable added urgency:blocker IT SHOULD BE RESOLVED BEFORE DISTRIBUTING and removed size:XS ~10 LoC labels Apr 1, 2024
@lizable lizable added this to the 23.09 milestone Apr 1, 2024
src/components/backend-ai-agent-list.ts Outdated Show resolved Hide resolved
@github-actions github-actions bot added the size:XS ~10 LoC label Apr 1, 2024
@lizable lizable requested a review from yomybaby April 1, 2024 10:21
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM!

@yomybaby yomybaby merged commit f0c9d8e into main Apr 1, 2024
5 checks passed
@yomybaby yomybaby deleted the hotfix/null-check-on-live-stat-in-connected-agent-list branch April 1, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS ~10 LoC urgency:blocker IT SHOULD BE RESOLVED BEFORE DISTRIBUTING
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants