Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Autosubmit GUI Autosubmit GUI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 36
    • Issues 36
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • Autosubmit GUIAutosubmit GUI
  • Issues
  • #12
Closed
Open
Issue created Apr 19, 2022 by jberlin@jberlinMaintainer

Hide esarchive label when non running in production environment

Based on the last version, if we have a environment where there is no esarchive, there is no point to display the lavel of the esarchive statistics, directly should be disabled/hidden. otherwise the GUI crashes:

Pointing to API in development environment

wget http://84.88.189.213:8081/filestatus/
--2022-04-19 15:10:23--  http://84.88.189.213:8081/filestatus/
Connecting to 84.88.189.213:8081... connected.
HTTP request sent, awaiting response... 200 OK
Length: 250 [application/json]
Saving to: ‘index.html’

index.html                                           100%[=====================================================================================================================>]     250  --.-KB/s    in 0s     

2022-04-19 15:10:23 (29,0 MB/s) - ‘index.html’ saved [250/250]

[root@vm autosubmitreact]# cat index.html
{"avg_bandwidth":null,"avg_latency":null,"bandwidth_warning":null,"current_bandwidth":null,"current_latency":null,"datetime":null,"error":false,"error_message":"","latency_warning":null,"reponse_time":null,"response_warning":null,"status":"OFFLINE"}

Pointing to API in production server

[root@vm autosubmitreact]# wget https://earth.bsc.es/autosubmitapi/filestatus/
--2022-04-19 15:11:26--  https://earth.bsc.es/autosubmitapi/filestatus/
Resolving earth.bsc.es (earth.bsc.es)... 84.88.52.107
Connecting to earth.bsc.es (earth.bsc.es)|84.88.52.107|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 313 [application/json]
Saving to: ‘index.html.1’

index.html.1                                         100%[=====================================================================================================================>]     313  --.-KB/s    in 0s     

2022-04-19 15:11:26 (400 MB/s) - ‘index.html.1’ saved [313/313]

[root@vm autosubmitreact]# cat index.html.1
{"avg_bandwidth":110.74374999999998,"avg_latency":1.3692608333333334,"bandwidth_warning":null,"current_bandwidth":108.0,"current_latency":1.44849,"datetime":"2022-04-19-15:10:02","error":false,"error_message":"","latency_warning":null,"reponse_time":0.13685011863708496,"response_warning":null,"status":"ONLINE"}

@mcastril

Assignee
Assign to
Time tracking