Skip to content

Commit

Permalink
Merge pull request #3536 from sap-labs-france/master-labs
Browse files Browse the repository at this point in the history
Version 2.7.7
  • Loading branch information
ClaudeROSSI authored Apr 13, 2023
2 parents d61dfea + bd514fd commit 72064f3
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 13 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Up @@ -2,7 +2,7 @@
"name": "ev-dashboard",
"description": "Dashboard for monitoring the EV Charging Infrastructure",
"homepage": "https://github.com/sap-labs-france/ev-dashboard",
"version": "2.7.6",
"version": "2.7.7",
"engines": {
"node": "^16.15.x",
"npm": "^8.11.x"
Expand Down
14 changes: 14 additions & 0 deletions src/app/release-notes/release-notes.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ export class ReleaseNotesComponent {
}
public buildReleaseNotes() {
this.releaseNotes = [
{
version: '2.7.7',
date: new Date('2023-04-04'),
componentChanges: [
{
name: 'Dashboard',
changes: [
'Rate Limiter - new settings to prevent DDOS',
'Monitoring - new metrics on notifications',
'Smart Charging - fix - targetStateOfCharge can be null'
],
},
],
},
{
version: '2.7.6',
date: new Date('2023-03-28'),
Expand Down
17 changes: 7 additions & 10 deletions src/app/services/central-server.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1697,18 +1697,15 @@ export class CentralServerService {
}

public forceSynchronizeUserForBilling(userID: string): Observable<ActionResponse> {
this.checkInit();
// Execute the REST service
return this.httpClient.post<ActionResponse>(`${this.centralRestServerServiceSecuredURL}/${ServerAction.BILLING_FORCE_SYNCHRONIZE_USER}`,
{ id: userID },
{
headers: this.buildHttpHeaders(),
})
.pipe(
catchError(this.handleHttpError),
);
const url = this.buildRestEndpointUrl(RESTServerRoute.REST_BILLING_USER_SYNCHRONIZE, { id: userID });
return this.httpClient.patch<ActionResponse>(url, {}, {
headers: this.buildHttpHeaders(),
}).pipe(
catchError(this.handleHttpError),
);
}


public getBillingTaxes(): Observable<BillingTaxDataResult> {
this.checkInit();
// Execute the REST service
Expand Down
5 changes: 5 additions & 0 deletions src/app/types/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
export enum ServerAction {
UNKNOWN_ACTION = 'Unknown',

RATE_LIMITER = 'RateLimiter',
SHIELD ='Shield',

SAP_CONCUR_REQUEST = 'SapConcurRequest',
RECAPTCHA_REQUEST = 'RecaptchaRequest',
GREENCOM_REQUEST = 'GreencomRequest',
Expand Down Expand Up @@ -359,6 +362,7 @@ export enum ServerAction {
TENANTS = 'Tenants',
TENANT = 'Tenant',
TENANT_UPDATE = 'TenantUpdate',
TENANT_UPDATE_DATA = 'TenantUpdateData',
TENANT_DELETE = 'TenantDelete',
TENANT_LOGO = 'TenantLogo',

Expand Down Expand Up @@ -692,6 +696,7 @@ export enum RESTServerRoute {

REST_BILLING_SETTING = 'billing-setting', // GET and PUT
REST_BILLING_CHECK = 'billing/check',
REST_BILLING_USER_SYNCHRONIZE = 'billing/users/:id/synchronize',
REST_BILLING_CLEAR_TEST_DATA = 'billing/clearTestData',

REST_BILLING_TAXES = 'billing/taxes',
Expand Down

0 comments on commit 72064f3

Please sign in to comment.