Skip to content

Conversation

@opensearch-trigger-bot
Copy link
Contributor

Backport fe1f0d8 from #17009.

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

Signed-off-by: hye-on <[email protected]>

* Update PR number in changelog

Signed-off-by: hye-on <[email protected]>

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

Signed-off-by: hye-on <[email protected]>

* Add forRemoval flag to getTime field for future removal

Signed-off-by: hye-on <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* Fix formatting in GetStats.java

Signed-off-by: hye-on <[email protected]>

* Rename test file to better reflect test purpose

Signed-off-by: hye-on <[email protected]>

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

Signed-off-by: hye-on <[email protected]>

* Remove unnecessary changelog entries

Signed-off-by: hye-on <[email protected]>

* Add a line for styling purposes

Signed-off-by: hye-on <[email protected]>

---------

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

✅ Gradle check result for 11a9039: SUCCESS

@codecov
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.

2 participants