Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Optimize selectors for DOM operation to reduce possible version compatibility issue #244

Merged

Conversation

zhongnansu
Copy link
Member

Issue #, if available:

The current DOM element selector we use is not generic enough, so it may lead to more manual work during each version compatibility check. Some html element of Kibana dashboard with minor update will easily break the report creation logic.

Description of changes:
Instead of using a specific class/id selector of a specific element in a specific kibana version, I tried to come up with a generic selector while we operate the DOM.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@zhongnansu zhongnansu added the maintenance Improves code quality, but not the product label Dec 10, 2020
Copy link
Contributor

@davidcui1225 davidcui1225 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhongnansu zhongnansu merged commit 00c14ec into opendistro-for-elasticsearch:dev Dec 10, 2020
@zhongnansu zhongnansu deleted the change-selector branch December 10, 2020 02:34
zhongnansu added a commit to zhongnansu/kibana-reports that referenced this pull request Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintenance Improves code quality, but not the product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants