Onboarding - Add Jitsu key to project GraphQL type
Proposal
The frontend is going to need to retrieve the Jitsu key from the projects settings to render the key in the instrumentation instructions.
We should add this key to https://docs.gitlab.com/ee/api/graphql/reference/#project in the same way that mergeCommitTemplate has been added.
Implementation plan
- For GitLab Premium, with the
:cube_api_proxyfeature flag enabled, return thejitsu_keyfrom project settings if it is set. - For everyone else, return
nil. - Add the field to the
project_typefor GraphQL. -
Delegate retrieval of the
jitsu_keyto:project_setting. - Update specs as required.
Edited by Robert Hunt