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

Sync 7.10 branch with reporting repo #33

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
307 commits
Select commit Hold shift + click to select a range
f79bf83
addressed comments- gave specific types to variables
davidcui1225 Jun 18, 2020
98c574b
Create API to generate report in PDF/PNG format (#16)
zhongnansu Jun 19, 2020
2c477d2
merging from upstream
davidcui1225 Jun 19, 2020
0479e1e
re-added dependencies removed after conflict resolution with upstream…
davidcui1225 Jun 19, 2020
0cb9ece
changed username to type string
davidcui1225 Jun 19, 2020
d38e2e4
Merge pull request #14 from davidcui-amzn/migrate-typescript
davidcui1225 Jun 22, 2020
5c46cf0
Update README with dev guide (#23)
zhongnansu Jun 25, 2020
1377aeb
add test to scripts and updated snapshot (#29)
davidcui1225 Jun 26, 2020
64eb18e
Update design proposal
zhongnansu Jun 30, 2020
de26751
Update user stories (#22)
kgcreative Jul 1, 2020
8d61ddb
Add UX documentation, userflows, screens and mocks (#34)
kgcreative Jul 7, 2020
f5367c4
update image headers (#35)
kgcreative Jul 7, 2020
d5b2bfd
Migrate create_report/ to Typescript (#17)
davidcui1225 Jul 8, 2020
c963b33
Stream reports to client (#30)
zhongnansu Jul 8, 2020
c30d1d0
Add Report Details UI (#28)
davidcui1225 Jul 8, 2020
24d9a64
Update Landing Page UI (#37)
davidcui1225 Jul 10, 2020
1191c38
Migrate server side to new kibana plugin platform (#38)
zhongnansu Jul 10, 2020
f8615f1
Migrate Client-Side to New Platform (#41)
davidcui1225 Jul 13, 2020
fa948b6
Add Report Definitions Details UI
davidcui1225 Jul 15, 2020
dcd7baa
Create Report Final UI (#42)
davidcui1225 Jul 20, 2020
4df5c71
CRUD APIs for report and report definition (#47)
zhongnansu Jul 21, 2020
7faa6be
Add Edit Report Definition UI (#48)
davidcui1225 Jul 21, 2020
d85becb
Update Kibana-Reporting-Design-Proposal.md (#44)
vrphanse Jul 23, 2020
5ac512c
Connect Front & Back End for Homepage & Create report definition (#51)
davidcui1225 Aug 14, 2020
61602df
Connect Report Details Backend (#52)
davidcui1225 Aug 14, 2020
19b0515
Connect Report Definition Details Backend (#53)
davidcui1225 Aug 18, 2020
0603e98
Migrate the project to be under a fixed Kibana version 7.8.0 (#55)
zhongnansu Aug 19, 2020
9c9df14
APIs endpoints for data reports. (#50)
fabioued Aug 21, 2020
3cdf5a5
Fix CSV Test Cases (#62)
davidcui1225 Aug 26, 2020
2de0ca5
Build Reports Scheduler ES plugin (#56)
zhongnansu Aug 26, 2020
a4a758b
Added .vscode/ to gitignore list
akbhatta Aug 19, 2020
233a8f2
Add Routes for Get Visualizations & Saved Search (#57)
davidcui1225 Sep 2, 2020
7a56cd2
Add Trimming and Header & Footer Functionality (#59)
davidcui1225 Sep 2, 2020
ba018c9
Connect Kibana-reports plugin to reports-scheduler plugin (#63)
zhongnansu Sep 3, 2020
aec6609
Initial commit to notification plugin.
akbhatta Sep 3, 2020
255513b
Hooked Edit report definition APIs (#58)
davidcui1225 Sep 4, 2020
7ed0f9e
UI Fit & Finish Pre-check Changes (#69)
davidcui1225 Sep 4, 2020
9303a25
UI Homepage Final Review Items (#71)
davidcui1225 Sep 11, 2020
b886d02
Added REST input parser respod success in JSON
akbhatta Sep 8, 2020
552fa38
Refactor schema and API [backend] (#72)
zhongnansu Sep 15, 2020
e2a6cb3
Report Details UI Final Changes (#74)
davidcui1225 Sep 15, 2020
3323192
[Fix] Add trigger type check for delete report definition API (#77)
zhongnansu Sep 15, 2020
3b39c58
[UI] Align UI to the schema & API refactor - table and detail page (#78)
zhongnansu Sep 15, 2020
304819a
Moving the notification code to new repository
akbhatta Sep 15, 2020
63937d4
Report Definition Details UI Changes (#80)
davidcui1225 Sep 15, 2020
c285241
[UI] Align create report definition UI to schema & API refactor (#83)
zhongnansu Sep 16, 2020
7f61fb7
Create Report Definition Final UI Changes (#82)
davidcui1225 Sep 17, 2020
89f778a
[Bug fix] fix small display issues in report details and report table…
zhongnansu Sep 17, 2020
99392bd
Refactoring saved search reporting APIs (#73)
dai-chen Sep 22, 2020
6bcf94c
Apply workaround to partially fix the plugin build issue (#96)
zhongnansu Sep 23, 2020
bcc8fab
Use kibana server hostname for puppeteer to access pages (#99)
zhongnansu Sep 29, 2020
d2b6109
CSV Integration for On-demand Reports (#100)
davidcui1225 Sep 29, 2020
cc06c87
Upgrade reports-scheduler and kibana-reports plugin to version v7.9.1…
zhongnansu Sep 29, 2020
8e4c76e
Add In-Context Reporting Menu (#97)
davidcui1225 Sep 30, 2020
5455e3a
changed filter types and create link from empty definitions table (#102)
davidcui1225 Sep 30, 2020
a16912a
Edit Report Definition Fix & Refactor (#103)
davidcui1225 Oct 1, 2020
62d838b
Responsive Container Width (#104)
davidcui1225 Oct 1, 2020
2de2a65
Add Functionality to Report Definition Details Buttons (#105)
davidcui1225 Oct 3, 2020
64a499b
Change Trigger Types in Edit page (#107)
davidcui1225 Oct 6, 2020
fada2b7
Small UI Fixes (#108)
davidcui1225 Oct 7, 2020
3d2acf9
Integrate notification to kibana-reports (#109)
zhongnansu Oct 7, 2020
b3cfd76
Fix enable/disable after editing schedule type (#110)
davidcui1225 Oct 7, 2020
ee48513
Removed unnecessary filters and columns (#111)
davidcui1225 Oct 7, 2020
dde9b97
removed test_data dependency from reports_table (#112)
davidcui1225 Oct 7, 2020
12f6359
removed unused filters (#113)
davidcui1225 Oct 7, 2020
8d3d98a
Update the ES query result default size from 100 to MAX_VALUE 10000 (…
zhongnansu Oct 7, 2020
55f8e8b
added toast notifications for all API actions (#116)
davidcui1225 Oct 8, 2020
4630301
Input Validation for Create Report Definition (#115)
davidcui1225 Oct 8, 2020
47e69cd
fixed toast timeout, report definition pre-select and success toast l…
davidcui1225 Oct 8, 2020
7845ca8
Time Range Fixes
davidcui1225 Oct 9, 2020
2aad0f0
Kotlin support to the plugin added
akbhatta Oct 9, 2020
3c182ed
Header & Footer Plaintext Support (#120)
davidcui1225 Oct 13, 2020
e182f48
Add context menu UI on discover (#121)
joshuali925 Oct 13, 2020
ada5a23
Converted some of the required classes to kotlin
akbhatta Oct 13, 2020
d967f85
Added settings/configuration support to plugin
akbhatta Oct 14, 2020
26c9c04
Improve logging and error handling; Fix edit report bug; Fix header/f…
zhongnansu Oct 15, 2020
cbbe832
Sanitize header and footer (#125)
joshuali925 Oct 16, 2020
3b53da3
Improve server side input validation (#128)
zhongnansu Oct 20, 2020
73c98eb
Main_utils Test Suite (#126)
davidcui1225 Oct 21, 2020
b856d6a
Update Jest Snapshots (#127)
davidcui1225 Oct 21, 2020
e0dfcde
Add download to reportDetails and reportDefinitionDetails (#131)
joshuali925 Oct 21, 2020
e1e0de2
Landing Page Minor Issues Fix (#132)
davidcui1225 Oct 22, 2020
d869501
changed css selector for visualization reports (#133)
davidcui1225 Oct 22, 2020
eb9324b
ReportDefinition and ReportInstance index operations and REST APIs cr…
akbhatta Oct 22, 2020
f52e04f
use session cookie for puppeteer to access url of security-enabled do…
zhongnansu Oct 22, 2020
4fafc17
Create from Context Menu Fix (#130)
davidcui1225 Oct 22, 2020
6e4a3de
Report Definition Details Display Change (#136)
davidcui1225 Oct 22, 2020
c3fbcf8
Update Kibana nav menu order (#137)
joshuali925 Oct 22, 2020
28eff25
Update editor selected tab and list preview style (#138)
joshuali925 Oct 22, 2020
6ed2912
Add email body template & Optimize notification setting UI (#141)
zhongnansu Oct 23, 2020
60dfada
Create/Edit Bug Fixes (#140)
davidcui1225 Oct 23, 2020
5ab79ba
Workaround to fix table refresh, disable links for pending reports (#…
joshuali925 Oct 23, 2020
5b64fd3
Update report definition UI styles (#142)
joshuali925 Oct 23, 2020
a717a3d
Adding polling and job locking API
akbhatta Oct 23, 2020
8ac5328
Fix Timezone selection and bugs (#144)
davidcui1225 Oct 23, 2020
204e693
report details fixes (#145)
davidcui1225 Oct 23, 2020
3ba2f72
fix email recipients render in edit report definition page (#146)
zhongnansu Oct 23, 2020
4368dbe
preserve pre-error edit state when an invalid update is submitted (#147)
davidcui1225 Oct 23, 2020
bb65a23
turn off Cherrio default decode HTML entities (#148)
zhongnansu Oct 26, 2020
9efd53a
Added JobSchedular integration to index operation APIs
akbhatta Oct 24, 2020
29a4de4
Removed baseUrl as it can be created from SourceType and Source.id
akbhatta Oct 26, 2020
f580ec5
Report Trigger Jest Test Coverage (#150)
davidcui1225 Oct 27, 2020
80a245c
remove "refresh interval" option from time selector (#153)
zhongnansu Oct 27, 2020
bb314e3
Report definition details/Report details test coverage increase (#154)
davidcui1225 Oct 28, 2020
d714d92
increased test coverage for report settings, added helpers test (#155)
davidcui1225 Oct 28, 2020
8c2f3c6
fix warning on report details test (#156)
davidcui1225 Oct 28, 2020
92448da
[Testing] Update existing visual/data report helper test suite (#157)
zhongnansu Oct 28, 2020
5c81d5d
Improve Delivery Test Coverage (#158)
davidcui1225 Oct 28, 2020
796dbee
Improve Coverage for Homepage Tables (#160)
davidcui1225 Oct 29, 2020
031aaed
Add github action CI/CD for kibana-reports plugin (#159)
zhongnansu Oct 29, 2020
df3f962
Improve Main Test Coverage (#161)
davidcui1225 Oct 29, 2020
af609ec
removing all modal elements (#162)
davidcui1225 Oct 29, 2020
f718c48
use fixed timezone for snapshot testing (#163)
zhongnansu Oct 30, 2020
4cdd12c
Setup github action for reports-scheduler (#164)
zhongnansu Oct 30, 2020
73903da
Add Cypress Test Framework & Create tests (#166)
davidcui1225 Nov 3, 2020
6c11c7f
Added model for all REST request/response
akbhatta Nov 2, 2020
a5b1a86
Removed IndexManager and making operation directly to Index classes
akbhatta Nov 3, 2020
3b46660
Cypress Tests for Details Pages (#169)
davidcui1225 Nov 3, 2020
62c5b1f
created edit test, renamed cypress tests to ensure order of execution…
davidcui1225 Nov 5, 2020
605514b
[Bug Fix] Context menu doesn't show up when switching between tabs fr…
zhongnansu Nov 5, 2020
41c4b5d
Update Monthly Report Trigger UI (#171)
davidcui1225 Nov 5, 2020
5843491
[Bug fix] use relative url for href attribute of report source link (…
zhongnansu Nov 5, 2020
ba45d11
Added transport actions for all the APIs
akbhatta Nov 6, 2020
5c38c1f
Changed "roles" to "access" to support multiple access patterns.
akbhatta Nov 9, 2020
2d234d5
Migrate all Kibana server side APIs to call ES-reporting APIs (#177)
zhongnansu Nov 10, 2020
c919d3a
Pagination support for list APIs
akbhatta Nov 10, 2020
a12a530
Improve typing and remove deprecated code (#179)
zhongnansu Nov 10, 2020
36343e6
Removed deprecated APIs and cleaned up code.
akbhatta Nov 10, 2020
1d3f860
Improve query_url and base_url input validation (#181)
zhongnansu Nov 11, 2020
df71743
Add unit testing for model converters (#182)
zhongnansu Nov 11, 2020
9806efb
Added user and backend role based access control to APIs
akbhatta Nov 11, 2020
055bc68
added punctuation to all toasts that don't have it (#184)
davidcui1225 Nov 11, 2020
473c90a
Align url format with all other Open Distro plugins (#185)
zhongnansu Nov 11, 2020
cfe19d4
Fixed poller permission check
akbhatta Nov 12, 2020
b39e212
[Bug Fix] Add missing import & refine error handler (#187)
zhongnansu Nov 12, 2020
b6ab0d4
Updated Toast Notifications (#188)
davidcui1225 Nov 12, 2020
778df73
Updated logging : reduced logging size where not required to be verbose
akbhatta Nov 12, 2020
0802363
adding friction for deleting a report definition (#190)
davidcui1225 Nov 12, 2020
0b02db6
BugFix: Permission denied error for background job when security is d…
akbhatta Nov 12, 2020
e980a2d
Fixed Base Url Formation for Visualizations/Saved Searches (#192)
davidcui1225 Nov 13, 2020
1e6ba4b
remove create report logic for background job (#193)
zhongnansu Nov 13, 2020
40bd3a0
Call updateReportStatus and notification API as Kibana user (#194)
zhongnansu Nov 13, 2020
e755c43
disable notification feature from UI (#198)
zhongnansu Nov 18, 2020
8ff1233
Not returning access details for non-admin users
akbhatta Nov 17, 2020
210cda2
Add Permissions Error Toasts and Input Validation Errors (#196)
davidcui1225 Nov 18, 2020
0552eb6
Adding support for filter by Roles
akbhatta Nov 18, 2020
66e4cc8
Updated Time Range Parsing in Report Details (#195)
davidcui1225 Nov 19, 2020
3f08754
Remove Persistent Permissions Error Toast (#208)
davidcui1225 Nov 19, 2020
be2e4d7
BugFix: ReportInstance is missing id field
akbhatta Nov 19, 2020
fbd4899
[reports-scheduler] Add support for Elasticsearch 7.10.0 (#203)
zhongnansu Nov 19, 2020
4ab05d1
[Kibana-reports]Add support for Kibana 7.10.0 (#205)
zhongnansu Nov 19, 2020
fe4bf02
Refine pdf/png report generated by puppeteer (#209)
zhongnansu Nov 20, 2020
70ad7ec
Disable api calls that uses Kibana default internal user (#212)
zhongnansu Nov 23, 2020
4c3be6a
More polish to visual report(pdf and png) (#211)
zhongnansu Nov 24, 2020
0bbab87
Use new API to Generate Reports from Existing Definitions (#213)
davidcui1225 Nov 24, 2020
e05cb36
Adding filtering the reports based on tenants.
akbhatta Nov 24, 2020
2948a9b
added refresh icon and updated snapshots (#216)
davidcui1225 Nov 25, 2020
1e276a2
position change for reporting plugin in side bar
zhyuanqi Nov 25, 2020
fdbd305
Using request tenant info from common-utils to filter
akbhatta Nov 25, 2020
f176e1f
Merge pull request #217 from zhyuanqi/dev
seraphjiang Nov 25, 2020
dec4856
correctly added multiselect for reports table filters (#218)
davidcui1225 Nov 25, 2020
41acf8a
[Bug fix] in-context menu download UI (#219)
zhongnansu Nov 25, 2020
ca100c9
extracted loading modal to directory, added to details pages (#221)
davidcui1225 Nov 25, 2020
fc35deb
position change for reporting plugin in side bar
zhyuanqi Nov 25, 2020
e3646f7
Lock Edit report source and Input Validation (#225)
davidcui1225 Nov 26, 2020
8c6d4d9
Merge pull request #223 from zhyuanqi/dev
seraphjiang Nov 26, 2020
dce1116
[Bug fix] Use default max size to call getAll ES API (#224)
zhongnansu Nov 26, 2020
8b6241e
Use puppeteer-core with custom chromium instead of puppeteer (#222)
joshuali925 Nov 30, 2020
dc6752c
remove logo for side bar menu (#230)
zhyuanqi Dec 1, 2020
ed0caec
Update workflow to build artifact for ARM64 (#228)
joshuali925 Dec 1, 2020
2bb5d2c
Add release notes for ODFE 1.12 (#226)
joshuali925 Dec 1, 2020
8f3d8e6
Fix release workflow artifact paths and s3 url (#231)
joshuali925 Dec 1, 2020
92ab019
Fix chromium path for puppeteer (#232)
joshuali925 Dec 1, 2020
c7ab12e
Using common-utils for Security plugin transient thread context key
akbhatta Dec 2, 2020
d464457
Using kotlin standard coding standard
akbhatta Dec 2, 2020
c178f49
Update path and artifact names in release workflow (#233)
joshuali925 Dec 2, 2020
26a5ebf
Use chromium path relative to constant file (#236)
joshuali925 Dec 2, 2020
c3ffb0f
Disable gpu on chromium (#237)
joshuali925 Dec 3, 2020
d793b98
added custom commonly used time ranges (#239)
davidcui1225 Dec 3, 2020
6a9f1b7
addressed low sev bug fixes (#241)
davidcui1225 Dec 3, 2020
eb45de9
Fix the time range display issue(timezone) on visual report (#240)
zhongnansu Dec 4, 2020
bb7e815
add double dots to fetch url (#242)
zhongnansu Dec 7, 2020
8ff39ca
Headless chrome creation script and readme file (#229)
harold-wang Dec 8, 2020
00c14ec
Optimize selectors for DOM operation to reduce possible version compa…
zhongnansu Dec 10, 2020
c15b498
defaultItemsQueryCount setting moved to general group
akbhatta Dec 11, 2020
269ffbe
Add docs link (#247)
joshuali925 Dec 11, 2020
461cdb3
Add codecov for kibana reports & Add README badges (#248)
zhongnansu Dec 14, 2020
a59e2c3
Add Download Cypress Tests (#253)
davidcui1225 Dec 16, 2020
8731aa8
Fix README badges (#257)
zhongnansu Dec 16, 2020
c8b2dd0
Definition Details Modal & Delete Toast (#258)
davidcui1225 Dec 17, 2020
e1fe9e2
Configure Max Size for Dashboards API & Minor UI Changes (#266)
davidcui1225 Dec 18, 2020
a047d10
[Bug fix] support csv report for saved search with multiple indices (…
zhongnansu Dec 18, 2020
e27146a
Add flag to chromium to use single process (#268)
joshuali925 Dec 18, 2020
2c2e218
Added Integration test for the sample on-demand report generation use…
akbhatta Dec 21, 2020
caa260d
Added error case handling for on-demand report generation
akbhatta Dec 21, 2020
c47b983
Add integration test cases for report definition rest APIs (#272)
joshuali925 Dec 22, 2020
2b1422c
Report Instance Integration Tests (#274)
davidcui1225 Dec 22, 2020
6f09ab3
Added tests for in-context menu download
akbhatta Dec 22, 2020
e40398b
added test case for listing multiple report definitions (#276)
davidcui1225 Dec 23, 2020
756f64b
fixed report trigger interval vs daily pre-fill for edit (#280)
davidcui1225 Dec 29, 2020
45abee7
Add frontend metrics for reporting (#277)
zhongnansu Jan 4, 2021
35dfe7d
Reporting backend metrics (#288)
abbashus Jan 6, 2021
e116bda
Add semaphore to block on puppeteer chromium execution (#284)
joshuali925 Jan 6, 2021
89a5fcf
Add overall frontend metrics for actions (#287)
zhongnansu Jan 6, 2021
66164c3
Support creating report for saved objects with custom id (#283)
zhongnansu Jan 6, 2021
1bf159c
Add Search box to Report Source Selection (#286)
davidcui1225 Jan 6, 2021
a5edf89
Fix reporting download button visibility issue for dashboard and visu…
zhongnansu Jan 8, 2021
3459654
fix column issue in csv reports (#293)
zhongnansu Jan 8, 2021
47cbe19
update timeRangeMatcher (#292)
zhongnansu Jan 8, 2021
d3c844f
Keep Reporting menu in Nav Menu when switching Index Patterns (#299)
davidcui1225 Jan 9, 2021
837601f
dumpcoverage for backend IT (#296)
penghuo Jan 14, 2021
e48406a
Fix Reporting CVEs (#304)
davidcui1225 Jan 21, 2021
a11a63c
Rename release artifacts in github actions (#305)
joshuali925 Jan 21, 2021
db29683
Add reporting backend to Codecov (#306)
zhongnansu Jan 22, 2021
b17f359
Rename deb and rpm packages for reports scheduler (#307)
joshuali925 Jan 26, 2021
1a5b871
Change release workflows to use new staging bucket for artifacts (#301)
gaiksaya Feb 1, 2021
e6db472
bumped odfe version to 1.13 and es/kibana to 7.10.2, added release notes
davidcui1225 Feb 5, 2021
21aebcc
Support customized server config (#313)
zhongnansu Feb 5, 2021
16380e0
add PR
davidcui1225 Feb 5, 2021
76aec0b
bumped odfe version to 1.13 and es/kibana to 7.10.2, added release no…
davidcui1225 Feb 5, 2021
70a885c
Add cypress as devdependencies (#316)
joshuali925 Feb 10, 2021
710b515
turn off tenant selection panel by adding to local storage (#317)
zhongnansu Feb 11, 2021
d67beac
Add trouble shooting section to README (#318)
zhongnansu Feb 11, 2021
c7492be
adding PR template with Linux DCO
davidcui1225 Feb 15, 2021
7e84460
Merge pull request #322 from davidcui-amzn/add-linux-dco
davidcui1225 Feb 15, 2021
9a0534d
add security_tenant info into url (#323)
zhongnansu Feb 15, 2021
74a4b8d
add global tenant for report definition urls (#324)
zhongnansu Feb 16, 2021
2c2d724
hide non-aes UI
zhongnansu Feb 26, 2021
746a7e1
Revert "Support customized server config (#313)"
zhongnansu Feb 26, 2021
7bed87f
remove view reports link from toast (#345)
zhongnansu Mar 18, 2021
f6875b6
Revert "remove view reports link from toast (#345)"
zhongnansu Apr 21, 2021
d49b2c7
Revert "hide non-aes UI"
zhongnansu Apr 21, 2021
ed561a8
remove missed server config vars
zhongnansu Apr 22, 2021
d802b18
Pass processing if doc[field] == null (#361)
uzhinskiy May 11, 2021
48951b8
fix negative csv value display to remove leading character
davidcui1225 May 14, 2021
7f7b3dd
Remove visusalization editor in visualization reports (#366)
joshuali925 May 14, 2021
fc5f050
add test case for commit 368eb03e200b755870f1ad373e67561201ab6f31 (#370)
zhongnansu May 18, 2021
9d0b004
Add dynamic wait to allow page content to render (#331)
itbm Feb 23, 2021
021ac32
Unhash page url in case store URLs in session storage is enabled from…
zhongnansu May 21, 2021
d936252
increase chromium timeout to 100s (#372)
zhongnansu May 25, 2021
84b076c
Fix csv parsing function (#367)
joshuali925 Jun 7, 2021
3cb5add
Better support sorting for csv report based on saved search (#86)
zhongnansu Jun 16, 2021
49b68c4
update CI workflow (#111)
zhongnansu Jul 6, 2021
30bcc1c
[7.10] Restrict chromium requests (#433)
joshuali925 Aug 18, 2022
bebf87b
[7.10] Upgrade puppeteer and chromium (#467)
joshuali925 Sep 14, 2022
4b32e4b
[7.10] Update default timeout (#498)
rupal-bq Oct 5, 2022
bab2fd2
[Backport] Aes 7.10 remove chromium (#604)
ps48 Jan 3, 2023
b667687
Merge remote-tracking branch 'mono/aes-7.10-Aug-patch' into aes-7.10-…
joshuali925 Jan 13, 2023
5b33851
Remove backend and level up frontend code
joshuali925 Jan 13, 2023
76a8794
Update scrollX and scrollY config for html2canvas
joshuali925 Jan 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": { "node": "10" }
}
],
"@babel/preset-react",
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-transform-modules-commonjs",
["@babel/plugin-transform-runtime", { "regenerator": true }],
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread"
]
}
78 changes: 78 additions & 0 deletions .cypress/integration/01-create.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

describe('Cypress', () => {
it('Visits Reporting homepage', () => {
cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);
});

it('Visit Create page', () => {
cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);
cy.wait(12500); // wait for the page to load
cy.get('#createReportHomepageButton').click({ force: true });
});

it('Create a new on-demand report definition', () => {
cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);
cy.wait(12500);
cy.get('#createReportHomepageButton').click();

// enter a report name
cy.get('#reportSettingsName').type('Create cypress test on-demand report');

// enter a report description
cy.get('#reportSettingsDescription').type('Description for cypress test');

// select a report source
cy.get('.euiComboBox').click({ force: true });

// create an on-demand report definition
cy.get('#createNewReportDefinition').click({ force: true });
});

it('Create a new scheduled report definition', () => {
cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);
cy.wait(12500);
cy.get('#createReportHomepageButton').click();

// enter a report name
cy.get('#reportSettingsName').type('Create cypress test scheduled report');

// enter a report description
cy.get('#reportSettingsDescription').type('Description for cypress test');

// set report trigger to Schedule option
cy.get('[type="radio"]').check({ force: true });

// create scheduled report definition
cy.get('#createNewReportDefinition').click({ force: true });
});
});
92 changes: 92 additions & 0 deletions .cypress/integration/02-edit.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

describe('Cypress', () => {
it('Visit edit page, update name and description', () => {
cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);

cy.wait(12500);

cy.get('#reportDefinitionDetailsLink').first().click();

cy.get('#editReportDefinitionButton').should('exist');

cy.get('#editReportDefinitionButton').click();

cy.url().should('include', 'edit');

cy.wait(1000);

// update the report name
cy.get('#reportSettingsName').type(' update name');

// update report description
cy.get('#reportSettingsDescription').type(' update description');

cy.get('#editReportDefinitionButton').click({ force: true });
});

it('Visit edit page, change report source and trigger', () => {
cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);

cy.wait(12500);

cy.get('#reportDefinitionDetailsLink').first().click();

cy.get('#editReportDefinitionButton').should('exist');

cy.get('#editReportDefinitionButton').click();

cy.url().should('include', 'edit');

cy.wait(1000);
cy.get('#visualizationReportSource').check({ force: true });

cy.get('#Schedule').check({ force: true });
cy.get('#editReportDefinitionButton').click({ force: true });
});

it('Visit edit page, change report source back', () => {
cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);

cy.wait(12500);

cy.get('#reportDefinitionDetailsLink').first().click();

cy.get('#editReportDefinitionButton').should('exist');

cy.get('#editReportDefinitionButton').click();

cy.url().should('include', 'edit');

cy.wait(1000);

cy.get('#dashboardReportSource').check({ force: true });

cy.get('#editReportDefinitionButton').click({ force: true });
});
});
57 changes: 57 additions & 0 deletions .cypress/integration/03-details.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

describe('Cypress', () => {
it('Visit report definition details page', () => {
cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);

cy.wait(12500);

cy.get('#reportDefinitionDetailsLink').first().click();

cy.url().should('include', 'report_definition_details');

cy.get('#deleteReportDefinitionButton').should('exist');

cy.get('#editReportDefinitionButton').should('exist');

if (cy.get('body').contains('Schedule details')) {
cy.wait(1000);
cy.get('#changeStatusFromDetailsButton').click();
} else {
cy.wait(1000);
cy.get('#generateReportFromDetailsButton').click();
}

cy.get('#deleteReportDefinitionButton').click();
});

it('Visit report details page', () => {
cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);

cy.wait(12500);
cy.get('#reportDetailsLink').first().click();

cy.url().should('include', 'report_details');
});
});
117 changes: 117 additions & 0 deletions .cypress/integration/04-download.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
/*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

describe('Cypress', () => {
it('Download from reporting homepage', () => {
cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);

cy.wait(12500);
cy.get('#landingPageOnDemandDownload').click({ force: true });
cy.get('body').then($body => {
if ($body.find('#downloadInProgressLoadingModal').length > 0) {
return;
}
else {
assert(false);
}
})
});

it('Download pdf from in-context menu', () => {
cy.visit('http://localhost:5601/app/dashboards#');
cy.wait(5000);

// click first entry in dashboards page
cy.get('tr.euiTableRow:nth-child(1) > td:nth-child(2) > div:nth-child(2) > a:nth-child(1)').click({ force: true });

// click Reporting in-context menu
cy.get('#downloadReport > span:nth-child(1) > span:nth-child(1)').click({ force: true });

// download PDF
cy.get('#generatePDF > span:nth-child(1) > span:nth-child(2)').click({ force: true });

cy.get('#reportGenerationProgressModal');
});

it('Download png from in-context menu', () => {
cy.visit('http://localhost:5601/app/dashboards#');
cy.wait(5000);

// click first entry in dashboards page
cy.get('tr.euiTableRow:nth-child(1) > td:nth-child(2) > div:nth-child(2) > a:nth-child(1)').click({ force: true });

// click Reporting in-context menu
cy.get('#downloadReport > span:nth-child(1) > span:nth-child(1)').click({ force: true });

cy.get('#generatePNG').click({ force: true });

cy.get('#reportGenerationProgressModal');
});

it('Download csv from saved search in-context menu', () => {
cy.visit('http://localhost:5601/app/discover#');
cy.wait(5000);

// open saved search list
cy.get('button.euiButtonEmpty:nth-child(3) > span:nth-child(1) > span:nth-child(1)').click({ force: true });
cy.wait(5000);

// click first entry
cy.get('li.euiListGroupItem:nth-child(1) > button:nth-child(1)').click({ force: true });

// open reporting menu
cy.get('#downloadReport').click({ force: true });

cy.get('#generateCSV').click({ force: true });
});

it('Download from Report definition details page', () => {
// create an on-demand report definition

cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);
cy.wait(12500);
cy.get('#createReportHomepageButton').click();

// enter a report name
cy.get('#reportSettingsName').type('Create cypress test on-demand report');

// enter a report description
cy.get('#reportSettingsDescription').type('Description for cypress test');

// create an on-demand report definition
cy.get('#createNewReportDefinition').click({ force: true });

cy.wait(10000);

// visit the details page of the newly created on-demand definition
cy.get('#reportDefinitionDetailsLink').first().click();

cy.url().should('include', 'report_definition_details');

cy.get('#generateReportFromDetailsButton').should('exist');

cy.get('#generateReportFromDetailsButton').click({ force: true });

cy.get('#downloadInProgressLoadingModal');
});
});
Loading