Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Merge pull request #2671 from sap-labs-france/master-qa
Browse files Browse the repository at this point in the history
Merge master-qa
  • Loading branch information
LucasBrazi06 authored Jul 18, 2021
2 parents 7e8c60b + f3f16c1 commit 64c72c6
Show file tree
Hide file tree
Showing 54 changed files with 920 additions and 582 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ev-server",
"version": "2.4.76",
"version": "2.4.77",
"engines": {
"node": "14.x.x",
"npm": "6.x.x"
Expand Down
101 changes: 89 additions & 12 deletions src/assets/server/rest/v1/docs/e-mobility-oas.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,18 +708,33 @@
{
"$ref": "#/components/parameters/EndDateTime"
},
{
"$ref": "#/components/parameters/WithChargingStation"
},
{
"$ref": "#/components/parameters/ChargingStationIDs"
},
{
"$ref": "#/components/parameters/ConnectorIDs"
},
{
"$ref": "#/components/parameters/WithCar"
},
{
"$ref": "#/components/parameters/WithUser"
},
{
"$ref": "#/components/parameters/UserIDs"
},
{
"$ref": "#/components/parameters/WithTag"
},
{
"$ref": "#/components/parameters/TagIDs"
},
{
"$ref": "#/components/parameters/VisualTagIDs"
},
{
"$ref": "#/components/parameters/SiteIDs"
},
Expand Down Expand Up @@ -890,6 +905,15 @@
"parameters": [
{
"$ref": "#/components/parameters/transactionID"
},
{
"$ref": "#/components/parameters/WithCar"
},
{
"$ref": "#/components/parameters/WithUser"
},
{
"$ref": "#/components/parameters/WithTag"
}
],
"tags": [
Expand Down Expand Up @@ -968,6 +992,15 @@
"schema": {
"type": "boolean"
}
},
{
"$ref": "#/components/parameters/WithCar"
},
{
"$ref": "#/components/parameters/WithUser"
},
{
"$ref": "#/components/parameters/WithTag"
}
],
"tags": [
Expand Down Expand Up @@ -1736,24 +1769,30 @@
"type": "string",
"example": ""
},
"userID": {
"type": "string",
"example": ""
},
"args": {
"type": "object",
"properties": {
"tagID": {
"type": "string",
"description": "Required. The identifier that Charge Point must use to start a transaction.",
"description": "The identifier that Charge Point must use to start a transaction.",
"example": "123456"
},
"visualTagID": {
"type": "string",
"description": "The identifier that Charge Point must use to start a transaction.",
"example": "123456-123456"
},
"connectorId": {
"type": "integer",
"description": "Optional. Number of the connector on which to start the transaction. connectorId SHALL be > 0",
"minimum": 1,
"example": 1
}
},
"required": [
"tagID"
]
}
}
},
"required": [
Expand Down Expand Up @@ -2862,13 +2901,10 @@
}
},
{
"in": "query",
"name": "TagID",
"description": "Pipe separated Tag IDs",
"required": false,
"schema": {
"type": "string"
}
"$ref": "#/components/parameters/TagIDs"
},
{
"$ref": "#/components/parameters/VisualTagIDs"
},
{
"in": "query",
Expand Down Expand Up @@ -6206,6 +6242,15 @@
"type": "string"
}
},
"VisualTagIDs": {
"in": "query",
"name": "VisualTagID",
"description": "Pipe separated Visual Tag IDs",
"required": false,
"schema": {
"type": "string"
}
},
"TagIDs": {
"in": "query",
"name": "TagID",
Expand Down Expand Up @@ -6477,6 +6522,38 @@
"type": "boolean"
}
},
"WithTag": {
"in": "query",
"name": "WithTag",
"description": "With tag attribute",
"schema": {
"type": "boolean"
}
},
"WithUser": {
"in": "query",
"name": "WithUser",
"description": "With user attribute",
"schema": {
"type": "boolean"
}
},
"WithCar": {
"in": "query",
"name": "WithCar",
"description": "With car attribute",
"schema": {
"type": "boolean"
}
},
"WithChargingStation": {
"in": "query",
"name": "WithChargingStation",
"description": "With charging station attribute",
"schema": {
"type": "boolean"
}
},
"RefundStatus": {
"in": "query",
"name": "RefundStatus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"carID": {
"$ref": "common.json#/definitions/id"
},
"userID": {
"$ref": "common.json#/definitions/id"
},
"args": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -46,7 +49,12 @@
"$ref": "chargingstation.json#/definitions/chargingProfile/properties/profile/properties/stackLevel"
},
"tagID": {
"$ref": "tag.json#/definitions/id"
"type": "string",
"sanitize": "mongo"
},
"visualTagID": {
"type": "string",
"sanitize": "mongo"
},
"location": {
"type": "string",
Expand Down
4 changes: 4 additions & 0 deletions src/assets/server/rest/v1/schemas/tag/tag-get.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"ID": {
"$ref": "tag.json#/definitions/id"
},
"WithUser": {
"type": "boolean",
"sanitize": "mongo"
},
"ProjectFields": {
"$ref": "common.json#/definitions/projectFields"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@
"type": "boolean",
"sanitize": "mongo"
},
"WithTag": {
"type": "boolean",
"sanitize": "mongo"
},
"WithUser": {
"type": "boolean",
"sanitize": "mongo"
},
"WithCar": {
"type": "boolean",
"sanitize": "mongo"
},
"WithChargingStation": {
"type": "boolean",
"sanitize": "mongo"
},
"ConnectorID": {
"$ref": "chargingstation.json#/definitions/connectorIDs"
},
Expand All @@ -34,11 +50,16 @@
"$ref": "common.json#/definitions/ids"
},
"TagID": {
"$ref": "tag.json#/definitions/ids"
"type": "string",
"sanitize": "mongo"
},
"VisualTagID": {
"type": "string",
"sanitize": "mongo"
},
"StartDateTime": {
"type": "string",
"format":"date-time",
"format": "date-time",
"sanitize": "mongo"
},
"EndDateTime": {
Expand Down Expand Up @@ -67,15 +88,22 @@
"Statistics": {
"type": "string",
"sanitize": "mongo",
"enum": ["refund", "history", "ongoing"]
"enum": [
"refund",
"history",
"ongoing"
]
},
"ReportIDs": {
"$ref": "common.json#/definitions/ids"
},
"Status": {
"type": "string",
"sanitize": "mongo",
"enum": ["completed", "active"]
"enum": [
"completed",
"active"
]
},
"Search": {
"$ref": "common.json#/definitions/search"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"title": "Get user default tag and car",
"type": "object",
"definitions": {
"UserID": {
"$ref": "common.json#/definitions/id"
},
"ProjectFields": {
"$ref": "common.json#/definitions/projectFields"
}
},
"required": [
"UserID"
]
}
5 changes: 3 additions & 2 deletions src/assets/server/rest/v1/schemas/user/users-get.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
"ExcludeSiteID": {
"$ref": "common.json#/definitions/ids"
},
"TagID": {
"$ref": "tag.json#/definitions/ids"
"VisualTagID": {
"type": "string",
"sanitize": "mongo"
},
"Search": {
"$ref": "common.json#/definitions/search"
Expand Down
2 changes: 1 addition & 1 deletion src/async-task/tasks/BillTransactionAsyncTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class BillTransactionAsyncTask extends AbstractAsyncTask {
// Save
await TransactionStorage.saveTransaction(tenant.id, transaction);
} finally {
// Release the lock
// Release the lock
await LockingManager.release(transactionLock);
}
}
Expand Down
Loading

0 comments on commit 64c72c6

Please sign in to comment.