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

feat/performance boots #279

Merged
merged 2 commits into from
Sep 12, 2024
Merged

feat/performance boots #279

merged 2 commits into from
Sep 12, 2024

Conversation

backend/kernelCI_app/views/treeDetailsView.py Outdated Show resolved Hide resolved
Comment on lines +129 to +130
const { data, status } = useBuildStatusCount(
{ buildId: contentData.id ?? '' },
{ enabled: !!contentData.id },
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

useBuildStatusCount can receive only id and "calculate" enabled if

Comment on lines +37 to +45
"build_id": build_status.id,
"fail_tests": build_status.fail_tests,
"error_tests": build_status.error_tests,
"miss_tests": build_status.miss_tests,
"pass_tests": build_status.pass_tests,
"done_tests": build_status.done_tests,
"skip_tests": build_status.skip_tests,
"null_tests": build_status.null_tests,
"total_tests": build_status.total_tests,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would say that we should create a pattern and always use the same names for status (maybe use the same as KCIDB "MISS, PASS, DONE") in all our queries, but it's up to you whether to address this suggestion for this query now or latter.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we can do that but we need to have some way to standardize beside our mouths, probably pydantic will serve for that purpose

- Added a new endpoint to fetch build status counts
- Created `BuildStatusCountView` in `views/buildStatusCountView.py`
- Updated `urls.py` to include the new endpoint
- Modified `TreeDetails.tsx` to use the new endpoint
- Updated `Accordion` component to display build status counts
- Refactored `TreeDetails` related types and hooks
Added a new script to fetch the build status count from the API. This
script sends an HTTP GET request to the specified endpoint and includes
sample response headers and JSON data for reference.

The script will help in monitoring the build status and integrating
with other tools for continuous integration and deployment processes.
@WilsonNet WilsonNet merged commit 8eada70 into main Sep 12, 2024
5 checks passed
@WilsonNet WilsonNet deleted the feat/performance-boots branch September 12, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants