WeBankFinTech / DataSphereStudio

DataSphereStudio is a one stop data application development& management portal, covering scenarios including data exchange, desensitization/cleansing, analysis/mining, quality measurement, visualization, and task scheduling.
https://github.com/WeBankFinTech/DataSphereStudio-Doc
Apache License 2.0
3.04k stars 999 forks source link

[Feature] After the scriptis page is refreshed, the front-end repeatedly calls the same interface optimization #1082

Closed wxyn closed 1 year ago

wxyn commented 1 year ago

Search before asking

Problem Description

After scriptis refresh, front-end repeatedly asked interface/API/rest_j/v1 / DSS/framework/workspace/getWorkspaceUsers? workspaceId=266

api/rest_j/v1/dss/apiservice/getUserServices? workspaceId=266, which on the one hand consumes performance, on the other hand, if the two interfaces report an error, this will cause several columns to repeat the error message bombardment.

Therefore, the front-end needs to optimize the interface call, remove unnecessary interface calls, and avoid frequent interface calls.

Description

Optimize calls to the above two interfaces so that no repeated requests are made when scriptis page refreshes

Use case

No response

solutions

Repeated requests are sent because each script in the publish data service sends related requests

Modify the request sending logic so that the request is sent only once when the page is refreshed

Anything else

No response

Are you willing to submit a PR?

zqburde commented 1 year ago

Add it in DSS1.1.2