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

UpdateProgram in Gateway #273

Merged
merged 3 commits into from
Jul 16, 2019
Merged

UpdateProgram in Gateway #273

merged 3 commits into from
Jul 16, 2019

Conversation

joneubank
Copy link
Member

There is a hack to deal with a peculiarity of the UpdateProgram service: Before calling update, we call GetProgram to find the current values. The call to UpdateProgram provides all those values for fields that are not desired to be overwritten.

Otherwise, normal gateway service patternz...

@joneubank joneubank requested a review from hlminh2000 July 16, 2019 17:14
@joneubank
Copy link
Member Author

I opened this bug on the program service icgc-argo/program-service#145

It is not blocking this PR or issue as I have a workaround in place, but we should address that bug so we can simplify the implementation here.

@@ -75,6 +75,21 @@ const typeDefs = gql`
admins: [ProgramUserInput!]!
}

input UpdateProgramInput {
# This intentionally does not provide access to submittedDonors or genomicDonors
# Those are maintained by an internal service and should not be updated by any client through the gateway
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@joneubank joneubank merged commit dbecd5a into master Jul 16, 2019
@hlminh2000 hlminh2000 deleted the feat/98-update-program branch August 15, 2019 13: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