Allow GraphQL Query/Modify of Duo Context Exclusion for Project

We need a GraphQL interface to query whether or not a file is excluded from Duo context for a given project

Would query the data stored on project settings

Context exclusion rules would be modified via the existing project settings mutation

Requirements

  • Must be able to query and modify multiple paths at once for a given project
  • Query results should be cached, performance is key here as this will be called from the IDE for the UI
  • Add an interface for querying whether a project excludes no context (or all context), so the IDE can avoid calls on projects that allow everything or nothing

Queries

  • project.duoContextAllowed = ANY, NONE, SOME
  • duoContextAllowed(project, [paths]) -> { paths: true/false }
Edited by 🤖 GitLab Bot 🤖