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

(PXP-9480): Support merge param for PUT /resource endpoint #143

Merged
merged 5 commits into from
Feb 15, 2022

Conversation

johnfrancismccann
Copy link
Contributor

@johnfrancismccann johnfrancismccann commented Feb 11, 2022

Jira Ticket: PXP-9480

As part of improving DRS endpoint performance, to enable creating multiple study resources with a single request and not have existing /programs subresources overwritten, support a merge param for the PUT /resource endpoint.

Corresponding PRs

New Features

  • Support merge param for PUT /resource endpoint so that existing subresources are not overwritten

@coveralls
Copy link

coveralls commented Feb 11, 2022

Coverage Status

Coverage decreased (-0.05%) to 75.159% when pulling e7a028b on feat/update-resource-with-merge into ac7fbbc on master.

@@ -1105,6 +1105,35 @@ func TestServer(t *testing.T) {
getResourceWithPath(t, "/Godel,/completeness_theorem")
})

t.Run("Merge", func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

we could maybe add one more test or command in here that updates an existing subresource instead of top level. So like update the dog resource, add goldenretriever or something. What's the behavior if you do that but leave out corgi? I assume it also stays around?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah the expected behavior would be that corgi stays around.

@johnfrancismccann johnfrancismccann merged commit d15531c into master Feb 15, 2022
@johnfrancismccann johnfrancismccann deleted the feat/update-resource-with-merge branch February 15, 2022 17:23
@johnfrancismccann johnfrancismccann mentioned this pull request Feb 16, 2022
15 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.

3 participants