-
Notifications
You must be signed in to change notification settings - Fork 35
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
fix(controller): remove headers from model download api #1797
fix(controller): remove headers from model download api #1797
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1797 +/- ##
============================================
- Coverage 82.14% 82.13% -0.02%
+ Complexity 1967 1966 -1
============================================
Files 355 355
Lines 18989 18989
Branches 1037 1038 +1
============================================
- Hits 15599 15596 -3
- Misses 2957 2958 +1
- Partials 433 435 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
9f9d256
to
5ef40d3
Compare
5ef40d3
to
830d942
Compare
Should the upload interface match the download? |
830d942
to
d4b8354
Compare
81bd022
to
815a754
Compare
done |
server/controller/src/main/java/ai/starwhale/mlops/api/DatasetApi.java
Outdated
Show resolved
Hide resolved
server/controller/src/main/java/ai/starwhale/mlops/domain/model/mapper/ModelVersionMapper.java
Outdated
Show resolved
Hide resolved
4cd2a74
to
f58ae51
Compare
f58ae51
to
83bc016
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Unified the upload/download api for model and dataset:
changed param from 'part_name' to 'partName'
changed headers from
'X-SW-DOWNLOAD-TYPE','X-SW-DOWNLOAD-OBJECT-NAME','X-SW-DOWNLOAD-OBJECT-PATH','X-SW-DOWNLOAD-OBJECT-HASH'
to'desc','partName','path','signature'
and the type from header to param.Modules
Checklist