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

feat: save image names to keep track of unicity #16

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

mariajgrimaldi
Copy link
Contributor

@mariajgrimaldi mariajgrimaldi commented Oct 18, 2023

Description

This PR adds a list of image names to the xblock definition to easily keep track of already-existent image names, this way, we can have duplicates without the system failing.

How to test

  1. Create an imagesgallery component
  2. Try uploading two images with the same name. The component should work.

This PR also fixes the following bug: try deleting two images and re-uploading them in a single operation (without closing the edit Studio view). You should be able to see the images you uploaded

@mariajgrimaldi mariajgrimaldi requested a review from a team October 18, 2023 22:02
@johnvente
Copy link
Contributor

LGTM! looking good!

@mariajgrimaldi mariajgrimaldi merged commit 7aed57c into main Oct 18, 2023
4 checks passed
@mariajgrimaldi mariajgrimaldi deleted the MJG/consider-unique-names branch November 13, 2023 19:10
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