Skip to content
Snippets Groups Projects
Commit 9ad28fb9 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #254 change limit history to 25000

parent bbe519e7
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
<mat-spinner style="margin:auto;"></mat-spinner>
</div>
<mat-card *ngIf="!loading" class="card-app-content">
<div class="alert alert-warning" role="alert" [innerHTML]="lang.limitDataReached" *ngIf="data.length == 50000"></div>
<div class="alert alert-warning" role="alert" [innerHTML]="lang.limitDataReached" *ngIf="limitExceeded"></div>
<div class="row">
<div class="col-md-6 col-xs-6">
<mat-form-field>
......
......@@ -21,7 +21,7 @@
<mat-spinner style="margin:auto;"></mat-spinner>
</div>
<mat-card *ngIf="!loading" class="card-app-content">
<div class="alert alert-warning" role="alert" [innerHTML]="lang.limitDataReached" *ngIf="data.length == 50000">
<div class="alert alert-warning" role="alert" [innerHTML]="lang.limitDataReached" *ngIf="limitExceeded">
</div>
<div class="row">
<div class="col-md-6 col-xs-6">
......
......@@ -21,6 +21,7 @@ export class BatchHistoryAdministrationComponent implements OnInit {
coreUrl : string;
lang : any = LANG;
loading : boolean = false;
limitExceeded : boolean = false;
data : any[] = [];
......@@ -62,6 +63,7 @@ export class BatchHistoryAdministrationComponent implements OnInit {
this.http.get(this.coreUrl + 'rest/batchHistories', {params: {"startDate" : (this.startDate.getTime() / 1000).toString(), "endDate" : (this.endDate.getTime() / 1000).toString()}})
.subscribe((data: any) => {
this.data = data['batchHistories'];
this.limitExceeded = data['limitExceeded'];
this.loading = false;
setTimeout(() => {
this.dataSource = new MatTableDataSource(this.data);
......@@ -80,6 +82,7 @@ export class BatchHistoryAdministrationComponent implements OnInit {
this.http.get(this.coreUrl + 'rest/batchHistories', {params: {"startDate" : (this.startDate.getTime() / 1000).toString(), "endDate" : (this.endDate.getTime() / 1000).toString()}})
.subscribe((data: any) => {
this.data = data['batchHistories'];
this.limitExceeded = data['limitExceeded'];
this.loading = false;
setTimeout(() => {
this.dataSource = new MatTableDataSource(this.data);
......
......@@ -21,6 +21,7 @@ export class HistoryAdministrationComponent implements OnInit {
coreUrl : string;
lang : any = LANG;
loading : boolean = false;
limitExceeded : boolean = false;
data : any[] = [];
startDate : Date = new Date();
......@@ -61,6 +62,7 @@ export class HistoryAdministrationComponent implements OnInit {
this.http.get(this.coreUrl + 'rest/histories', {params: {"startDate" : (this.startDate.getTime() / 1000).toString(), "endDate" : (this.endDate.getTime() / 1000).toString()}})
.subscribe((data: any) => {
this.data = data['histories'];
this.limitExceeded = data['limitExceeded'];
this.loading = false;
setTimeout(() => {
this.dataSource = new MatTableDataSource(this.data);
......@@ -79,6 +81,7 @@ export class HistoryAdministrationComponent implements OnInit {
this.http.get(this.coreUrl + 'rest/histories', {params: {"startDate" : (this.startDate.getTime() / 1000).toString(), "endDate" : (this.endDate.getTime() / 1000).toString()}})
.subscribe((data: any) => {
this.data = data['histories'];
this.limitExceeded = data['limitExceeded'];
this.loading = false;
setTimeout(() => {
this.dataSource = new MatTableDataSource(this.data);
......
......@@ -172,7 +172,7 @@ export const LANG_EN = {
"label" : "Label",
"lastname" : "Lastname",
"life_cycle" : "Life cycle",
"limitDataReached" : "You have reached max display datas (<b>50000 datas</b>), refine your <b>date range</b>",
"limitDataReached" : "You have reached max display datas (<b>25000 datas</b>), refine your <b>date range</b>",
"linkEntityToUserInfo" : "Click on entity of tree to link / unlink to this user",
"linkGroup" : "Link a group",
"listTemplatesRolesUpdated" : "Roles updated",
......
......@@ -186,7 +186,7 @@ export const LANG_FR = {
"last" : "dernier",
"lastname" : "Nom",
"life_cycle" : "Cycle de vie",
"limitDataReached" : "Vous avez atteint la limite d'affichage (<b>50000 entrées</b>), veuillez affiner votre <b>plage de dates</b>",
"limitDataReached" : "Vous avez atteint la limite d'affichage (<b>25000 entrées</b>), veuillez affiner votre <b>plage de dates</b>",
"linkEntityToUserInfo" : "Cliquez sur une entité de l'arborescence pour l'associer / dissocier à l'utilisateur",
"linkGroup" : "Associer un groupe",
"listTemplatesRolesUpdated" : "Rôles modifiés",
......@@ -354,7 +354,7 @@ export const LANG_FR = {
"updateStatus" : "Changement de statut de courrier",
"updateStatusInformationsChrono" : "En saisissant le NUMÉRO CHRONO du document, vous modifierez le statut du courrier. Le courrier sera disponible dans la bannette des utilisateurs auquel il était affecté suivant le statut que vous aurez défini.",
"updateStatusInformationsGed" : "En saisissant l'IDENTIFIANT GED du document, vous modifierez le statut du courrier. Le courrier sera disponible dans la bannette des utilisateurs auquel il était affecté suivant le statut que vous aurez défini.",
"uploadSignFile" : "Déposer une image sur ce cadre ou cliquer pour parcourir vos fichiers (Formats JPG....)",
"uploadSignFile" : "Déposer une image sur ce cadre ou cliquer pour parcourir vos fichiers (JPG, PNG, JPEG)",
"uploadSignFileInfo" : "Cliquer pour ajouter une signature depuis votre poste",
"usedInActionPage" : "Action sur la page d'action",
"usedInBasketlist" : "Action sur la liste de résultat",
......
......@@ -36,7 +36,7 @@ class BatchHistoryController
return $response->withStatus(400)->withJson(['errors' => 'Bad Request']);
}
$maxRequestSize = 50000;
$maxRequestSize = 25000;
$batchHistories = BatchHistoryModel::get([
'select' => ['event_date', 'module_name', 'total_processed', 'total_errors', 'info'],
......
......@@ -40,7 +40,7 @@ class HistoryController
return $response->withStatus(400)->withJson(['errors' => 'Bad Request']);
}
$maxRequestSize = 50000;
$maxRequestSize = 25000;
$histories = HistoryModel::get([
'select' => ['event_date', 'event_type', 'user_id', 'info', 'remote_ip'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment