Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-6747

Fix setAdvancedFeatures when creating a Studio project with GraphQL API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2022.1.4
    • Fix Version/s: 2022.2.0
    • Component/s: Git Access

      Description

      Making a call like (token has been changed)

      curl --location --request POST 'https://connect.nuxeo.com/nuxeo/site/nos/graphql' \
      --header 'Content-Type: application/json' \
      -u 'tmartins:88866d8d129c9934d45f50265AZEcaded376d71dfe74d83b1c4189eb9ca72799' \
      --data-raw '{
          "operationName": "addProject",
          "variables": {
              "project": {
                  "orgId": "IronMountainTraining",
                  "id": "ins2-studio-automation-test-tm-4",
                  "name": "Ins2 Studio Automation Test TM 4",
                  "advanced_features": true,
                  "owners": [
                      "suresh.sivanantham@ironmountain.com",
                      "ins2.service.account@ironmountain.com"
                  ]
              }
          },
          "query": "mutation addProject($project: ProjectCreationInput!) { addProject(project: $project) { id name org { id } gitUrl } }"
      }'
       

      won't set the advanced features on the new project.

      Maybe a save of the studioProject is missing after https://github.com/nuxeo/nos/blob/dc67c7061735fbfd29f296778eb62ef15802c7a7/connect/nuxeo-connect-rest-api/src/main/java/com/nuxeo/connect/rest/service/datafetcher/MutationAddProject.java#L130

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: