-
Notifications
You must be signed in to change notification settings - Fork 6
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: send dataset current image url when updating the dataset (#1861) #1887
Conversation
…not changing the dataset image
You can access the deployment of this PR at https://renku-ci-ui-1887.dev.renku.ch |
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.
The code changes look good, but when testing I encountered some problems, and maybe we can fix them as part of this issue, since it is so far not too big.
(on dev, I can create a dataset and supply an image in the form -- create succeeds, but the image is not is not actually added 🤷 )
- Once I have added an image to the form, there is no way to remove the image
@ciyer Thanks for the review and testing, indeed there was something to fix in the creation of the dataset. Fixed in the last commit. |
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.
Works great now! 🙏 Do not worry about the acceptance tests, those are fixed in another PR. You can merge even if they do not pass.
Tearing down the temporary RenkuLab deplyoment for this PR. |
PR to send the url of the current image when updating the dataset so as not to delete the existing image.
Currently the endpoint for updating a dataset requests the url of the current image from the dataset to keep that image, otherwise it deletes the image. This is a workaround for this case, but the API should not delete the image if it is not included in the dataset object when updating a dataset.
closes #1861
/deploy #persist