Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
9188932
Middleware setup and API to fetch dashboard configuration
nxanil May 8, 2017
ce41b6c
Indentation Issues
nxanil May 8, 2017
fce2fa4
Comments and Indentations
nxanil May 8, 2017
02b3861
Configuration Path issue
nxanil May 8, 2017
d19e7ac
Color Swapping
nxanil May 9, 2017
d34dbb8
Middleware - Elastice and VSD API
nxanil May 17, 2017
b189824
Merging Master
nxanil May 18, 2017
073a4ff
Middleware API - Data Request
nxanil May 19, 2017
fce9707
Middleware: README.md updated
nxanil May 19, 2017
557c437
Integration of Middleware
nxanil May 30, 2017
b25797b
Moving Memory Service to Middleware
nxanil May 30, 2017
0afc47c
Merging master
nxanil Jun 15, 2017
3453c94
Routing Issue
nxanil Jun 15, 2017
201e44b
API changes - To handle miss configured visualizations
nxanil Jun 16, 2017
ea7ff81
VSD Implementation
nxanil Jun 20, 2017
a6c0065
Merge branch 'master' into feature/middleware-setup
nxanil Jun 20, 2017
77c170a
Configuration Scripts changes
nxanil Jun 20, 2017
adafd38
Deleting Configuration from Frontend
nxanil Jun 20, 2017
98bab26
Fixes for Middleware Testing
nxanil Jun 20, 2017
5ad4a97
Added prefix and param eshost option
nxanil Jul 26, 2017
c641989
Added default URI for API_URL
nxanil Jul 26, 2017
4d0f66d
changing middlware api endpoints
ronakmshah Jul 26, 2017
4273e10
Setup of testing framework - Created dashboard
Aug 4, 2017
0e975e7
Reduce json fields and make changes in visualization's columns
Aug 8, 2017
84fa057
Merge branch 'master' into feature/middleware-setup
Aug 8, 2017
872cadc
Merge branch 'feature/middleware-setup' into feature/middleware-testing
Aug 10, 2017
4759fb9
Merge branch 'master' into feature/middleware-setup
Aug 10, 2017
fc05725
Merge branch 'feature/middleware-setup' into feature/middleware-testing
Aug 10, 2017
b3b9f8c
Fixed heatmap issue
Aug 10, 2017
84f4fd7
Fixed missing column issue in heatmap graph
Aug 16, 2017
b7b5564
Named test heatmap chart
Aug 16, 2017
4fee887
Added card id
Aug 16, 2017
ed20762
Setup of testing framework - Added functionality to load data json fi…
Aug 18, 2017
11455ff
Setup of testing framework - Added custom filters for taffydb
Aug 21, 2017
3461567
testing framework done
Aug 30, 2017
d73468a
removed env file
Aug 30, 2017
6eefc8b
testing module changes completed
Aug 30, 2017
9607be3
dataset image problem solved in testing
Aug 31, 2017
47d2d3d
changes in testing pages design
Sep 5, 2017
346c013
Merge branch 'master' into feature/middleware-setup
Sep 8, 2017
89f0699
fix d3 version to 4.10.0 per rajesh
billtang Sep 22, 2017
e300a4b
Added accordion and changes in design
Sep 29, 2017
db732db
uploads and original folder added
Sep 29, 2017
523d9d4
images inside uploads folder removed
Sep 29, 2017
cd783be
Visualization Testing Framework - Updations
nxanil Oct 4, 2017
ad319cc
Merge branch 'master' into feature/middleware-setup
nxanil Oct 4, 2017
fdc2c63
Merge branch 'feature/middleware-setup' into feature/middleware-testing
nxanil Oct 4, 2017
b6c9a3b
Resolved reloading issue (Cherry Picked)
Sep 11, 2017
e6bd7a5
Increase of cache time for query
Sep 13, 2017
2ab73b1
refactor the code on testing component
Oct 4, 2017
f73930b
Merge branch 'feature/middleware-testing' of https://github.com/nuage…
Oct 4, 2017
e7ac673
Refactoring to Components
nxanil Oct 4, 2017
fa980ba
notification bar added while updating status and deleting table data …
Oct 5, 2017
8934732
reload btn added on index testing page
Oct 5, 2017
22b9ebc
button icon added
Oct 5, 2017
72f9df8
refactor the code and docs readme updated about the testing configura…
Oct 12, 2017
0642334
Console errors and Indentations - PIE and BAR Graph
nxanil Oct 14, 2017
19c8378
Merge branch 'feature/middleware-testing' of https://github.com/nuage…
nxanil Oct 14, 2017
9a18727
formatting of readme file
Oct 14, 2017
e1d5e1b
Merge branch 'feature/middleware-testing' of https://github.com/nuage…
Oct 14, 2017
219650c
formatting of readme file
Oct 14, 2017
63a8073
sql dump added and read me updated
Oct 16, 2017
ab7d9c8
Merge branch 'master' into feature/middleware-setup
Nov 17, 2017
caf7e02
Configure https in middleware
Nov 20, 2017
45cc1b6
Moved environment variables into json file.
nxanil Nov 21, 2017
b4d9fd6
Removed unused configs.
nxanil Nov 22, 2017
d734411
Show error messages for API in terminal
nxanil Nov 30, 2017
20014a1
Merge branch 'master' into feature/middleware-setup
nxanil Nov 30, 2017
6dfa0e6
migrations functionality added
Dec 10, 2017
9aff93b
Merge branch 'master' into feature/middleware-setup
nxanil Dec 14, 2017
0393513
Merge branch 'feature/middleware-setup' into feature/middleware-testing
nxanil Dec 14, 2017
ea4f58c
Merge branch 'master' into feature/middleware-testing
nxanil Dec 26, 2017
ab4a2f1
Merge branch 'feature/middleware-testing' of https://github.com/nuage…
nxanil Dec 26, 2017
ffa5c59
Fix issue to fetch data from dataset
nxanil Dec 27, 2017
ea819a4
Show visualization in separate tab and send multi http request of que…
nxanil Dec 28, 2017
76d2a47
Merge branch 'master' into feature/middleware-testing
nxanil Dec 28, 2017
4f1c9e5
Remove warnings
nxanil Dec 28, 2017
749ef41
Fixed issue for VSD query
nxanil Dec 29, 2017
400a08b
Add filter options with timestamp format
nxanil Jan 3, 2018
3c2b358
Merge branch 'enhancement/default-data-source' into feature/middlewar…
nxanil Jan 3, 2018
f450345
Retain search data on refresh or reload table
nxanil Jan 5, 2018
0439fd8
Fix issue to retain selectable row and pagination on refresh
nxanil Jan 10, 2018
94fdcfd
testing platform changes i.e dataset,visualization and queries added
Jan 10, 2018
2a9afbf
testTable graphs query file name changed
Jan 10, 2018
7d2222a
Merge branch 'bug/retain-search-data' into feature/middleware-testing
nxanil Jan 10, 2018
fc03739
Rename query IDs
nxanil Jan 12, 2018
d87dbda
Merge branch 'master' into feature/middleware-setup
nxanil Jan 12, 2018
0416abc
Merge branch 'feature/middleware-setup' into feature/middleware-testing
nxanil Jan 12, 2018
38b9522
Merge branch 'bug/general-error' into feature/middleware-testing
nxanil Jan 12, 2018
3bb96c0
Merge branch 'enhancement/stacked-bar-graph' into feature/middleware-…
nxanil Jan 15, 2018
cff3c9c
Merge branch 'enhancement/text-graph-dynamic-font' into feature/middl…
nxanil Jan 16, 2018
7c0cd92
Merge branch 'enhancement/stacked-bar-graph' into feature/middleware-…
nxanil Jan 16, 2018
82aed3d
Merge branch 'enhancement/negative-value-lineGraph' into feature/midd…
nxanil Jan 16, 2018
ed0ea7b
Merge branch 'enhancement/negative-value-lineGraph' into feature/midd…
nxanil Jan 16, 2018
ac4f3dd
Merge branch 'enhancement/stacked-bar-graph' into feature/middleware-…
nxanil Jan 18, 2018
bbf2462
Merge branch 'enhancement/stacked-bar-graph' into feature/middleware-…
nxanil Jan 18, 2018
493e940
Merge branch 'master' into feature/middleware-testing
nxanil Jan 19, 2018
9a9e8d2
Merge branch 'enhancement/heatmap-color' into feature/middleware-testing
nxanil Jan 19, 2018
14ca77a
Merge branch 'enhancement/handle-empty-data-pie-chart' into feature/m…
nxanil Jan 22, 2018
40a5f2e
Merge branch 'enhancement/stacked-bar-graph' into feature/middleware-…
nxanil Jan 22, 2018
57a7d77
redirect url click and capture and seeder script completed
Jan 22, 2018
b3eaf48
Revert code
nxanil Jan 22, 2018
340d2aa
Merge branch 'enhancement/heatmap-color' into feature/middleware-testing
nxanil Jan 23, 2018
cf899b7
Merge branch 'enhancement/handle-empty-data-pie-chart' into feature/m…
nxanil Jan 23, 2018
dfc6e4f
Fix heatmap Y label issue
nxanil Jan 24, 2018
ea37a52
after filter screenshot taken
Feb 6, 2018
2192803
Merge master into feature/middleware-testing
nxanil Feb 12, 2018
296069c
Revert changes
nxanil Feb 12, 2018
621bef5
Merge master into feature/middleware-setup
nxanil Feb 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REACT_APP_API_URL=http://localhost:8010/reports/api/
IMAGE_UPLOADS_URL=/public/uploads/

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ npm-debug.log
*.swp
*.zip
reports/*
.env
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ Here is a list of environment variable that can be set to configure the visualiz
* `REACT_APP_ELASTICSEARCH_HOST` (**required**) allows you to specify the Elastic Search server (ex: http://localhost:9200)
* `REACT_APP_VSD_API_ENDPOINT` allows to specify the VSD API endpoint (ex:https://vsd.com:8443/nuage/api/)

## Middleware Setup

1. Go inside the `visualization-framework/server` folder
2. Install all dependencies using `npm install` (it will take some time, please be patient)
3. Copy /server/.env.example to /server/.env and change the paramets as per your settings.
4. Run the application using `npm start` command.
5. Run the lint using `npm run lint` command.

### Testing Framework Setup
1.Install ChromeDriver and Selenium
2.Create a database and run the sql script located at server/sql-dump
3.Kindly Update the mysql connection settings in server/.env
4.Testing Url can be located at http://localhost:3000/testing/
5.Please run above steps before npm start of the middleware setup

## Middleware APIs
1. Dashboard Confirguration: http://HOSTNAME/api/dashboards/:dashboardname

## kitchenSink

Expand Down
39 changes: 39 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The philosophy of the Visualization Framework is to provide a library to quickly
- [VariationTextGraph](#variationtextgraph)
- [Query configuration](#query-configuration)
- [Services](#services)
- [Testing Configuration](#testing-configuration)


## File structure
Expand Down Expand Up @@ -337,6 +338,8 @@ Display nice Pie or Donut graphs

- **highlight** (Array of columns) Highlighted the rows if value of columns is not null
- **hidePagination** Hide paging and search bar if data size is less than pagination limit - Default is `true`
- **searchBar** Default is `true`
- **searchText** Give column name === value,
- **border**
- **top** set top border. Default is `solid 1px #ccc`
- **bottom** set bottom border. Default is `0`
Expand Down Expand Up @@ -398,6 +401,9 @@ The query configuration allows the Visualization to know which [service](#servic
}
```




Important note: The visualization framework is using a `context` to determine all the information needed.
If you need to pass a specific parameter, check out this example:

Expand Down Expand Up @@ -462,3 +468,36 @@ Just tell `ServiceManager` that you want to register the service using the follo
```

The second argument is optional. If you do not provide a name, the service identifier will be automatically used.

## Testing configuration
### Installation Procedure

1.Install **ChromeDriver** and **Selenium** on your machine.
For reference, please follow the link for installation [install-chromedriver-selenium](https://gist.github.com/ziadoz/3e8ab7e944d02fe872c3454d17af31a5)

### Run tests
1.Go to testing url http://localhost:3000/testing/ and click button **New Report** to start generating report.

![reports](https://user-images.githubusercontent.com/14901092/31492666-ba459f0e-af69-11e7-993a-5474cbc36e26.png)

2.**Status column** will show **EXECUTING** status of that report. Keep on running this report until status changes to **COMPLETED**.

3.We can also add as many **dashboards** in our testing platform by adding name of the dashboard in **name column** and associated **url** of the dashboard to test in **t_dashboards table**.
![t_dashboards](https://user-images.githubusercontent.com/14901092/31498449-9057203a-af7f-11e7-887b-4167fad7f78f.png)

4.We will fetch all the charts using the **url** column of **t_dashboards table** like **http://localhost:3000/dashboards/aarDomain**.

5.If we want to add any scenario to the url of the dashboard just add query string like given in this url, **http://localhost:3000/dashboards/testDashboard?dataset=Scenario1**

6.We will test visualization frameworks for different scenarios by adding multiple scenarios in **datafile column** of **t_dashboard_datasets** table.
![t_dashboard_datasets](https://user-images.githubusercontent.com/14901092/31498636-26de4844-af80-11e7-8ce5-7a744fb9b690.png)

Then url will look like below:
**http://localhost:3000/dashboards/testDashboard?dataset=Scenario1**
This will fetch all the scenarios given in **Scenario1** folder like given below :
**[/visualization-framework/server/app/configurations/dataset/Scenario1/test-bar-graph.json]**


7.When we run testing report it will save all the **screenshots** having directory structure in the form of **[report_id/dashboard_id/dataset_id/name_of_the_chart.png]** in **[/server/public/dashboards]** folder.

![report_deatil](https://user-images.githubusercontent.com/14901092/31492664-b9b1124e-af69-11e7-960e-c13036da4463.png)
Loading