Skip to content

Commit 40b0e83

Browse files
authored
Merge pull request #798 from sfayer/bp_genfixes
[v5r0] Backport of recent fixes
2 parents c87d811 + 5766ea8 commit 40b0e83

7 files changed

Lines changed: 14 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ repos:
3838
- id: eslint
3939
additional_dependencies:
4040
- eslint@8.0.1
41-
- http://diracproject.web.cern.ch/diracproject/externalLibraries/@sencha_eslint-plugin-extjs.7.0.0.tgz
41+
- https://diracproject.web.cern.ch/diracproject/externalLibraries/@sencha_eslint-plugin-extjs.7.0.0.tgz
4242

4343
- repo: https://github.com/ikamensh/flynt/
4444
rev: "0.77"

src/WebAppDIRAC/Core/App.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def bootstrap(self):
102102
cookie_secret=str(Conf.cookieSecret()),
103103
log_function=self._logRequest,
104104
autoreload=Conf.numProcesses() < 2,
105+
websocket_ping_interval=15,
105106
)
106107

107108
# please do no move this lines. The lines must be before the fork_processes

src/WebAppDIRAC/WebApp/handler/ConfigurationManagerHandler.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ def __getSubnodesForPath(self, sectionPath, retData):
103103
sectionCfg = self.__configData["cfgData"].getCFG()
104104
for section in [section for section in sectionPath.split("/") if not section.strip() == ""]:
105105
sectionCfg = sectionCfg[section]
106-
except Exception as v:
107-
self.log.exception("Section does not exist", f"{sectionPath} -> {v!r}")
106+
except KeyError as err:
107+
self.log.info("Client requested non-existent section", f"{sectionPath} -> {err!r}")
108+
return False
109+
except Exception as err:
110+
self.log.exception("Error loading config section", f"{sectionPath} -> {err!r}")
108111
return False
109112

110113
for entryName in sectionCfg.listAll():

src/WebAppDIRAC/WebApp/static/core/js/utils/DiracTimeSearchPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Ext.define("Ext.dirac.utils.DiracTimeSearchPanel", {
230230

231231
var iSpanValue = me.cmbTimeSpan.getValue();
232232

233-
if (iSpanValue == null && iSpanValue == 0) {
233+
if (iSpanValue == null || iSpanValue == 0) {
234234
sStartDate = null;
235235
sStartTime = null;
236236
sEndDate = null;

src/WebAppDIRAC/WebApp/static/core/js/views/tabs/RightContainer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ Ext.define("Ext.dirac.views.tabs.RightContainer", {
9797
layout: "fit",
9898
closable: false,
9999
xtype: "component",
100+
/*
100101
autoEl: {
101102
tag: "iframe",
102-
src: "http://diracgrid.org",
103+
src: "https://diracgrid.org",
103104
},
105+
*/
104106
});
105107
},
106108
getStateData: function () {

src/WebAppDIRAC/WebApp/static/core/js/views/tabs/TabPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Ext.define("Ext.dirac.views.tabs.TabPanel", {
2121
renderTo: Ext.getBody(),
2222
defaults: {
2323
bodyPadding: 0,
24-
scrollable: true,
24+
scrollable: false,
2525
},
2626
bodyStyle: {
2727
background: "#AAAAAA",

src/WebAppDIRAC/WebApp/web.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ WebApp
3939

4040
Schema
4141
{
42-
Help = link|http://dirac.readthedocs.io/en/latest/UserGuide/index.html
42+
Help = link|https://dirac.readthedocs.io/en/latest/UserGuide/index.html
4343
Tools
4444
{
4545
Application Wizard = DIRAC.ApplicationWizard
@@ -71,7 +71,7 @@ WebApp
7171
#ExampleApp = DIRAC.ExampleApp
7272
}
7373

74-
DIRAC = link|http://diracgrid.org
74+
DIRAC = link|https://diracgrid.org
7575
}
7676

7777
}

0 commit comments

Comments
 (0)