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

[Backport 2.x] Fix getTime field name to time in GetStats (#16894) #17047

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport fe1f0d8 from #17009.

* Fix getTime field name to time in GetStats (#16894)

Signed-off-by: hye-on <ain0103@naver.com>

* Update PR number in changelog

Signed-off-by: hye-on <ain0103@naver.com>

* Deprecate getTime field and add time field in GetStats for backward compatibility

Signed-off-by: hye-on <ain0103@naver.com>

* Add forRemoval flag to getTime field for future removal

Signed-off-by: hye-on <ain0103@naver.com>

* Changed to use field instead of humanReadableField for GET_TIME in JSON response

Replaced the use of builder.humanReadableField for the GET_TIME field with builder.field(Fields.GET_TIME, Objects.toString(getTime())). This prevents the duplication of the time_in_millis field.

Signed-off-by: hye-on <ain0103@naver.com>

* Add test to validate getTime and time fields in _stats API response

getTime and time fields are verified to be included in the _stats API response and correctly aligned.

Signed-off-by: hye-on <ain0103@naver.com>

* Fix formatting in GetStats.java

Signed-off-by: hye-on <ain0103@naver.com>

* Rename test file to better reflect test purpose

Signed-off-by: hye-on <ain0103@naver.com>

* Test Add skip version for stats API human filter test under 2.19.99

Signed-off-by: hye-on <ain0103@naver.com>

* Remove unnecessary changelog entries

Signed-off-by: hye-on <ain0103@naver.com>

* Add a line for styling purposes

Signed-off-by: hye-on <ain0103@naver.com>

---------

Signed-off-by: hye-on <ain0103@naver.com>
(cherry picked from commit fe1f0d8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

✅ Gradle check result for 11a9039: SUCCESS

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.91%. Comparing base (81ee44a) to head (11a9039).
Report is 3 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #17047      +/-   ##
============================================
- Coverage     72.01%   71.91%   -0.10%     
+ Complexity    65652    65638      -14     
============================================
  Files          5318     5318              
  Lines        305831   305833       +2     
  Branches      44601    44601              
============================================
- Hits         220233   219931     -302     
- Misses        67235    67531     +296     
- Partials      18363    18371       +8     

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

@reta reta merged commit d632268 into 2.x Jan 17, 2025
60 of 61 checks passed
@github-actions github-actions bot deleted the backport/backport-17009-to-2.x branch January 17, 2025 13:47
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.

1 participant