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: No more array-of-array return in ApiComponentStatus #122

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

Aloento
Copy link
Member

@Aloento Aloento commented Jun 5, 2024

This commit modifies the ApiComponentStatus class in routes.py to return instead of wrapping it in a list. This improves the efficiency of the API by avoiding unnecessary list creation.

from

image

to

image

This commit modifies the `ApiComponentStatus` class in `routes.py` to return the cached component if it exists, instead of wrapping it in a list. This improves the efficiency of the API by avoiding unnecessary list creation.
@Aloento Aloento added the bug Something isn't working label Jun 5, 2024
@Aloento Aloento self-assigned this Jun 5, 2024
@Aloento Aloento added the gate Gate PR with Zuul label Jun 5, 2024
Copy link

otc-zuul bot commented Jun 5, 2024

Build succeeded.
https://zuul.otc-service.com/t/eco/buildset/ac5e1f85e5274be49429d13044f7dad5

✔️ otc-tox-docs SUCCESS in 3m 09s
✔️ otc-tox-pep8 SUCCESS in 1m 57s
✔️ stackmon-status-dashboard-upload-image SUCCESS in 3m 43s

@otc-zuul otc-zuul bot merged commit 389ca59 into main Jun 5, 2024
5 checks passed
@otc-zuul otc-zuul bot deleted the array branch June 5, 2024 20:05
vladimirhasko added a commit to opentelekomcloud-infra/stackmon-config that referenced this pull request Jun 19, 2024
otc-zuul bot pushed a commit to opentelekomcloud-infra/stackmon-config that referenced this pull request Jul 10, 2024
Update Status Dashboard to latest version

timestamp standardization: stackmon/status-dashboard#121 API fix stackmon/status-dashboard#122

Reviewed-by: Aloento
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gate Gate PR with Zuul
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants