Skip to content

Commit

Permalink
Updating 1.x branch with latest from 1.3.x (#403)
Browse files Browse the repository at this point in the history
* Fix release notes version (#28)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Migrate Reporting Notebooks Integration (#21)

Signed-off-by: David Cui <davidcui@amazon.com>

* Add Logic to Auto-populate Notebooks from Context Menu (#30)

Signed-off-by: David Cui <davidcui@amazon.com>

* Change opendistro to opensearch in email template (#31)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Fix case sensitive directory name for chromium zip (#35)

Signed-off-by: David Cui <davidcui@amazon.com>

Co-authored-by: Carl Meadows <47793022+CarlMeadows@users.noreply.github.com>
Co-authored-by: Zhongnan Su <szhongna@amazon.com>
Co-authored-by: Joshua Li <joshuali925@gmail.com>

* Use output_only Parameter for notebook reports (#32)


Signed-off-by: David Cui <davidcui@amazon.com>

* replace osd-version header to remove need for version number matching (#37)

Signed-off-by: David Cui <davidcui@amazon.com>

* Remove visualization editor in visualization reports (#50)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* add condition to fix negative value display (#51)

Signed-off-by: David Cui <davidcui@amazon.com>

* [Query Builder] Correctly handle match phrases when a single value is specified or when the match phrases is negated (#33)

* [Build query] Correctly handle phrases filter that specify only one single value

Contrary to the phrase filter type which always specify a meta.params.query, the phrases filter type never specify a meta.params.query even when a single value is selected.
This anomaly trigger an error generated by the MonoFieldQueryBase included in the elastic-builder dependency and prevent the generation of the report.

Signed-off-by: Kévin Masseix <masseix.kevin@gmail.com>

* [Build query] Correctly handle negated phrases filter that specify only one single value

Signed-off-by: Kévin Masseix <masseix.kevin@gmail.com>

* [Build query] Correctlty handle negated phrases to exclude them from the report instead of including them

Signed-off-by: Kévin Masseix <masseix.kevin@gmail.com>

* Pass processing if doc[field] == null (#361)

Pass processing if doc[field] == null
Based on opendistro-for-elasticsearch/kibana-reports#327 (comment)

* add test case for commit 368eb03e200b755870f1ad373e67561201ab6f31 (#370)

Add missing test case for the fix "pass doc[field] == null"

* Unhash page url in case store URLs in session storage is enabled from Kibana advanced setting (#371)

* Update Namespaces/APIs/Documentation for OpenSearch (#55)

Signed-off-by: David Cui <davidcui@amazon.com>

* bump path-parse version to 1.0.7 to address CVE (#59)

Signed-off-by: David Cui <davidcui@amazon.com>

* increase chromium timeout to 100s (#58)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Fix csv parsing function (#53)

* Fix csv parsing function

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Flatten nested results for csv

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add test case for nested fields

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add release notes for rc1 (#60)


Signed-off-by: David Cui <davidcui@amazon.com>

* configure index settings to have default 1 replica and auto-expand upperbound 2 (#62)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Rc1 release note patch (#63)


Signed-off-by: David Cui <davidcui@amazon.com>

* Bump OpenSearch Dashboards version to 1.0 (#64)


Signed-off-by: David Cui <davidcui@amazon.com>

* Revert .opensearch_dashboards index references to .kibana (#67)

Signed-off-by: David Cui <davidcui@amazon.com>

* Add diagrams for integration with Notifications plugin (#75)

* add puml diagrams for integration with Notifications plugin
Signed-off-by: David Cui <davidcui@amazon.com>

* amend Notifications plugin naming in diagram
Signed-off-by: David Cui <davidcui@amazon.com>

* Add i18n translation support (#362)

* PDF report is no more a screenshot, increasing the overall quality

Also a issue with chrome font rendering was fixed

* Add Notifications to docs (#87)

* moved docs to root folder, update readme to include Notifications roadmap
Signed-off-by: David Cui <davidcui@amazon.com>

* update readme to clarify current status of supported features
Signed-off-by: David Cui <davidcui@amazon.com>

* Better support sorting for csv report based on saved search (#86)

* Change Delivery Request Body for Notifications (#85)

* adding opensearch changed api for report definition to save branch
Signed-off-by: David Cui <davidcui@amazon.com>

* change delivery request body, update test cases
Signed-off-by: David Cui <davidcui@amazon.com>

* remove console.log statement, fix DeliveryType type members to use snake case
Signed-off-by: David Cui <davidcui@amazon.com>

* convert all snake case to camel case
Signed-off-by: David Cui <davidcui@amazon.com>

* make configId required in schema
Signed-off-by: David Cui <davidcui@amazon.com>

* Remove legacy notifications/delivery related code (#94)

* remove legacy notifications/delivery related code
Signed-off-by: David Cui <davidcui@amazon.com>

* remove commented out reference
Signed-off-by: David Cui <davidcui@amazon.com>

* Remove dependency on demo.elastic and use local mock html for testing (#100)

* Add code cov back (#98)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* update workflow to rename artifact in kebab case (#102)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* bump dependency version (#101)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* level up markdowns and readme (#97)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Bump to version 1.0.0.0 (#103)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Bump test resource(job-scheduler) to 1.0.0.0 (#105)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* fix failed cypress integ-testing (#106)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Bump node version, fix workflow and gradle build (#108)

* Bump nodejs version to keep up with upstream

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* fix github workflow

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Add release notes for 1.0.0.0 (#104)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Fix notebooks context menu (#109)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Fix context menu download request body after schema change to add notifiaction (#115)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Exclude time range from report details for Notebooks  (#117)

* exclude time range check for notebooks reports
Signed-off-by: David Cui <davidcui@amazon.com>

* use report source identifier over url partial match
Signed-off-by: David Cui <davidcui@amazon.com>

* add report details fix to release notes
Signed-off-by: David Cui <davidcui@amazon.com>

* add more bug fixes to release notes
Signed-off-by: David Cui <davidcui@amazon.com>

* Update regex for notebooks reports (#118)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add integtest script to the repo

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Improve osd bootstrap on dub directory

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Improve osd bootstrap on dub directory

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Exclude Faulty Integration Test  (#122)

Exclude broken ITs from upstream OpenSearch

* Fix cypress reporting (#123)

* fix create test
Signed-off-by: David Cui <davidcui@amazon.com>

* toggle video on for cypress testing (#124)

Signed-off-by: David Cui <davidcui@amazon.com>

* Update Doc Links (#127)

* update doc links in dashboards-reports
Signed-off-by: David Cui <davidcui@amazon.com>

* Update template to reflect new branding (#128)

Signed-off-by: kgcreative <kvngar@amazon.com>

* Update UI for Notifications Integration (#126)

Update reporting front-end for Notifications integration

Signed-off-by: David Cui <davidcui@amazon.com>

* Add themed logo to README (#130)

Signed-off-by: Miki <mehranb@amazon.com>

* Fix url validation (#132)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Fix url validation for context menu (#134)

* Fix url validation for context menu

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Fix url validation

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Connect Notifications APIs to Reporting (#131)

* call notifications APIs from reporting, saving progress
Signed-off-by: David Cui <davidcui@amazon.com>

* enable notifications integration, update view in details pages, update tests
Signed-off-by: David Cui <davidcui@amazon.com>

* address comments, add server APIs to call backend notifications APIs to reduce dependency
Signed-off-by: David Cui <davidcui@amazon.com>

* add get_event API to confirm test messages are sent successfully and throw error if not
Signed-off-by: David Cui <davidcui@amazon.com>

* add input validation for delivery subject and message, hide notifications section if opensearch notifications is not installed
Signed-off-by: David Cui <davidcui@amazon.com>

* renamed constant for notifications to follow API_PREFIX convention
Signed-off-by: David Cui <davidcui@amazon.com>

* rename notifications constant to reporting_notifications
Signed-off-by: David Cui <davidcui@amazon.com>

* add list of failed channels on test message failure
Signed-off-by: David Cui <davidcui@amazon.com>

* Fix snapshot build and upgrade to OpenSearch 1.1. (#140)

Signed-off-by: dblock <dblock@amazon.com>

* Add release notes for 1.0.1 release (#143)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Bump to 1.1 in main (#150)

* bump version to 1.1, hide delivery section
Signed-off-by: David Cui <davidcui@amazon.com>

* Dont hide delivery by default
Signed-off-by: David Cui <davidcui@amazon.com>

* bump version to 1.1 in dashboards reports workflow
Signed-off-by: David Cui <davidcui@amazon.com>

* fix OSD branch to use main
Signed-off-by: David Cui <davidcui@amazon.com>

* change from main to 1.x for dashboards version
Signed-off-by: David Cui <davidcui@amazon.com>

* Bump opensearch ref to 1.1 in CI (#155)

* Removed integtest.sh. (#157)

Signed-off-by: dblock <dblock@dblock.org>

* Taking RBAC settings from Alerting plugin default to false

Other changes:
1. Legacy settings removed because all relavent settings are removed or taken from Alerting plugin
2. Poll API removed as it is not used

[Tests]
All existing tests passed

Signed-off-by: @akbhatta

* Bump tmpl from 1.0.4 to 1.0.5 in /dashboards-reports (#164)

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix quoting and url-encoding (#153)

* Replace '%2F' with '/' in relative dates

Signed-off-by: Konstantin Roussou <konstantin.roussou@syncier.com>

* Ensure proper quoting of converted dates in URL

Signed-off-by: Konstantin Roussou <konstantin.roussou@syncier.com>

* Use generic URL decoding

Co-authored-by: Zhongnan Su <szhongna@amazon.com>

* Use roundUp for toDate

Co-authored-by: Zhongnan Su <szhongna@amazon.com>

* Make date transformation same as in context_menu_helpers.js

Co-authored-by: Zhongnan Su <szhongna@amazon.com>

* Integrate notifications backend (#129)

* Remove hard coded localhost when calling API (#172)

* rename plugin helper config file name to consistent with OSD (#180)

Signed-off-by: Tengda He <tengh@amazon.com>

* Add metrics for sending notifications (#173)

* Add logic to build report detail page link and send as part of message for non-email channels (#182)

* forward origin plus basePath to backend

* Add build report link function and forward link as part of message

* Update validation for observability notebooks integration (#174)

* Build email message from template with reports links (#184)

* remove the email tempalte and helpers from dashboards plugin

* build email message from template for reporting notifcation

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Support range filters for csv reports (#185)

* Forward extra headers while using headless chromium (#194)

* Use advanced settings for date format in csv reports (#186)

* add check in ReportInstanceActions to fix on demand report creation after report definition creation (#196)

Signed-off by: David Cui <davidcui@amazon.com>

* Catch Notifications Errors on Details Pages (#197)

* add catch statements to notifications get_configs to avoid crashing details pages
Signed-off by: David Cui <davidcui@amazon.com>

* remove console log statment
Signed-off by: David Cui <davidcui@amazon.com>

* remove notifications integration from details pages and update snapshots (#210)

Signed-off-by: David Cui <davidcui@amazon.com>

* fix csv missing metadata fields issue and empty report on all(_source) fields (#206)

* remove notifications references from create and edit report definition pages (#212)

Signed-off by: David Cui <davidcui@amazon.com>

* refactor logic for creating DSL from saved object using buildOpensearchQuery() (#213)

* Remove calling notifications in reports scheduler (#211)

* Use advanced settings for csv separator and visual report timezone (#209)

* Bump to version 1.2 (#203)

* Bump to version 1.2

Bump OpenSearch and OpenSearch Dashboards plugins to 1.2

Related issue:
#167

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>

* Use maven for building reports scheduler

Signed-off-by: Joshua Li <joshuali925@gmail.com>

Co-authored-by: Joshua Li <joshuali925@gmail.com>

* Add dco and release drafter workflows (#217)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* update readme notification section (#216)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* revert paths to opendistro to keep cluster permissions same with ODFE (#218)

Signed-off-by: David Cui <davidcui@amazon.com>

* Create opensearch-dashboards-reports.release-notes-1.2.0.0.md

Signed-off-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>

* Update the copyright notices to reflect OpenSearch Contributors (#220)

* update the copyright notices to reflect OpenSearch Contributors

Signed-off-by: David Cui <davidcui@amazon.com>

* add .txt to NOTICE to resolve linkchecker error

Signed-off-by: David Cui <davidcui@amazon.com>

* changes

Signed-off-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>

* changes

Signed-off-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>

* Remove notifications actions in reports scheduler (#221)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* add reporting osd server configurations (#222)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Add suggested font packages in troubleshooting tips (#189)

* add suggested font packages in troubleshooting tips
Signed-off-by: David Cui <davidcui@amazon.com>

* add links to package documentation in README for font packages
Signed-off-by: David Cui <davidcui@amazon.com>

* add more descriptive title under Troubleshooting

Signed-off-by: David Cui <davidcui@amazon.com>

* add link to headless-chrome installation and add ipa-gothic-fonts link to centos 7

Signed-off-by: David Cui <davidcui@amazon.com>

* Update Copyright Headers (#226)

* update copyright header for all files

Signed-off-by: David Cui <davidcui@amazon.com>

* fix ktlint errors with extra whitespace

Signed-off-by: David Cui <davidcui@amazon.com>

* Add support for codeowners to repo (#227)

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* Fix reporting validation for observability (#231)

* Update reporting validation for observability

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* update tests

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* remove poller code from frontend plugin (#235)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* bump reports-scheduler to 1.3 (#241)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Fix apt source and link checker for CI (#245)

* Update apt source in CI

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Try fix link checker

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add Case Coverage tests for Create Report Definition (#239)

* add & refactor cypress tests, add css selectors in report settings & report trigger

Signed-off-by: David Cui <davidcui@amazon.com>

* remove comment and update jest snapshot

Signed-off-by: David Cui <davidcui@amazon.com>

* add bwc test for reports-scheduler (#244)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* added code summary table (#243)

* added code summary table

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* modularized tables, fixed links

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* updated header, changed bwc link

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* Add Cypress Case Coverage on Details Pages (#250)

* add and refactor cypress tests for details pages

Signed-off-by: David Cui <davidcui@amazon.com>

* update jest snapshots

Signed-off-by: David Cui <davidcui@amazon.com>

* add utils.js file to store functions used in multiple cypress tests

Signed-off-by: David Cui <davidcui@amazon.com>

* add gradle task to run integtest against remote cluster (#247)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* added untriaged and nolabel badges

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* bump dashboards-reports version to 1.3 (#265)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* add UT for request/reseponse model (#264)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Add .whitesource configuration file

* Address Reporting CVEs (#267)

* update vulnerable package versions

Signed-off-by: David Cui <davidcui@amazon.com>

* change ansi-regex to 5.0.1 to pass bootstrap

Signed-off-by: David Cui <davidcui@amazon.com>

* update yarn lock for cve fixes (#271)

Signed-off-by: David Cui <davidcui@amazon.com>

* add release notes for 1.2.4

Signed-off-by: David Cui <davidcui@amazon.com>

* remove jcenter repo from gradle build

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* update guava to 31.0.1-jre

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* WS package update (#283)

* updated ws version

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* moved ws package to resolutions

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* updated yarn lock

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* add auto-backport functionality for reporting (#286)

Add auto-backport and auto-delete workflows for reporting

Signed-off-by: David Cui <davidcui@amazon.com>

* Change Default CI version to JDK 11 (#290)

* change default CI version to JDK 11, add JDK versions to CI matrix and document changes in developer guide

Signed-off-by: David Cui <davidcui@amazon.com>

* remove incorrect tag form issue template (#294)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Fix empty or multiple date values in csv (#293)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Update the saved object id matcher regex to match custom id (#295)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Replace Centos links to fix link checker CI (#297)

exclude centos links from linkchecker

Signed-off-by: David Cui <davidcui@amazon.com>

* update regex to match custom saved object id (#298)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Fix reporting uuid parsing (#300)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add java 8 support in compile and test (#304) (#305)

* add java 8 support in compile and test

Signed-off-by: Zhongnan Su <szhongna@amazon.com>
(cherry picked from commit e753b07)

Co-authored-by: Zhongnan Su <szhongna@amazon.com>

* Add 1.3 release notes (#307) (#308)

* Add 1.3 release notes

Signed-off-by: Zhongnan Su <szhongna@amazon.com>
(cherry picked from commit 2e904c5)

Co-authored-by: Zhongnan Su <szhongna@amazon.com>

* Bump version to 1.3.1 (#324)

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>

* Bump reports dashboards to 1.3.1 (#331)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Incremented version to 1.3.2. (#352)

Signed-off-by: Zelin Hao <zelinhao@amazon.com>

* Version bump 1.3.3

Signed-off-by: pgodithi <pgodithi@amazon.com>

* Version bump 1.3.3

Signed-off-by: pgodithi <pgodithi@amazon.com>

* Version bump 1.3.3

Signed-off-by: pgodithi <pgodithi@amazon.com>

* [1.3] Bump minimist to 1.2.6 (#367)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Move HTML sanitization from client to server side (#382) (#386)

Move HTML sanitization to server, store markdown over HTML, remove unused imports

Signed-off-by: David Cui <davidcui@amazon.com>

Co-authored-by: David Cui <53581635+davidcui1225@users.noreply.github.com>

* Incremented version to 1.3.4. (#389)

* Incremented version to 1.3.4.

Signed-off-by: Zelin Hao <zelinhao@amazon.com>

* Add JS snapshot

Signed-off-by: Zelin Hao <zelinhao@amazon.com>

* Add release notes for 1.3.4.0 (#393) (#394)

Signed-off-by: Joshua Li <joshuali925@gmail.com>
(cherry picked from commit 8e01eaa)

Co-authored-by: Joshua Li <joshuali925@gmail.com>

Co-authored-by: Zhongnan Su <szhongna@amazon.com>
Co-authored-by: David Cui <53581635+davidcui-amzn@users.noreply.github.com>
Co-authored-by: Joshua <joshuali925@gmail.com>
Co-authored-by: Carl Meadows <47793022+CarlMeadows@users.noreply.github.com>
Co-authored-by: Kevin Masseix <masseix.kevin@gmail.com>
Co-authored-by: Uzhinskiy Boris <lspci@mail.ru>
Co-authored-by: David Cui <davidcui@amazon.com>
Co-authored-by: starcatter <30572485+starcatter@users.noreply.github.com>
Co-authored-by: Elias Soares <esoares@iget.com.br>
Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
Co-authored-by: Kevin Garcia <hello@kevingarcia.me>
Co-authored-by: Miki <mehranb@amazon.com>
Co-authored-by: David Cui <53581635+davidcui1225@users.noreply.github.com>
Co-authored-by: Daniel Doubrovkine (dB.) <dblock@dblock.org>
Co-authored-by: Anantha Krishna Bhatta <banantha@amazon.com>
Co-authored-by: Anantha Krishna Bhatta <31894175+akbhatta@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kroussou <58224693+kroussou@users.noreply.github.com>
Co-authored-by: Tengda-He <89666799+Tengda-He@users.noreply.github.com>
Co-authored-by: Kawika Avilla <kavilla414@gmail.com>
Co-authored-by: Kavitha Conjeevaram Mohan <kavithamohan0404@gmail.com>
Co-authored-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>
Co-authored-by: Ryan Bogan <10944539+ryanbogan@users.noreply.github.com>
Co-authored-by: whitesource-for-github-com[bot] <50673670+whitesource-for-github-com[bot]@users.noreply.github.com>
Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
Co-authored-by: Sayali Gaikawad <61760125+gaiksaya@users.noreply.github.com>
Co-authored-by: Zelin Hao <87548827+zelinh@users.noreply.github.com>
Co-authored-by: pgodithi <pgodithi@amazon.com>
Co-authored-by: Anirudha (Ani) Jadhav <anirudha@nyu.edu>
  • Loading branch information
1 parent d08711e commit febb923
Show file tree
Hide file tree
Showing 355 changed files with 20,044 additions and 11,297 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams
* @opensearch-project/dashboards-reports
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: 🐛 Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: 'bug, untriaged, Beta'
labels: 'bug, untriaged'
assignees: ''
---

Expand Down
45 changes: 45 additions & 0 deletions .github/draft-release-notes-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# The overall template of the release notes
template: |
Compatible with OpenSearch and OpenSearch Dashboards Version $RESOLVED_VERSION
$CHANGES
# Setting the formatting and sorting for the release notes body
name-template: Version $RESOLVED_VERSION
change-template: "* $TITLE ([#$NUMBER](https://github.com/opensearch-project/dashboards-reports/pull/$NUMBER))"
sort-by: merged_at
sort-direction: ascending
replacers:
- search: '##'
replace: '###'

# Organizing the tagged PRs into unified categories
categories:
- title: 'Breaking Changes'
labels:
- 'Breaking Changes'
- title: 'Features'
labels:
- 'feature'
- title: 'Enhancements'
labels:
- 'enhancement'
- title: 'Bug Fixes'
labels:
- 'bug'
- title: 'Infrastructure'
labels:
- 'infra'
- 'test'
- 'dependencies'
- 'github actions'
- title: 'Documentation'
labels:
- 'documentation'
- title: 'Maintenance'
labels:
- "version compatibility"
- "maintenance"
- title: 'Refactoring'
labels:
- 'refactor'
- 'code quality'
28 changes: 28 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Backport
on:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
name: Backport
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/github-app-token@v1.5.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780

- name: Backport
uses: VachaShah/backport@v1.1.4
with:
github_token: ${{ steps.github_app_token.outputs.token }}
branch_name: backport/backport-${{ github.event.number }}
29 changes: 15 additions & 14 deletions .github/workflows/dashboards-reports-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ on:

env:
PLUGIN_NAME: reportsDashboards
ARTIFACT_NAME: reports-dashboards
OPENSEARCH_VERSION: '1.0'
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0-rc1
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0

jobs:
build:
Expand All @@ -35,7 +36,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "10.23.1"
node-version: "10.24.1"

- name: Move Dashboards Reports to Plugins Dir
run: mv dashboards-reports OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
Expand Down Expand Up @@ -69,18 +70,18 @@ jobs:
cd build
mkdir -p ./{linux-x64,linux-arm64,windows-x64}/OpenSearch-Dashboards/${{ env.PLUGIN_NAME }}
cp ./${{ env.PLUGIN_NAME }}-*.zip ./linux-x64/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-x64.zip
cp ./${{ env.PLUGIN_NAME }}-*.zip ./linux-arm64/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-arm64.zip
mv ./${{ env.PLUGIN_NAME }}-*.zip ./windows-x64/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-windows-x64.zip
cp ./${{ env.PLUGIN_NAME }}-*.zip ./linux-x64/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-x64.zip
cp ./${{ env.PLUGIN_NAME }}-*.zip ./linux-arm64/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-arm64.zip
mv ./${{ env.PLUGIN_NAME }}-*.zip ./windows-x64/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-windows-x64.zip
s3_prefix="s3://staging.artifacts.opendistroforelasticsearch.amazon.com/snapshots/kibana-plugins/reports/"
cd linux-x64
wget https://github.com/opendistro-for-elasticsearch/kibana-reports/releases/download/chromium-1.12.0.0/chromium-linux-x64.zip
wget https://github.com/opensearch-project/dashboards-reports/releases/download/chromium-1.12.0.0/chromium-linux-x64.zip
unzip chromium-linux-x64.zip -d ./OpenSearch-Dashboards/${{ env.PLUGIN_NAME }}
rm chromium-linux-x64.zip
zip -ur ./${{ env.PLUGIN_NAME }}-*.zip ./OpenSearch-Dashboards
linux_x64_artifact=`ls ./${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-x64.zip`
zip -ur ./${{ env.ARTIFACT_NAME }}-*.zip ./OpenSearch-Dashboards
linux_x64_artifact=`ls ./${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-x64.zip`
#Inject build number before the suffix and upload to S3
linux_x64_artifact_outfile=`basename ${linux_x64_artifact%.zip}-build-${GITHUB_RUN_NUMBER}.zip`
Expand All @@ -89,11 +90,11 @@ jobs:
cd ..
cd linux-arm64
wget https://github.com/opendistro-for-elasticsearch/kibana-reports/releases/download/chromium-1.12.0.0/chromium-linux-arm64.zip
wget https://github.com/opensearch-project/dashboards-reports/releases/download/chromium-1.12.0.0/chromium-linux-arm64.zip
unzip chromium-linux-arm64.zip -d ./OpenSearch-Dashboards/${{ env.PLUGIN_NAME }}
rm chromium-linux-arm64.zip
zip -ur ./${{ env.PLUGIN_NAME }}-*.zip ./OpenSearch-Dashboards
linux_arm64_artifact=`ls ./${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-arm64.zip`
zip -ur ./${{ env.ARTIFACT_NAME }}-*.zip ./OpenSearch-Dashboards
linux_arm64_artifact=`ls ./${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-arm64.zip`
#Inject build number before the suffix and upload to S3
linux_arm64_artifact_outfile=`basename ${linux_arm64_artifact%.zip}-build-${GITHUB_RUN_NUMBER}.zip`
Expand All @@ -102,11 +103,11 @@ jobs:
cd ..
cd windows-x64
wget https://github.com/opendistro-for-elasticsearch/kibana-reports/releases/download/chromium-1.12.0.0/chromium-windows-x64.zip
wget https://github.com/opensearch-project/dashboards-reports/releases/download/chromium-1.12.0.0/chromium-windows-x64.zip
unzip chromium-windows-x64.zip -d ./OpenSearch-Dashboards/${{ env.PLUGIN_NAME }}
rm chromium-windows-x64.zip
zip -ur ./${{ env.PLUGIN_NAME }}-*.zip ./OpenSearch-Dashboards
windows_x64_artifact=`ls ./${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-windows-x64.zip`
zip -ur ./${{ env.ARTIFACT_NAME }}-*.zip ./OpenSearch-Dashboards
windows_x64_artifact=`ls ./${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-windows-x64.zip`
#Inject build number before the suffix and upload to S3
windows_x64_artifact_outfile=`basename ${windows_x64_artifact%.zip}-build-${GITHUB_RUN_NUMBER}.zip`
Expand Down
47 changes: 28 additions & 19 deletions .github/workflows/dashboards-reports-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on: [pull_request, push]

env:
PLUGIN_NAME: reportsDashboards
OPENSEARCH_VERSION: '1.0'
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0-rc1
ARTIFACT_NAME: reports-dashboards
OPENSEARCH_VERSION: '1.3'
OPENSEARCH_PLUGIN_VERSION: 1.3.4.0

jobs:
build:
Expand All @@ -24,13 +25,14 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "10.23.1"
node-version: "10.24.1"

- name: Move Dashboards Reports to Plugins Dir
run: mv dashboards-reports OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}

- name: Add Chromium Binary to Reporting for Testing
run: |
sudo apt update
sudo apt install -y libnss3-dev fonts-liberation libfontconfig1
cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
wget https://github.com/opendistro-for-elasticsearch/kibana-reports/releases/download/chromium-1.12.0.0/chromium-linux-x64.zip
Expand All @@ -49,7 +51,14 @@ jobs:
with:
timeout_minutes: 30
max_attempts: 3
command: cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn test
command: cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn test --coverage

- name: Upload coverage
uses: codecov/codecov-action@v1
with:
flags: dashboards-reports
directory: OpenSearch-Dashboards/plugins/
token: ${{ secrets.CODECOV_TOKEN }}

- name: Build Artifact
run: |
Expand All @@ -58,45 +67,45 @@ jobs:
cd build
mkdir -p ./{linux-x64,linux-arm64,windows-x64}/opensearch-dashboards/${{ env.PLUGIN_NAME }}
cp ./${{ env.PLUGIN_NAME }}-*.zip ./linux-x64/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-x64.zip
cp ./${{ env.PLUGIN_NAME }}-*.zip ./linux-arm64/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-arm64.zip
mv ./${{ env.PLUGIN_NAME }}-*.zip ./windows-x64/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-windows-x64.zip
cp ./${{ env.PLUGIN_NAME }}-*.zip ./linux-x64/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-x64.zip
cp ./${{ env.PLUGIN_NAME }}-*.zip ./linux-arm64/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-arm64.zip
mv ./${{ env.PLUGIN_NAME }}-*.zip ./windows-x64/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-windows-x64.zip
cd linux-x64
wget https://github.com/opendistro-for-elasticsearch/kibana-reports/releases/download/chromium-1.12.0.0/chromium-linux-x64.zip
wget https://github.com/opensearch-project/dashboards-reports/releases/download/chromium-1.12.0.0/chromium-linux-x64.zip
unzip chromium-linux-x64.zip -d ./opensearch-dashboards/${{ env.PLUGIN_NAME }}
zip -ur ./${{ env.PLUGIN_NAME }}-*.zip ./opensearch-dashboards
mv ./${{ env.PLUGIN_NAME }}-*.zip ..
zip -ur ./${{ env.ARTIFACT_NAME }}-*.zip ./opensearch-dashboards
mv ./${{ env.ARTIFACT_NAME }}-*.zip ..
cd ..
cd linux-arm64
wget https://github.com/opendistro-for-elasticsearch/kibana-reports/releases/download/chromium-1.12.0.0/chromium-linux-arm64.zip
wget https://github.com/opensearch-project/dashboards-reports/releases/download/chromium-1.12.0.0/chromium-linux-arm64.zip
unzip chromium-linux-arm64.zip -d ./opensearch-dashboards/${{ env.PLUGIN_NAME }}
zip -ur ./${{ env.PLUGIN_NAME }}-*.zip ./opensearch-dashboards
mv ./${{ env.PLUGIN_NAME }}-*.zip ..
zip -ur ./${{ env.ARTIFACT_NAME }}-*.zip ./opensearch-dashboards
mv ./${{ env.ARTIFACT_NAME }}-*.zip ..
cd ..
cd windows-x64
wget https://github.com/opendistro-for-elasticsearch/kibana-reports/releases/download/chromium-1.12.0.0/chromium-windows-x64.zip
wget https://github.com/opensearch-project/dashboards-reports/releases/download/chromium-1.12.0.0/chromium-windows-x64.zip
unzip chromium-windows-x64.zip -d ./opensearch-dashboards/${{ env.PLUGIN_NAME }}
zip -ur ./${{ env.PLUGIN_NAME }}-*.zip ./opensearch-dashboards
mv ./${{ env.PLUGIN_NAME }}-*.zip ..
zip -ur ./${{ env.ARTIFACT_NAME }}-*.zip ./opensearch-dashboards
mv ./${{ env.ARTIFACT_NAME }}-*.zip ..
cd ..
- name: Upload Artifact For Linux x64
uses: actions/upload-artifact@v1
with:
name: dashboards-reports-linux-x64
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-x64.zip
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-x64.zip

- name: Upload Artifact For Linux arm64
uses: actions/upload-artifact@v1
with:
name: dashboards-reports-linux-arm64
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-arm64.zip
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-arm64.zip

- name: Upload Artifact For Windows
uses: actions/upload-artifact@v1
with:
name: dashboards-reports-windows-x64
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-windows-x64.zip
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-windows-x64.zip
18 changes: 18 additions & 0 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Developer Certificate of Origin Check

on: [pull_request]

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Get PR Commits
id: 'get-pr-commits'
uses: tim-actions/get-pr-commits@v1.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: DCO Check
uses: tim-actions/dco@v1.1.0
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
15 changes: 15 additions & 0 deletions .github/workflows/delete_backport_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Delete merged branch of the backport PRs
on:
pull_request:
types:
- closed

jobs:
delete-branch:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.ref,'backport/')
steps:
- name: Delete merged branch
uses: SvanBoxel/delete-merged-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/draft-release-notes-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release Drafter

on:
push:
branches:
- main

jobs:
update_release_draft:
name: Update draft release notes
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- name: Update draft release notes
uses: release-drafter/release-drafter@v5
with:
config-name: draft-release-notes-config.yml
tag: (None)
version: 1.3.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Link Checker
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
linkchecker:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: lychee Link Checker
id: lychee
uses: lycheeverse/lychee-action@master
with:
args: --accept=200,403,429 "./**/*.md" "./**/*.txt" --exclude "https://centos.pkgs.org/7/*"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Fail if there were link errors
run: exit ${{ steps.lychee.outputs.exit_code }}

0 comments on commit febb923

Please sign in to comment.