diracgrid / webappdirac Goto Github PK
View Code? Open in Web Editor NEWDIRAC Web front-end application
License: GNU General Public License v3.0
DIRAC Web front-end application
License: GNU General Public License v3.0
Pressing "return" or "enter" in the dialog box with the name of the state should save the new state.
Changing group or setup via menu in the bottom-right part of the page ends up in a blank page that does not have the new group/setup selected.
when overwriting an existing State, a confirmation message should appear
Save as, does not consider an existing StateName as valid value, but the reason is not clear. I would suggest to:
There's looooots of code like:
def web_doSomething( self ):
RPC = RPCClient("WorkloadManagement/JobMonitoring")
data = RPC.doSomething()
...
whereas it should be:
@asyncGen
def web_doSomething( self ):
RPC = RPCClient("WorkloadManagement/JobMonitoring")
data = yield self.threadTask( RPC.doSomething )
...
Should we rename it?
Refresh: Icon plus Text
Stretch: Icon plus Text (move by Refresh)
(to make them consistent with other Applications)
There should be no space left at the botom/right margins of the images
AutoRefresh/Stretch State is not saved
Restore of the Windows triggers a Refresh of the plot????
AutoRefresh/Stretch State should be kept when "New" plot is created
How do we recover the selection of a given plot?, I propose that issuing New goes back to original selection.
I am using volhcb25 machine with compiled js code. I am getting the following error:
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHistory.pushState]
[Break On This Error]
...ls:c.cols,rows:c.rows});return a},afterRender:function(){var a=this;a.callParent...
Probably all cases are not covered:
File "/Users/adria/Devel/diracRoot/WebAppDIRAC/WebApp/handler/JobMonitorHandler.py", line 28, in web_getJobData
result = result["Value"]
KeyError: 'Value'
Check that result[ 'OK' ] is true before getting the value.
If I click on site nothing shows even if the selector buttons turn blue. Data received from the server is:
Sometimes just selecting the type gets the accounting stuck:
Data is properly received
Request URL:https://localhost:8443/DIRAC/s:LHCb-Production/g:diracAdmin/AccountingPlot/getSelectionData
Request Method:POST
Status Code:200 OK
...
Replace all
self.finish( WErr.fromSERROR( result ) )
for
raise WErr.fromSERROR( result )
When there's an error in an ajax request:
How to reproduce:
To reproduce
1.- Create state A
2.- Load Link
3.- URL still has url_state=1|A
If there are no jobs to be shown this exception is raised:
File "/Users/adria/Devel/diracRoot/WebAppDIRAC/WebApp/handler/JobMonitorHandler.py", line 43, in web_getJobData
if not (len(result["ParameterNames"]) > 0):
KeyError: 'ParameterNames'
BTW: What are all those <pass>
in the JobMonitor. Shouldn't the be <return>
or something?
Try to get a JobManager window non-maximized and non-pinned
I just realised when I change the setup from development to production then we still use the development UserProfile while we must use the production one. It is because we create the UserProfile:
def __getUP( self ):
try:
obj = self.request.arguments[ 'obj' ][-1]
app = self.request.arguments[ 'app' ][-1]
except KeyError as excp:
raise WErr( 400, "Missing %s" % excp )
return UserProfileClient( "Web/%s/%s" % ( obj, app ))
We have to provide the RPC client to the UserProfileClinet in order to get the proper setup.
buttons should have a context Help message:
Close, Pin, Unpin, Save State, ...
It would be nice that the Sites menu of the Accounting Allows extra keywords "Tier1", "Tier2",... The tier level is no used to sort the list of Sites but a explicit way to select all of them at a given level.
Raja from LHCb has found a bug in the accounting app.
When I go to "Accounting Plot" and select category "Pilot", the window/frame goes into an eternal "Wait ..."
Looking in the dev console:
Uncaught TypeError: Cannot read property 'length' of undefined AccountingPlot.js:21
Make use of groups to reduce the number of items in the Status Bar
When loading a new Desktop State, the user is asked if he wants to save the current state, if yes is answered, the corresponding dialog should be opened and when closed (with save or cancel) the requested state should be loaded.
If I access the webpage using the full URL static paths aren't properly calculated:
/DIRAC/s:Integration/g:dirac_admin/static/DIRAC/JobMonitor/images/failed.gif
should always be
/DIRAC/static/DIRAC/JobMonitor/images/failed.gif
When unpin, the application should recover the same location and dimensions it had when pinned.
When uppin the header should have a "hide header" button.
That's it :P
That allows to have a 2x2, 3x3 and 12x12 layouts for apps :)
When there are few items to be selected the size is 1 item too small.
1 Items, Nothing is seen
2 items, 1 it is seen, no scroll is displayed, if you have a mouse with wheel you are able to see both of them
3 items, 2 are displayed and the scroll is shown (but it looks ridiculous)
...
This is a feature request: please implement keyboard shortcuts for moving between the different applications.
When opening the job manager if return gets an S_ERROR an exception is raised in the web server:
Traceback (most recent call last):
File "/Users/adria/Devel/diracRoot/Darwin_x86_64_10.7/lib/python2.6/site-packages/tornado/web.py", line 1115, in _stack_context_handle_exception
raise_exc_info((type, value, traceback))
File "/Users/adria/Devel/diracRoot/Darwin_x86_64_10.7/lib/python2.6/site-packages/tornado/stack_context.py", line 302, in wrapped
ret = fn(*args, **kwargs)
File "/Users/adria/Devel/diracRoot/Darwin_x86_64_10.7/lib/python2.6/site-packages/tornado/gen.py", line 550, in inner
self.set_result(key, result)
File "/Users/adria/Devel/diracRoot/Darwin_x86_64_10.7/lib/python2.6/site-packages/tornado/gen.py", line 476, in set_result
self.run()
File "/Users/adria/Devel/diracRoot/Darwin_x86_64_10.7/lib/python2.6/site-packages/tornado/gen.py", line 507, in run
yielded = self.gen.send(next)
File "/Users/adria/Devel/diracRoot/WebAppDIRAC/WebApp/handler/JobMonitorHandler.py", line 29, in web_getJobData
result = result["Value"]
KeyError: 'Value'
Typo: diffrence -> difference
Better: Show diff. (to reduce the text)
When inserting a multiline value:
te
tet
after the Submit one gets:
te,tet
in the Value box.
A second Submit produces:
tetet
as Value.
commas and new lines should be proper "read" in the Value and after submit the Value should be properly reformatted
Either users via:
Should not try to list/save... states. UP access should be disabled for them
Set the initial accounting window to a square size (NxN where N is min( desktop.witdh, desktop.height ) / 2 ) so the fist plot is not too deformed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.