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: compare ID instead of whole object to avoid badly cast fields #21

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

mariajgrimaldi
Copy link
Contributor

@mariajgrimaldi mariajgrimaldi commented Nov 15, 2023

Description

This PR fixes a bug when synchronizing course assets with the xblock state. One of the metadata fields didn't match the type (I think file_size from the frontend was cast to string), so the handler moved the recently uploaded files to the unpublished directory.

Testing instructions

  1. Upload a file to the root directory
  2. Save
  3. Edit block, you should see the file

@mariajgrimaldi mariajgrimaldi requested a review from a team November 15, 2023 23:22
Copy link
Contributor

@johnvente johnvente left a comment

Choose a reason for hiding this comment

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

LGTM

@mariajgrimaldi mariajgrimaldi merged commit a6fa6c6 into main Nov 16, 2023
@mariajgrimaldi mariajgrimaldi deleted the MJG/avoid-casting-filesize branch November 24, 2023 22:26
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