-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[cvat-core] support cloud storage #3313
Conversation
The cvat-core part looks fine. Let's wait for server part to be merged and during UI development see if the API should be adjusted for convenience. |
There are |
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.
I do not have important ideas about this PR. Actually I already reviewed it at the most. Let's wait till server is merged and then I am ready to merge it.
cvat-core/src/session.js
Outdated
set: (cloudStorageId) => { | ||
if (!Number.isInteger(cloudStorageId) || cloudStorageId <= 0) { | ||
throw new ArgumentError('Value must be a positive integer'); | ||
} | ||
data.cloud_storage_id = cloudStorageId; | ||
}, |
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.
Since we can't change cloudStorageId, I would suggest to do this field readonly (cloud_storage_id is set via constructor now). What do you think?
…error message from the server
cvat-core/src/session.js
Outdated
// set: (cloudStorageId) => { | ||
// if (!Number.isInteger(cloudStorageId) || cloudStorageId <= 0) { | ||
// throw new ArgumentError('Value must be a positive integer'); | ||
// } | ||
// data.cloud_storage_id = cloudStorageId; | ||
// }, |
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.
Do you need this commented code?
yes, I will add tests |
Motivation and context
Related issue: #863
TODOs:
Depends on Extension of cloud storage server part #3386
How has this been tested?
Checklist
develop
branch- [ ] I have updated the documentation accordinglycvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.