Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] An isMicroApp field is added to the appconns interface to indicate the micro application #1087

Closed
2 tasks done
wxyn opened this issue Jul 11, 2023 · 1 comment
Closed
2 tasks done

Comments

@wxyn
Copy link
Contributor

wxyn commented Jul 11, 2023

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Problem Description

The pages of DSS can be embedded into third-party applications. Due to historical reasons, early applications were all embedded in iframes. Later, after technological transformation, some applications were upgraded to micro application methods. However, due to human scheduling and other reasons, not all applications have completed micro application modifications, so currently there are two types of embedding methods coexisting. In order for the front-end to better identify which method the application is embedded through, it is necessary to mark the embedding method of the application when obtaining the application menu.

Description

As a DSS user, after logging in to DSS, click the Product menu button in the upper left corner to open the product menu and trigger the front-end interface.

The front-end invokes the interface to obtain the appconn information that has been added to the DSS, and the DSS back-end returns the appconn information, in which a field is isMicroApp.

The user clicks the menu and enters an application. The front-end determines whether the application is a micro application by the value of isMicroApp field of appconn information corresponding to the menu. If yes, the application is rendered as a micro application.

Use case

No response

solutions

  1. Main logic:

1). The data on the left menu of dss is obtained from the appconns interface. Add an isMicroApp field to this interface, isMicroApp=true indicates micro application, isMicroApp=false or no such field indicates non-micro application.

2). Add a is_micro_app field to the dss_appconn table to record whether appconn is a micro front-end.

3). Every time the appconn information is obtained, the value of is_micro_app field is found in the dss_appconn table and returned to the front-end.

4). The front-end passes the isMicroApp result and decides how to render it.

  1. Time sequence diagram
    image

  2. Design the front and rear interfaces
    Interface path:/api/rest_j/_v1/dss/framework/workspace/workspaces/{workspaceId}/appconns

image

image

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@wxyn wxyn added the enhancement New feature or request label Jul 11, 2023
@zqburde zqburde added this to To do in DataSphereStudio1.1.2 via automation Aug 9, 2023
@zqburde
Copy link
Contributor

zqburde commented Aug 9, 2023

Add it in DSS1.1.2

@zqburde zqburde moved this from To do to Done in DataSphereStudio1.1.2 Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component=AppConns enhancement New feature or request
Development

No branches or pull requests

3 participants