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

opensearchapi: split SnapshotGetResp into sub structs #603

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

Jakob3xD
Copy link
Collaborator

Description

Split the SnapshotGetResp into more sub structs so they can be reused by the user.
This is for example needed when looping over SnapshotGetResp.Snapshots and want to give the struct to a function.

This is actually a more general issue affecting more structs that could be solved by code generation in the future.

Issues Resolved

None

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.99%. Comparing base (06a6dc8) to head (21b8b0f).
Report is 60 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #603       +/-   ##
===========================================
+ Coverage   57.29%   67.99%   +10.70%     
===========================================
  Files         315      376       +61     
  Lines        9823     8862      -961     
===========================================
+ Hits         5628     6026      +398     
+ Misses       2902     1555     -1347     
+ Partials     1293     1281       -12     
Flag Coverage Δ
integration 60.35% <ø> (+9.51%) ⬆️
unit 15.37% <ø> (+2.53%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
opensearchapi/api_snapshot-get.go 100.00% <ø> (ø)

... and 274 files with indirect coverage changes

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Rebase after #604?

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
@Jakob3xD Jakob3xD merged commit 25d17e8 into opensearch-project:main Aug 26, 2024
54 checks passed
@Jakob3xD Jakob3xD deleted the jh-snapshot branch August 26, 2024 15:44
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