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

Support file deletion for data-url #4030

Merged
merged 9 commits into from
Jan 10, 2024
Merged

Conversation

yuki-js
Copy link
Contributor

@yuki-js yuki-js commented Jan 8, 2024

Reasons for making this change

Fix #3957
Fix #4033

Before this PR, uploaded files cannot be deleted.
This PR adds file deletion button, also changes the data flow into the value centric one.

Also corrected test descriptions for file widget attributes. The descriptions for two tests in StringField.test.jsx were reversed.

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

@heath-freenome
Copy link
Member

@yuki-js Can you explain how Jest was not working? I don't feel comfortable not having tests for this new feature

@yuki-js
Copy link
Contributor Author

yuki-js commented Jan 9, 2024

Tests became successful (idk why the previous tests failed). I added test cases. Please have a look.

The descriptions for two tests in StringField.test.jsx were reversed.
CHANGELOG.md Outdated
@@ -15,6 +15,7 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
should change the heading of the (upcoming) version to include a major version bump.

-->

# 5.15.3
Copy link
Member

Choose a reason for hiding this comment

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

I just switched this to 5.16.0 in my recently merged PR, can you resolve conflicts. Also, it seems much of this file was reformatted. Please revert all of the changes below 5.15.2. Thanks!

@heath-freenome
Copy link
Member

@yuki-js can you resolve conflicts and revert most of the unnecessary formatting changes to CHANGELOG.md? Thanks!

@yuki-js
Copy link
Contributor Author

yuki-js commented Jan 10, 2024

I apologize for the oversight. Fixed a changelog, also merged #4033 into this PR.

@heath-freenome
Copy link
Member

@yuki-js For some reason the build is now failing. Can you please investigate? Thanks

@yuki-js
Copy link
Contributor Author

yuki-js commented Jan 10, 2024

It's odd that an error happens in v16, and a seemingly unrelated module has failed. I'll investigate but could you rerun the failed job? It might have a timing issue due to Nx's concurrency. Just a heads up.

@heath-freenome
Copy link
Member

heath-freenome commented Jan 10, 2024

@yuki-js I reran it already. I'll try one more time. In the meantime can you run the build locally and see if it works? The error is in core which you are changing

@heath-freenome
Copy link
Member

Ok, now it works... hmmm

Copy link
Contributor

@nickgros nickgros left a comment

Choose a reason for hiding this comment

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

LGTM

@nickgros nickgros merged commit 1bc40b0 into rjsf-team:main Jan 10, 2024
4 checks passed
@yuki-js yuki-js deleted the file-deletion branch January 11, 2024 17:36
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.

Files cannot be removed
3 participants