Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
2ef5824
Rename variables and comment in English
latta-siae Feb 13, 2025
4a93958
/v1/regard-device-attribute-value-change - value not updating in MWDI…
latta-siae Feb 13, 2025
c07eb44
Merge pull request #1093 from openBackhaul/latta-siae/issue1092
latta-siae Feb 13, 2025
ab5bd1d
Optimize imports,
latta-siae Feb 13, 2025
7ad921e
Clean code for IndividualServicesService
latta-siae Feb 13, 2025
e219f8e
Clean Cycle process
latta-siae Feb 13, 2025
d6b3a33
Clean code, Remove file utility, replace constant strings
latta-siae Feb 17, 2025
e0186b3
Improve routine updateAlarmByTypeAndResource breaking the loop when e…
latta-siae Feb 17, 2025
af23c17
Fix log system
latta-siae Feb 18, 2025
a6df22a
Merge branch 'hot_fixes' into latta-siae/issue1048
latta-siae Feb 18, 2025
e5560f9
optimize the code
latta-siae Mar 11, 2025
912d878
Merge pull request #1120 from openBackhaul/latta-siae/issue1048
latta-siae Mar 14, 2025
1b69213
Remove italian comments and variables name from the code
latta-siae Mar 17, 2025
3ef5391
Use let instead var
latta-siae Mar 18, 2025
35a8be2
Adding Pino logger
latta-siae Mar 18, 2025
379a45c
Add logger to:
latta-siae Mar 18, 2025
fab3c74
Add Logger to NotificationManagement
latta-siae Mar 18, 2025
b1e68e1
Add Logger to ELK routines
latta-siae Mar 18, 2025
6a05543
Update logger in:
latta-siae Mar 18, 2025
76f0585
Remove debugger instruction
latta-siae Mar 18, 2025
21f8798
Fixing the log
latta-siae Mar 19, 2025
77616b0
Fix regression
latta-siae Mar 19, 2025
0fb717b
Fixing routine "retrieveCorrectURL"
latta-siae Mar 20, 2025
59b1d96
Adding logger to IndividualServicesService
latta-siae Mar 20, 2025
a5c33bb
Fixing cacheResponseBuilder
latta-siae Mar 20, 2025
53092a2
Fixing cacheUpdateBuilder
latta-siae Mar 20, 2025
c71e991
Fixing log
latta-siae Mar 20, 2025
c5d2c96
Fix log level
latta-siae Mar 21, 2025
8e226c7
Fix the logs
latta-siae Mar 24, 2025
d58f8b6
Remove extra chars
latta-siae Mar 24, 2025
b49b04c
Remote extra chars in folder "temporarySupportFiles
latta-siae Mar 24, 2025
70e71c2
Use contant for 'node-id'
latta-siae Mar 24, 2025
476cc1d
Fix index alias in cycleProcess: use value from configuration
latta-siae Mar 24, 2025
176f78e
Expand the Elastic search routine
latta-siae Mar 24, 2025
a8d6618
Replace strings using contants
latta-siae Mar 24, 2025
175c24c
Reorder imported libs in IndividualServicesService
latta-siae Mar 24, 2025
a1390c9
Remove log file
latta-siae Mar 31, 2025
0d4b999
fixing the application data path.
latta-siae Apr 2, 2025
b3162f8
Updating Package-lock.json
latta-siae Apr 2, 2025
f0f9cb6
Fixing spec file up to MWDI_1.1.0
latta-siae Apr 4, 2025
b216549
Fix openapi profiles
latta-siae Apr 11, 2025
a58df9c
fixing undefined reference
latta-siae Apr 15, 2025
00712b7
Merge branch 'hot_fixes' of https://github.com/openBackhaul/MicroWave…
latta-siae Apr 15, 2025
2d186d8
/v1/regard-device-attribute-value-change - value not updating in MWDI…
latta-siae Apr 30, 2025
8bebec3
[Ops] observing Bad request error message in docker logs without any …
latta-siae May 5, 2025
8f54447
Add logger before read from ELK
latta-siae May 5, 2025
b07a60e
Adding log when checking mountname
latta-siae May 5, 2025
2fce79f
Add log when UUID is an object
latta-siae May 5, 2025
2b57619
Add logger before ReadRecords (ELK)
latta-siae May 5, 2025
2b6cd03
Update messages
latta-siae May 5, 2025
00b4ee2
Merge pull request #1166 from openBackhaul/latta-siae/issue974
latta-siae May 5, 2025
ae365a9
Adding log.
latta-siae May 5, 2025
f1b59a3
Merge pull request #1167 from openBackhaul/latta-siae/issue947
latta-siae May 5, 2025
2701175
Update .gitignore for vscode
latta-siae May 5, 2025
b843080
Updated cacheUpdateBuilder
lubrano-siae May 8, 2025
bce0bfc
/v1/regard-device-attribute-value-change - value not updating in MWDI…
latta-siae May 12, 2025
e1a46ba
Merge branch 'hot_fixes' into latta-siae/issue1092
latta-siae May 12, 2025
0c22b1c
[NotificationService] Cleared alarm notification is not updating the …
latta-siae May 13, 2025
11d905d
Fix issue when path is short
latta-siae May 13, 2025
7901b8b
remove italian words
latta-siae May 14, 2025
dc45155
Code optimization
latta-siae May 14, 2025
81a9f4f
Replace nuovoJSON with newJSON variable
latta-siae May 14, 2025
6cee95c
Replace nomeArray with arrayName
latta-siae May 14, 2025
0ac1dcb
Replace chiave with keyToUse
latta-siae May 14, 2025
c3ffdc9
replace variable oggetto with objJSON
latta-siae May 14, 2025
d09fa1e
Merge pull request #1171 from openBackhaul/latta-siae/issue1092
latta-siae May 14, 2025
262e138
Remove un used code
latta-siae May 14, 2025
1568d44
Merge pull request #1181 from openBackhaul/latta-siae/issue901
latta-siae May 14, 2025
ec91595
Small fix un cache update builder
latta-siae May 15, 2025
9f04e83
Add disable response validation under flag + launch config
latta-siae May 15, 2025
3788da8
fixing openapi.yaml
latta-siae May 15, 2025
992c92b
Update release version
latta-siae May 20, 2025
8dcf1d6
fix load.json entries
latta-siae May 22, 2025
67a435d
fix encrypted-odl-key file reference
latta-siae May 23, 2025
f63c452
Update release date
latta-siae May 23, 2025
f2340c1
Merge pull request #1239 from openBackhaul/BF_load-data
latta-siae May 23, 2025
41da1a3
remove var variables
latta-siae Jun 3, 2025
ec8b37c
Adding a step to cleanup path
latta-siae Jun 3, 2025
030a243
Update release
latta-siae Jun 6, 2025
6daeaeb
Adding missing APIs
latta-siae Jun 25, 2025
4f6121c
Fix basic services
latta-siae Jun 26, 2025
5809d5c
Fix openapi file
latta-siae Jun 26, 2025
90e9e22
Fix Load.json
latta-siae Jun 26, 2025
ce545c2
Merge pull request #1353 from openBackhaul/BF_mixed_release
latta-siae Jun 26, 2025
c70e3fa
Fix issue #1092
latta-siae Jun 27, 2025
66ae93a
Fix issue #901
latta-siae Jul 2, 2025
eac3bc4
Merge remote-tracking branch 'origin/hot_fixes' into v1.2.2-hotfix.1_…
latta-siae Jul 7, 2025
7d5debf
Adding logger
latta-siae Jul 7, 2025
42b1172
Adding Logger and clean code on path server\service\individaulService…
latta-siae Jul 7, 2025
88586f7
Addining launch.json configuration
latta-siae Jul 7, 2025
475719e
Update individaul server files:
latta-siae Jul 7, 2025
3665199
Update path server\service\individualServices
latta-siae Jul 7, 2025
64f17e6
Update path server\service
latta-siae Jul 7, 2025
0aab49d
Update
latta-siae Jul 7, 2025
fb4a35b
Adding logger and replace for constans for IndividualServicesService.js
latta-siae Jul 7, 2025
82d56a0
Adding logger to individualServicesService
latta-siae Jul 7, 2025
b6384dd
Adding log to individaulServicesService
latta-siae Jul 7, 2025
289b6ee
Adding log and fix routines in IndividaulServicesService.js
latta-siae Jul 7, 2025
7878774
Rearrange imports and requires
latta-siae Jul 7, 2025
20f1105
Update logger
latta-siae Jul 7, 2025
03094b2
Fixing cycle process
latta-siae Jul 7, 2025
b4044b9
remove unused imports
latta-siae Jul 7, 2025
9ed308a
Removing some logger entry due to test failing
latta-siae Jul 7, 2025
721d3d3
Removing logger due to test failing
latta-siae Jul 7, 2025
59ebd0a
Update package-lock.json
latta-siae Jul 7, 2025
7acd48a
Fix the logger
latta-siae Jul 8, 2025
9e3b61c
Fixing the issue:
latta-siae Jul 28, 2025
9b6128e
Add metrics for [Performance]Observing slowness in retrieving the cac…
latta-siae Aug 4, 2025
39aa759
[Performance]Observing slowness in retrieving the cache APIs when MWD…
latta-siae Aug 4, 2025
19c260c
Adding logger to cached LTP
latta-siae Aug 4, 2025
4e9e628
Add logger to cache LTP augmented
latta-siae Aug 4, 2025
9519e7f
Merge pull request #1415 from openBackhaul/latta-siae/issue1048
latta-siae Aug 4, 2025
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
24 changes: 24 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"outputCapture": "std",
"runtimeArgs": [
"--trace-warnings"
],
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\server\\index.js",
"env": {
"DEBUG": "true",
}
}
]
}
23 changes: 16 additions & 7 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ const notificationManagement = require('./service/individualServices/Notificatio
appCommons.openApiValidatorOptions.validateSecurity.handlers.apiKeyAuth = apiKeyAuth.validateOperationKey;

const prepareElasticsearch = require('./service/individualServices/ElasticsearchPreparation');
const { Console } = require('console');

const logger = require('./service/LoggingService.js').getLogger();

// uncomment if you do not want to validate security e.g. operation-key, basic auth, etc
//appCommons.openApiValidatorOptions.validateSecurity = false;
appCommons.openApiValidatorOptions.validateResponses = false;
// appCommons.openApiValidatorOptions.validateSecurity = false;
if (process.env.DEBUG && process.env.DEBUG.toLowerCase() === "true") {
logger.warn("Working in debug mode");
logger.warn("Checking validation")
// appCommons.openApiValidatorOptions.validateSecurity = false;
appCommons.openApiValidatorOptions.validateResponses = false;
// appCommons.openApiValidatorOptions.validateRequests = false;
logger.warn("Validate Security: " + appCommons.openApiValidatorOptions.validateSecurity);
logger.warn("Validate Responses: " + appCommons.openApiValidatorOptions.validateResponses);
logger.warn("Validate Requests: " + appCommons.openApiValidatorOptions.validateRequests);
}

// swaggerRouter configuration
var options = {
routing: {
Expand Down Expand Up @@ -48,12 +57,12 @@ global.databasePath = './database/load.json';


prepareElasticsearch(false).catch(err => {
console.error(`Error preparing Elasticsearch : ${err}`);
logger.error(`Error preparing Elasticsearch : ${err}`);
}).finally(() => {
// Initialize the Swagger middleware
http.createServer(app).listen(serverPort, function () {
console.log('Your server is listening on port %d (http://localhost:%d)', serverPort, serverPort);
console.log('Swagger-ui is available on http://localhost:%d/docs', serverPort);
logger.info('Your server is listening on port %d (http://localhost:%d)', serverPort, serverPort);
logger.info('Swagger-ui is available on http://localhost:%d/docs', serverPort);
});
appCommons.performApplicationRegistration();

Expand Down
Loading