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-2085] CurrentPriority field missing from Queues API respons… #700

Closed
wants to merge 1 commit into from

Conversation

Haser0305
Copy link
Contributor

@Haser0305 Haser0305 commented Nov 7, 2023

What is this PR for?

The CurrentPriority field is currently tagged with "omitempty", which causes it to be omitted from json response when the value is 0.

Omitting the field in this case could mislead consumers or cause potential errors when consuming the API, such as throwing exceptions upon finding the expected field missing from the response.
Removing omitempty ensures the field will always be included with its actual value, even if 0. This avoids situations where the field might be missing.

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

What is the Jira issue?

https://issues.apache.org/jira/projects/YUNIKORN/issues/YUNIKORN-2085

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.

makinyemi pushed a commit to makinyemi/yunikorn-core that referenced this pull request Nov 8, 2023
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.

2 participants