Skip to content

Frontend- Mark project as CI resource

We need to add the ability to mark a project as a CI resource in the settings. This is a one off action so we need to consider:

  • When initially loading the page, we will need to fetch isCatalogResource from the ProjectType entity. If it returns true, then we disable the option and show a message that this project is already a ci resource and it cannot be changed.
  • There is a modal to confirm this action since it is a one off action
  • When sending the request, we have the graphQL mutation Mutation.catalogResourcesCreate which will allow us to mark a project as a resource.
  • If there is an error with the mutation, shows an error message
  • If it succeeds, shows a confirmation banner
Edited by Frédéric Caplette