Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
202 changes: 101 additions & 101 deletions .devops/code-review-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,101 +1,101 @@
# Azure DevOps pipeline to build, check source codes and run tests.
#
# To make Danger JS run on a pull request you need to add the following pipeline
# variable and set it with a GitHub access token (scope public_repo); otherwise
# set its value to 'skip' without marking it secret:
# - DANGER_GITHUB_API_TOKEN
#

variables:
NODE_VERSION: '16.10.0'
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
# Execute agents (jobs) on latest Ubuntu version.
vmImageNameDefault: 'ubuntu-latest'

# Automatically triggered on PR
# https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema%2Cparameter-schema#pr-trigger
trigger:
- main
- release-*

pr:
- '*'

resources:
repositories:
- repository: pagopaCommons
type: github
name: pagopa/azure-pipeline-templates
ref: refs/tags/v18
endpoint: 'io-azure-devops-github-ro'
- repository: selfcareCommon
type: github
name: pagopa/selfcare-common-frontend
ref: refs/heads/main
endpoint: 'io-azure-devops-github-ro'

# Execute agents (jobs) on latest Ubuntu version.
# To change OS for a specific, ovverride "pool" attribute inside the job definition
pool:
vmImage: '$(vmImageNameDefault)'

stages:
- stage: Build
dependsOn: []
jobs:
- job: make_build
steps:
- template: .devops/azure-templates/setup-yarn-cache.yml@selfcareCommon
- template: templates/node-job-setup/template.yaml@pagopaCommons
parameters:
nodeVersion: $(NODE_VERSION)
- script: |
yarn generate
yarn build
displayName: 'Build'

- stage: Static_analysis
dependsOn: []
jobs:
- job: lint
steps:
- template: .devops/azure-templates/setup-yarn-cache.yml@selfcareCommon
- template: templates/node-job-setup/template.yaml@pagopaCommons
parameters:
nodeVersion: $(NODE_VERSION)
- script: |
yarn lint
displayName: 'Lint'

- job: danger
condition: and(
succeeded(),
ne(variables['DANGER_GITHUB_API_TOKEN'], 'skip')
)
steps:
- template: .devops/azure-templates/setup-yarn-cache.yml@selfcareCommon
- template: templates/node-job-setup/template.yaml@pagopaCommons
parameters:
nodeVersion: $(NODE_VERSION)

- bash: |
yarn danger ci
env:
DANGER_GITHUB_API_TOKEN: '$(DANGER_GITHUB_API_TOKEN)'
displayName: 'Danger CI'

# B) Run unit tests if there is a push or pull request on any branch.
- stage: Test
dependsOn: []
jobs:
- job: unit_tests
steps:
- template: .devops/azure-templates/setup-yarn-cache.yml@selfcareCommon
- template: templates/node-job-setup/template.yaml@pagopaCommons
parameters:
nodeVersion: $(NODE_VERSION)

- script: |
yarn generate
yarn test:coverage --watchAll=false
displayName: 'Unit tests exec'
# Azure DevOps pipeline to build, check source codes and run tests.
#
# To make Danger JS run on a pull request you need to add the following pipeline
# variable and set it with a GitHub access token (scope public_repo); otherwise
# set its value to 'skip' without marking it secret:
# - DANGER_GITHUB_API_TOKEN
#
variables:
NODE_VERSION: '20.18.1'
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
# Execute agents (jobs) on latest Ubuntu version.
vmImageNameDefault: 'ubuntu-latest'
# Automatically triggered on PR
# https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema%2Cparameter-schema#pr-trigger
trigger:
- main
- release-*
pr:
- '*'
resources:
repositories:
- repository: pagopaCommons
type: github
name: pagopa/azure-pipeline-templates
ref: refs/tags/v18
endpoint: 'io-azure-devops-github-ro'
- repository: selfcareCommon
type: github
name: pagopa/selfcare-common-frontend
ref: refs/heads/main
endpoint: 'io-azure-devops-github-ro'
# Execute agents (jobs) on latest Ubuntu version.
# To change OS for a specific, ovverride "pool" attribute inside the job definition
pool:
vmImage: '$(vmImageNameDefault)'
stages:
- stage: Build
dependsOn: []
jobs:
- job: make_build
steps:
- template: .devops/azure-templates/setup-yarn-cache.yml@selfcareCommon
- template: templates/node-job-setup/template.yaml@pagopaCommons
parameters:
nodeVersion: $(NODE_VERSION)
- script: |
yarn generate
yarn build
displayName: 'Build'
- stage: Static_analysis
dependsOn: []
jobs:
- job: lint
steps:
- template: .devops/azure-templates/setup-yarn-cache.yml@selfcareCommon
- template: templates/node-job-setup/template.yaml@pagopaCommons
parameters:
nodeVersion: $(NODE_VERSION)
- script: |
yarn lint
displayName: 'Lint'
- job: danger
condition: and(
succeeded(),
ne(variables['DANGER_GITHUB_API_TOKEN'], 'skip')
)
steps:
- template: .devops/azure-templates/setup-yarn-cache.yml@selfcareCommon
- template: templates/node-job-setup/template.yaml@pagopaCommons
parameters:
nodeVersion: $(NODE_VERSION)
- bash: |
yarn danger ci
env:
DANGER_GITHUB_API_TOKEN: '$(DANGER_GITHUB_API_TOKEN)'
displayName: 'Danger CI'
# B) Run unit tests if there is a push or pull request on any branch.
- stage: Test
dependsOn: []
jobs:
- job: unit_tests
steps:
- template: .devops/azure-templates/setup-yarn-cache.yml@selfcareCommon
- template: templates/node-job-setup/template.yaml@pagopaCommons
parameters:
nodeVersion: $(NODE_VERSION)
- script: |
yarn generate
yarn test:coverage --watchAll=false
displayName: 'Unit tests exec'
2 changes: 1 addition & 1 deletion .devops/deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ parameters:
default: minor

variables:
NODE_VERSION: '16.10.0'
NODE_VERSION: '20.18.1'
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
# Execute agents (jobs) on latest Ubuntu version.
vmImageNameDefault: 'ubuntu-latest'
Expand Down
85 changes: 19 additions & 66 deletions openApi/dashboard-api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,72 +390,6 @@
} ]
}
},
"/v1/institutions/{institutionId}/geographicTaxonomy" : {
"put" : {
"tags" : [ "institutions" ],
"summary" : "updateInstitutionGeographicTaxonomyDeprecated",
"description" : "Service to update the geographic taxonomy of an onboarded institution",
"operationId" : "updateInstitutionGeographicTaxonomyDeprecatedUsingPUT",
"parameters" : [ {
"name" : "institutionId",
"in" : "path",
"description" : "Institution's unique internal identifier",
"required" : true,
"style" : "simple",
"schema" : {
"type" : "string"
}
} ],
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/GeographicTaxonomyListDto"
}
}
}
},
"responses" : {
"200" : {
"description" : "OK"
},
"400" : {
"description" : "Bad Request",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
},
"401" : {
"description" : "Unauthorized",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
},
"500" : {
"description" : "Internal Server Error",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
}
},
"deprecated" : true,
"security" : [ {
"bearerAuth" : [ "global" ]
} ]
}
},
"/v1/institutions/{institutionId}/institutions" : {
"get" : {
"tags" : [ "institutions" ],
Expand Down Expand Up @@ -2532,6 +2466,16 @@
"schema" : {
"type" : "string"
}
}, {
"name" : "roles",
"in" : "query",
"description" : "roles",
"required" : false,
"style" : "form",
"explode" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
Expand Down Expand Up @@ -4059,10 +4003,19 @@
"title" : "ProductUserResource",
"type" : "object",
"properties" : {
"createdAt" : {
"type" : "string",
"description" : "User's creation date associated with a product",
"format" : "date-time"
},
"email" : {
"type" : "string",
"description" : "User's personal email"
},
"fiscalCode" : {
"type" : "string",
"description" : "User's fiscal code"
},
"id" : {
"type" : "string",
"description" : "User's unique identifier",
Expand Down
Loading