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 two bugs in JSON update API #5081

Merged
merged 2 commits into from
Feb 28, 2023
Merged

Fix two bugs in JSON update API #5081

merged 2 commits into from
Feb 28, 2023

Conversation

mbklein
Copy link
Member

@mbklein mbklein commented Feb 24, 2023

  • Make collection_id optional in updates
  • Allow :json_update, media_object for all users who can :edit, media_object

I couldn't figure out how to create test cases for these because I've been away from Rails/Rspec for so long and there don't seem to be any existing test cases for JSON updates via the API to base them off of.

- Make `collection_id` optional in updates
- Allow `:json_update, media_object` for all users who can `:edit, media_object`
@cjcolvar
Copy link
Member

Thanks for submitting this! I can work on adding some tests.

@cjcolvar cjcolvar merged commit 1d484a5 into develop Feb 28, 2023
@cjcolvar cjcolvar deleted the json-update-fixes branch February 28, 2023 20:43
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