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
  • #23
Closed
Open
Issue created Aug 08, 2022 by Cristian Gutiérrez@cgutierrDeveloper

Problem with Show Detailed Data on the Home Active Experiments page

Hi @mcastril @jberlin

The button Show Detailed Data will make a GET request to the API endpoint (/summary/cxxx) for each experiment on the page. In my case I currently have 12 experiments on the page and therefore it will make 12 API Calls. The problem is that if you click a second time right after the first click it will make again those 12 API calls, now being 24 calls in total. the show datailed data button If a non-friendly client spams that button it could do a large number of API calls and maybe congestionate the API.

* You can check it in the Developer Tools > Network tab, there you will see all the HTTP GET API calls.

Furthermore, I am not sure if this is well handled by axios nor the react framework because if I inspect those API calls each one of them downloads content as a response meaning that they are not getting canceled and replaced with the new request of the next click. HTTP Calls in the Chrome Developer tools

In case this requires to be fixed, I don't think it's hard to fix, we can set up a state variable for knowing if the summaries are rendered or not and include that into the onclick event of the button as a condition.

Assignee
Assign to
Time tracking