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

Add map as embeddable to dashboard #231

Merged
merged 9 commits into from
Feb 20, 2023

Conversation

junqiu-lei
Copy link
Member

@junqiu-lei junqiu-lei commented Feb 7, 2023

Signed-off-by: Junqiu Lei junqiu@amazon.com

Description

Allow user to add maps to dashboard. This PR contains:

  • Maps embeddable api
  • Refactor maps component to adapt embeddable
  • Saved map can be added and displayed to dashboards
  • Register maps into visualization entrypoint
  • Editing map can be saved and return to dashboard
  • Time range in dashboard can be effected to map
  • Filter in dashboard can be effected to map
  • Interval refresh in dashboard can be effected to map
  • Cypress test

Demo

Add existing map to dashboard

Screen.Recording.2023-02-07.at.11.55.47.AM.mov

Add new map from dashboard

Screen.Recording.2023-02-13.at.12.50.35.PM.mov

Issues Resolved

#214

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@junqiu-lei junqiu-lei requested a review from a team February 7, 2023 09:53
@junqiu-lei junqiu-lei self-assigned this Feb 7, 2023
@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2023

Codecov Report

Merging #231 (901fd8a) into main (816ce79) will increase coverage by 0.12%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #231      +/-   ##
==========================================
+ Coverage   91.66%   91.79%   +0.12%     
==========================================
  Files          10       10              
  Lines         264      268       +4     
  Branches       34       34              
==========================================
+ Hits          242      246       +4     
  Misses         16       16              
  Partials        6        6              
Impacted Files Coverage Δ
...Dashboards/plugins/dashboards-maps/common/index.ts 100.00% <0.00%> (ø)
...hboards/plugins/dashboards-maps/public/services.ts 27.27% <0.00%> (+7.27%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

common/index.ts Outdated Show resolved Hide resolved
public/types.ts Outdated Show resolved Hide resolved
@junqiu-lei junqiu-lei force-pushed the embeddable_1 branch 2 times, most recently from eb1e344 to 9fe327f Compare February 10, 2023 18:59
tsconfig.json Outdated Show resolved Hide resolved
@junqiu-lei junqiu-lei force-pushed the embeddable_1 branch 2 times, most recently from 4f178f4 to d319385 Compare February 13, 2023 20:46
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
Copy link
Member

@ananzh ananzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@junqiu-lei
Copy link
Member Author

junqiu-lei commented Feb 20, 2023

The CI test failures aren’t related to this PR. Followed from opensearch-project/opensearch-build#3210

Unit tests and Cypress tests all passed at my local env

@junqiu-lei
Copy link
Member Author

From opensearch-project/oui#292 (comment), we will continue to use gisApp as Maps app icon for 2.6.0 release. cc @vamshin @VijayanB

@junqiu-lei junqiu-lei merged commit e48407b into opensearch-project:main Feb 20, 2023
@junqiu-lei junqiu-lei deleted the embeddable_1 branch February 20, 2023 23:59
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 20, 2023
* Add map as embeddable to dashboard

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Create new map from dashboard visualization and save return

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Enable interval refresh in dashboard

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Enable filters in dashboard

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Enable query in dashboard

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Add cypress test

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Fix maps listing in visualization listing page

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Refactor controller

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Resolve feedback

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

---------

Signed-off-by: Junqiu Lei <junqiu@amazon.com>
(cherry picked from commit e48407b)
junqiu-lei added a commit that referenced this pull request Feb 21, 2023
* Add map as embeddable to dashboard

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Create new map from dashboard visualization and save return

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Enable interval refresh in dashboard

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Enable filters in dashboard

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Enable query in dashboard

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Add cypress test

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Fix maps listing in visualization listing page

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Refactor controller

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

* Resolve feedback

Signed-off-by: Junqiu Lei <junqiu@amazon.com>

---------

Signed-off-by: Junqiu Lei <junqiu@amazon.com>
(cherry picked from commit e48407b)

Co-authored-by: Junqiu Lei <junqiu@amazon.com>
@junqiu-lei junqiu-lei added feature and removed enhancement New feature or request labels Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants