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

fix(course duplication): fix logo not duplicated due to carrierwave upgrade #4179

Merged
merged 1 commit into from Nov 18, 2021

Conversation

ekowidianto
Copy link
Member

@ekowidianto ekowidianto commented Nov 18, 2021

Fixes #4167 and #3677

As per carrierwave v2.1.0, carrierwave image mounter that retains uploaded file as a cache is reset upon reload (in our case it is new_course.reload) which then causes course logo to be unduplicated
carrierwaveuploader/carrierwave#2482 (comment)

Copy link
Member

@zhuhanming zhuhanming left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for fixing this!

@zhuhanming zhuhanming merged commit 4b8668a into master Nov 18, 2021
@zhuhanming zhuhanming deleted the eko/fix-logo-duplication-issue branch November 18, 2021 03:31
@zhuhanming
Copy link
Member

Can we also extend this to achievement badge duplication?

@ekowidianto
Copy link
Member Author

This won't affect the achievement badge duplication since there is no reload done on the duplicated achivement object.

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.

Image duplication fails during course duplication
2 participants