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

Refactor/patch object on save #354

Merged
merged 9 commits into from
Feb 28, 2022
Merged

Conversation

genie9
Copy link
Contributor

@genie9 genie9 commented Feb 16, 2022

Description

Move responsibility of adding an object to a folder on object creation and update from frontend to object endpoint.

###Related issues
Closes #335

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
    Frontend now should add folder ID as a query parameter with object POST.

Changes Made

Folder id is now required query param with object POST.
A folder is patched after an object is created and updated.
Adds extraction of title for folder's objects display title.

Testing

  • Integration Tests

Filename is needed for db entry (fileName and displayTitle)
when new object created from file and is assigned to folder.
Moving responsibility for adding newly created object to a folder from frontend to object endpoint.
Now folder id is required query parameter with POST object/.
Tests updated.
@genie9 genie9 force-pushed the refactor/patch-object-on-save branch from 135af96 to 2b078c9 Compare February 23, 2022 14:22
@genie9 genie9 mentioned this pull request Feb 23, 2022
4 tasks
@blankdots blankdots mentioned this pull request Feb 24, 2022
6 tasks
Copy link
Contributor

@blankdots blankdots left a comment

Choose a reason for hiding this comment

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

seems front-end is ready with updates CSCfi/metadata-submitter-frontend#672
@genie9 can we merge this ?

@blankdots blankdots linked an issue Feb 24, 2022 that may be closed by this pull request
1 task
@genie9 genie9 merged commit 5d3daa8 into develop Feb 28, 2022
@genie9 genie9 deleted the refactor/patch-object-on-save branch February 28, 2022 08:10
@blankdots blankdots mentioned this pull request Apr 7, 2022
6 tasks
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.

Extend object endpoint to handle patching
2 participants