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

[YUNIKORN-2925] Remove internal object from application REST info #999

Closed
wants to merge 2 commits into from

Conversation

wilfred-s
Copy link
Contributor

@wilfred-s wilfred-s commented Nov 22, 2024

What is this PR for?

Remove the TrackedResource object from the REST response for the application. Moved the tracked resources into a separate object inside the app DAO, as we have done for other complex pieces. Cleanup exposure of the summary object to be testing only. Add DAO retrieval of TrackedResource type for the web handler.

Fixed locking inside the app when logging the summary and cleaning up.

What type of PR is it?

  • - Bug Fix
  • - Improvement

What is the Jira issue?

YUNIKORN-2925

How should this be tested?

Unit tests included

Questions:

  • - It needs documentation.

Remove the TrackedResource object from the REST response for the
application. Moved the tracked resources into a separate object inside
the app DAO, as we have done for other complex pieces.
Cleanup exposure of the summary object to be testing only.
Add DAO retrieval of TrackedResource type for the web handler.

Fixed locking inside the app when logging the summary and cleaning up.
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 72.41379% with 24 lines in your changes missing coverage. Please review.

Project coverage is 81.55%. Comparing base (ac32595) to head (67e49c2).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
pkg/scheduler/objects/application.go 53.12% 15 Missing ⚠️
pkg/common/resources/tracked_resources.go 59.09% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #999      +/-   ##
==========================================
+ Coverage   81.34%   81.55%   +0.21%     
==========================================
  Files          97       97              
  Lines       15590    15639      +49     
==========================================
+ Hits        12681    12754      +73     
+ Misses       2630     2601      -29     
- Partials      279      284       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Copy link
Contributor

@pbacsko pbacsko left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@craigcondit craigcondit left a comment

Choose a reason for hiding this comment

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

+1 LGTM.

rhh777 pushed a commit to rhh777/yunikorn-core that referenced this pull request Nov 25, 2024
…ache#999)

Remove the TrackedResource object from the REST response for the
application. Moved the tracked resources into a separate object inside
the app DAO, as we have done for other complex pieces.
Cleanup exposure of the summary object to be testing only.
Add DAO retrieval of TrackedResource type for the web handler.

Closes: apache#999

Signed-off-by: Craig Condit <ccondit@apache.org>
(cherry picked from commit 7c99e6b)
@wilfred-s wilfred-s deleted the YUNIKORN-2925 branch November 26, 2024 05:19
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