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

Bugfixes on dummy data generation and dummy data panel #53

Closed
wants to merge 254 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
23e5279
merging w upstream rd 2
Sep 28, 2020
13d006f
merged w upstream
Sep 28, 2020
654762d
installed dependencies
cwalker3011 Sep 28, 2020
3b8c961
sass compiling package.json
cwalker3011 Sep 28, 2020
36be520
set up testing configuration
cwalker3011 Sep 28, 2020
a8919f5
set up jest and babel to run tests, created a setup file for the enzy…
cwalker3011 Sep 29, 2020
7821614
Merge pull request #1 from cwalker3011/workingbranch
cwalker3011 Sep 29, 2020
b6f6124
Merge pull request #2 from oslabs-beta/staging
frakes413 Sep 29, 2020
1916bed
Merge branch 'master' of https://github.com/oslabs-beta/SeeQR
cwalker3011 Sep 29, 2020
317c242
merge from upstream after testing initialized
Sep 29, 2020
3004a55
Left panel testing started
caseyescovedo Sep 30, 2020
ef7dee8
Merge pull request #3 from caseyescovedo/leftPanelTesting
caseyescovedo Sep 30, 2020
7abb751
Merge pull request #4 from oslabs-beta/staging
frakes413 Sep 30, 2020
a1f482b
Merge branch 'master' of https://github.com/oslabs-beta/SeeQR into ma…
Sep 30, 2020
1641213
changed compare test file name to match convention; completed basic t…
Sep 30, 2020
bf63e48
accidental arbitrary re-save
Sep 30, 2020
33e319c
merging with left-panel testing
JustinD-A Sep 30, 2020
4feec3d
(testing) front end testing suite
JustinD-A Oct 1, 2020
2893853
frontend testing suite and live sass compiling bug-fix
JustinD-A Oct 1, 2020
6a362a8
Merge pull request #5 from JustinD-A/testing
JustinD-A Oct 1, 2020
d9abe67
Merge pull request #6 from oslabs-beta/staging
caseyescovedo Oct 1, 2020
367194b
Merge branch 'master' of https://github.com/oslabs-beta/SeeQR
cwalker3011 Oct 1, 2020
a5792a3
added + styled checkbox to track (non-functional)
cwalker3011 Oct 1, 2020
4cbe094
checkbox changes new property in state
cwalker3011 Oct 1, 2020
5c55fa1
checkbox works, WIP func for non-tracked queries
cwalker3011 Oct 1, 2020
23e156d
everything working with tracked/untracked queries
cwalker3011 Oct 1, 2020
2cc5df8
codemirror fix
cwalker3011 Oct 1, 2020
c3932c6
removed test code
cwalker3011 Oct 1, 2020
835cb21
Merge pull request #8 from cwalker3011/querypanel
cwalker3011 Oct 2, 2020
94007f5
schema modal overhaul begun
Oct 2, 2020
703e249
Merge pull request #9 from oslabs-beta/staging
caseyescovedo Oct 2, 2020
4802d6a
working on comparison table
JustinD-A Oct 2, 2020
6d712ea
Merge branch 'master' into modalUpdates
Oct 2, 2020
0eec407
Merge branch 'master' into graph
JustinD-A Oct 2, 2020
59da9e8
boilerplate for dummy data modal
cwalker3011 Oct 2, 2020
a142496
slightly more than boilerplate
cwalker3011 Oct 2, 2020
a7d0db8
feature update: updated bar chart to group data by schema and removed…
JustinD-A Oct 2, 2020
a96898c
Merge pull request #10 from JustinD-A/graph
JustinD-A Oct 2, 2020
9f58701
schema modal dropdown almost there
Oct 2, 2020
4c931f9
Merge pull request #11 from oslabs-beta/staging
frakes413 Oct 3, 2020
ef5cf25
working on dropdown menu
cwalker3011 Oct 3, 2020
57a13d8
Merge branch 'master' into modalUpdates
Oct 3, 2020
1c350ef
Merge branch 'master' into dummymodal
cwalker3011 Oct 3, 2020
6ef8a18
schema modal display functioning properly
Oct 3, 2020
422b2ac
Merge pull request #12 from frakes413/modalUpdates
frakes413 Oct 3, 2020
b0feab7
Merge pull request #13 from oslabs-beta/staging
cwalker3011 Oct 3, 2020
70cd5ac
dropdown working
cwalker3011 Oct 3, 2020
81b1dda
Merge branch 'master' into dummymodal
cwalker3011 Oct 3, 2020
f50b80f
non functional table rendering to page
cwalker3011 Oct 3, 2020
ad50a79
dummy data modal functional
cwalker3011 Oct 3, 2020
2f39aff
schema modal copy functionality connected to back-end; new channel ad…
Oct 3, 2020
56a75f6
dummy data modal front end complete
cwalker3011 Oct 3, 2020
537ee5e
Merge pull request #15 from cwalker3011/dummymodal
cwalker3011 Oct 3, 2020
5f278c3
copy DB functionality almost complete
Oct 3, 2020
8c78894
Merge pull request #16 from oslabs-beta/staging
caseyescovedo Oct 3, 2020
1bcf83e
Merge branch 'master' into schemaModalLogic
Oct 3, 2020
f5fc1f2
merging with master
JustinD-A Oct 3, 2020
756df60
Merge branch 'master' into pg_dump_schema
JustinD-A Oct 3, 2020
fa65463
copy DB pieces successfully linked; still working on formatting the p…
Oct 4, 2020
0db33f8
proof of concept for DB copying functionality; file-path still needs …
Oct 4, 2020
582a667
copy db functionality working properly now; filepath is specified cor…
Oct 5, 2020
75ef988
copy-db channel actually deleted now; some pseudocode added
Oct 5, 2020
3d73d99
Merge pull request #17 from frakes413/schemaModalLogic
frakes413 Oct 5, 2020
74015e4
Merge pull request #18 from oslabs-beta/staging
JustinD-A Oct 5, 2020
fa9c4f0
Pseudocode for dummyData generator, connected getSchemaLayout from fr…
JustinD-A Oct 5, 2020
0e3d224
Merge pull request #19 from JustinD-A/dummy_data
JustinD-A Oct 5, 2020
03d4d64
Merge pull request #20 from oslabs-beta/staging
frakes413 Oct 5, 2020
dfbf449
prop drilled currentSchema and tableList into dummy data modal
cwalker3011 Oct 5, 2020
fb9734e
Schema Modal UI updated
caseyescovedo Oct 5, 2020
2f8841f
Schema Modal resetting to default upon closing event.
caseyescovedo Oct 5, 2020
361b238
error between models.ts and channels.ts
cwalker3011 Oct 6, 2020
5feb99f
Deleted SchemaInput file.
caseyescovedo Oct 6, 2020
ebe664a
Merge pull request #21 from caseyescovedo/schemaModalUI
caseyescovedo Oct 6, 2020
6dc2f51
Merge pull request #22 from oslabs-beta/staging
frakes413 Oct 6, 2020
eda4145
commit for posterity
cwalker3011 Oct 6, 2020
1c25508
merging with master
JustinD-A Oct 6, 2020
d2736b3
Merge branch 'master' into dummy_data
JustinD-A Oct 6, 2020
dd18109
Merge branch 'master' into dummydatawork
cwalker3011 Oct 6, 2020
dae5152
test data generation is working Co-authored-by: Justin Dury-Agri just…
cwalker3011 Oct 6, 2020
6bd922d
Merge pull request #23 from cwalker3011/dummydatawork
cwalker3011 Oct 6, 2020
9f5d39e
Merge pull request #24 from oslabs-beta/staging
frakes413 Oct 6, 2020
195af15
basic faker func Co-authored-by: Sam Frakes samuelafrakes@gmail.com
cwalker3011 Oct 6, 2020
d53ed19
about to mess with some async Co-authored-by: Sam Frakes samuelafrake…
cwalker3011 Oct 6, 2020
971a86e
fixed schemaLayout generation and have dummy data generation functional
cwalker3011 Oct 6, 2020
504a037
Merge pull request #25 from cwalker3011/fakerfunction
cwalker3011 Oct 6, 2020
26bde9e
Merge pull request #26 from oslabs-beta/staging
JustinD-A Oct 6, 2020
a122be4
merging with master
JustinD-A Oct 6, 2020
fac8979
merging with master
JustinD-A Oct 6, 2020
e1a9134
merging with upstream
caseyescovedo Oct 6, 2020
f0605c9
Pulling new upstream
caseyescovedo Oct 6, 2020
4baf60f
Front-end tableList state now properly updating upon import/copying o…
Oct 7, 2020
a6cb3cf
state update fixed in input-schema channel; bug fix for front-end tab…
Oct 8, 2020
9f27520
Bug fix -> DDModal dropdown now updating properly when tab is changed
Oct 8, 2020
b7d160e
scroll bar added to DDModal dropdown; UI of scrollbar needs some touc…
Oct 8, 2020
018de9f
Merge pull request #27 from frakes413/DDModalStateBugfix
cwalker3011 Oct 8, 2020
4417bca
New feature: generates .csv files of dummy data.
caseyescovedo Oct 8, 2020
1d34200
Merge pull request #28 from oslabs-beta/staging
frakes413 Oct 8, 2020
90aa9cb
Merge branch 'master' of https://github.com/oslabs-beta/SeeQR into ma…
caseyescovedo Oct 8, 2020
3353a9e
Merge branch 'csv' into csvCopy
caseyescovedo Oct 8, 2020
8017b55
Merge pull request #29 from caseyescovedo/csvCopy
caseyescovedo Oct 8, 2020
e73d2ae
Merge pull request #30 from oslabs-beta/staging
JustinD-A Oct 8, 2020
4d31aad
merging with upstream
JustinD-A Oct 8, 2020
eb19a79
removed unused components from app, fixed small UI bugs
cwalker3011 Oct 8, 2020
2d2f046
testing PostgreSQL copy from command on mac
JustinD-A Oct 8, 2020
6e74093
Merge branch 'dummy_data' of https://github.com/JustinD-A/SeeQR into …
cwalker3011 Oct 8, 2020
37dad8e
dummy data generation functional for DBs w/o FK constraints AND singl…
Oct 8, 2020
a0b6220
Merge pull request #31 from frakes413/csvFileCopy
frakes413 Oct 8, 2020
2426ed6
Merge pull request #32 from oslabs-beta/staging
JustinD-A Oct 8, 2020
7ceaafe
Merge branch 'master' into componentsUI
cwalker3011 Oct 8, 2020
9515580
Merge pull request #33 from cwalker3011/componentsUI
cwalker3011 Oct 8, 2020
e758126
Merge pull request #34 from oslabs-beta/staging
frakes413 Oct 8, 2020
9776ebc
DDModal table clears upon submitting request
cwalker3011 Oct 10, 2020
f9eb4a7
front-end mesages for errors in execute function
cwalker3011 Oct 10, 2020
3dcb71d
Merge pull request #35 from cwalker3011/ddFrontendFix
cwalker3011 Oct 10, 2020
9512b21
Merge pull request #36 from oslabs-beta/staging
JustinD-A Oct 10, 2020
1f20576
all dummy data types that currently have corresponding switch cases n…
Oct 10, 2020
940e952
Merge pull request #37 from frakes413/DD_DataTypes
frakes413 Oct 10, 2020
3363227
(UI improvement) stable coloring for compare graph
JustinD-A Oct 10, 2020
2000ec0
Merge pull request #38 from oslabs-beta/staging
JustinD-A Oct 10, 2020
7862519
Merge branch 'master' of https://github.com/oslabs-beta/SeeQR into gr…
JustinD-A Oct 10, 2020
372d91c
Merge pull request #39 from JustinD-A/graph_color
JustinD-A Oct 10, 2020
954f131
Merge pull request #40 from oslabs-beta/staging
frakes413 Oct 10, 2020
a50c8c1
ehh
cwalker3011 Oct 10, 2020
a7201ad
removed unnecessary imports from SchemaModal.tsx
Oct 10, 2020
30472a0
bugfix - error pop-up no longer appearing when user chooses 'cancel' …
Oct 10, 2020
515a002
schema tabs bug fix
JustinD-A Oct 10, 2020
6b6aacd
Merge pull request #41 from frakes413/CancelImportBugfix
frakes413 Oct 10, 2020
b9127cf
Merge pull request #42 from oslabs-beta/staging
JustinD-A Oct 10, 2020
f1591fd
Merge branch 'master' into sizingAndScroll
cwalker3011 Oct 10, 2020
bed715d
Merge pull request #43 from cwalker3011/sizingAndScroll
cwalker3011 Oct 11, 2020
8e32043
Merge pull request #44 from oslabs-beta/staging
frakes413 Oct 11, 2020
36c7ee7
Merge branch 'master' into tab_bug
JustinD-A Oct 11, 2020
6ac86fe
Merge pull request #45 from JustinD-A/tab_bug
JustinD-A Oct 11, 2020
48720a1
Merge pull request #46 from oslabs-beta/staging
cwalker3011 Oct 11, 2020
de01b08
pg dumps straight to container, no local file
cwalker3011 Oct 15, 2020
fbd9510
merging with csv writing fixes
JustinD-A Oct 15, 2020
051cb0e
Merge branch 'CSVvolumes' of https://github.com/cwalker3011/SeeQR int…
JustinD-A Oct 15, 2020
5f77273
writing to containers, still need to fix reading functionality
JustinD-A Oct 15, 2020
dacccdc
csv file with line breaks
cwalker3011 Oct 15, 2020
3133c86
SOLUTION ON MAC OS csv files written to container and copied in from …
cwalker3011 Oct 15, 2020
e96231b
removed excess pseudocode, added needed notes
cwalker3011 Oct 15, 2020
3b8353c
test for windows solution
cwalker3011 Oct 15, 2020
1aa03ab
merging with solution for windows
JustinD-A Oct 15, 2020
d32f435
merging with solution for windows
JustinD-A Oct 15, 2020
fca534e
Merge branch 'CSVvolumes' of https://github.com/cwalker3011/SeeQR int…
JustinD-A Oct 15, 2020
207dc29
Merge pull request #47 from cwalker3011/CSVvolumes
cwalker3011 Oct 15, 2020
5ef23d8
Merge pull request #48 from oslabs-beta/staging
caseyescovedo Oct 15, 2020
06cca53
foreign key compliance work
JustinD-A Oct 15, 2020
5b478cb
Merge branch 'foreign' of https://github.com/JustinD-A/SeeQR into FK_…
Oct 15, 2020
052a19e
FK and PK conditional blocks added to generateDummyData function
Oct 15, 2020
1f82ffb
first write-out of keyObject generation
JustinD-A Oct 16, 2020
50f6434
Updated table list upon query submit, added schema labels to comparis…
caseyescovedo Oct 16, 2020
986f64d
controlled primary and foreign key generation
JustinD-A Oct 16, 2020
f5c4a90
Updated splash page
caseyescovedo Oct 16, 2020
006dffb
Merge pull request #49 from caseyescovedo/newUI
caseyescovedo Oct 16, 2020
cb6a318
Merge pull request #50 from oslabs-beta/staging
JustinD-A Oct 16, 2020
3e7dd42
breaking change when passing keyObject into generateDummyData (unreso…
Oct 16, 2020
aeacaed
Merge branch 'master' into foreign
JustinD-A Oct 16, 2020
ea04b78
hollow copy bug fixed; primary and foreign keys now populating as des…
Oct 16, 2020
cc0face
adding functionality to drop and add key columns for dd generation, m…
JustinD-A Oct 16, 2020
2719f3b
Merge branch 'FK_Compliance' of https://github.com/frakes413/SeeQR in…
JustinD-A Oct 16, 2020
e329265
Merge branch 'FK_Compliance' of https://github.com/frakes413/SeeQR in…
JustinD-A Oct 16, 2020
eec5d7f
Merge branch 'master' into FK_Compliance
Oct 16, 2020
14cebe5
created correct pathing to docker-compose file for mac production build
cwalker3011 Oct 17, 2020
0bdca62
Merge pull request #51 from cwalker3011/MacExecutable
cwalker3011 Oct 17, 2020
dfbdbc2
Merge pull request #52 from oslabs-beta/staging
frakes413 Oct 17, 2020
d8a9a8d
working on async/await functionality in table manipulation
JustinD-A Oct 17, 2020
59ce4e0
Merge branch 'master' into foreign
JustinD-A Oct 17, 2020
da5a2ec
Merge branch 'foreign' of https://github.com/JustinD-A/SeeQR into FK_…
Oct 17, 2020
6cd8019
foreign key compliant data without constraints now being generated pr…
Oct 17, 2020
1bda312
Merge branch 'FK_Compliance' of https://github.com/frakes413/SeeQR in…
JustinD-A Oct 17, 2020
597cacb
Removed all unused files, deleted success popup, refactored DummyData…
cwalker3011 Oct 17, 2020
e04967a
Merge pull request #53 from cwalker3011/cleanup
cwalker3011 Oct 17, 2020
fc5bb89
fixed dummy data table overflow and codemirror max-width
cwalker3011 Oct 17, 2020
386483d
Merge pull request #54 from oslabs-beta/staging
caseyescovedo Oct 17, 2020
17da773
merging from master
caseyescovedo Oct 17, 2020
daa7b82
Merge pull request #55 from caseyescovedo/uiUpdates
caseyescovedo Oct 17, 2020
36733cf
generating fk-compliant data with nested .thens to handle async funct…
JustinD-A Oct 17, 2020
a143735
99% functional foreign key compliant data generation without constraints
Oct 17, 2020
4470a3a
Merge pull request #56 from oslabs-beta/staging
frakes413 Oct 17, 2020
7d4e9b4
merge with upstream complete
Oct 17, 2020
a2ef818
merged with upstream
JustinD-A Oct 17, 2020
1088afb
fixed comparison
cwalker3011 Oct 17, 2020
0a6132d
Merge pull request #57 from cwalker3011/comparisonFix
cwalker3011 Oct 17, 2020
3fff6f5
Merge pull request #58 from oslabs-beta/staging
JustinD-A Oct 17, 2020
9c9d785
foreign key compliant dummy data generating fully for small amounts a…
Oct 17, 2020
37a7f85
Merge branch 'master' into FK_Testing
Oct 17, 2020
01a92d8
dummyDataExecute function commented out for now
Oct 17, 2020
7e7f6ef
Merge pull request #59 from frakes413/FK_Testing
frakes413 Oct 17, 2020
9f0eb5d
Merge pull request #60 from oslabs-beta/staging
JustinD-A Oct 17, 2020
7ab3f5f
dummy data generation for csv files that aren't too big for the comma…
Oct 18, 2020
ace002d
'generate-dummy-data' channel cleaned up a bit (unnecessary processes…
Oct 19, 2020
9a302a4
Merge pull request #61 from frakes413/FK_ComplianceContinued
frakes413 Oct 19, 2020
52b4ad6
Merge pull request #62 from oslabs-beta/staging
frakes413 Oct 19, 2020
308263d
Merge branch 'master' into foreign
JustinD-A Oct 19, 2020
a6569ad
third step added to writeCSV function in dummyDataMain.ts to add back…
Oct 19, 2020
8950352
Dummy data dropdown updates upon query completion
caseyescovedo Oct 19, 2020
94eb24b
Merge pull request #63 from caseyescovedo/queryvalidator
caseyescovedo Oct 19, 2020
9363a18
Merge pull request #64 from oslabs-beta/staging
JustinD-A Oct 19, 2020
ab868eb
adding back constraints after dummy data generation is almost fully f…
Oct 19, 2020
d3c8d4c
Merge branch 'master' into AddBackKeyConstraints
Oct 19, 2020
8d1063c
Updates to README new images and gifs to reflect new features and UI …
cwalker3011 Oct 19, 2020
1d12619
added iteration team to readme
cwalker3011 Oct 19, 2020
bce168c
Merge pull request #65 from cwalker3011/readme
cwalker3011 Oct 19, 2020
2a845d0
primary and foreign key constraints now successfully being added back…
Oct 19, 2020
3ca2739
Merge pull request #66 from oslabs-beta/staging
JustinD-A Oct 19, 2020
9c86c40
Merge branch 'master' into AddBackKeyConstraints
Oct 19, 2020
4d3c420
Merge pull request #67 from frakes413/AddBackKeyConstraints
frakes413 Oct 19, 2020
8a4831c
Merge pull request #68 from oslabs-beta/staging
cwalker3011 Oct 19, 2020
ff86461
merging with master
JustinD-A Oct 19, 2020
0bd7a58
Bugfix for dummy-data generation on Windows
JustinD-A Oct 19, 2020
58a5636
Merge pull request #69 from JustinD-A/windows_DD_bugfix
JustinD-A Oct 19, 2020
f10933a
Merge pull request #70 from oslabs-beta/staging
frakes413 Oct 19, 2020
c2c5d3d
now successfully setting a main state property based on whether or no…
Oct 20, 2020
af6bda0
loading modal now appears anytime during and only during an async ope…
Oct 20, 2020
2d0b444
Merge pull request #71 from frakes413/dummyDataLoading
frakes413 Oct 20, 2020
d0bd7b5
Merge pull request #72 from oslabs-beta/staging
caseyescovedo Oct 20, 2020
9c74d36
more robust data generation handling in progress
Oct 21, 2020
fca7600
functionality/logic to handle larger data requests being built
Oct 21, 2020
baf0808
now successfully generating 100,000 rows of foreign-key compliant dum…
Oct 21, 2020
fcc9d79
commented out some unecessary console logs that were wasting processi…
Oct 21, 2020
b053fd6
added upperLimit for Windows OS
Oct 21, 2020
d85316d
Merge pull request #73 from frakes413/increaseDDGenCapacity
frakes413 Oct 21, 2020
3b84e06
Merge pull request #74 from oslabs-beta/staging
JustinD-A Oct 21, 2020
3054be5
Windows bugfix for new implementation of DD generation
JustinD-A Oct 21, 2020
0543587
Merge pull request #75 from JustinD-A/windows_bugfix
JustinD-A Oct 21, 2020
c32f293
Merge pull request #76 from oslabs-beta/staging
frakes413 Oct 21, 2020
876d59a
fixed anonymous volumes, container/volume pruning
cwalker3011 Oct 21, 2020
d674f23
fix for windows DD generation fix
cwalker3011 Oct 21, 2020
4825d9c
Merge pull request #77 from cwalker3011/windowsfixfix
cwalker3011 Oct 21, 2020
82ed7b5
Merge pull request #78 from oslabs-beta/staging
frakes413 Oct 21, 2020
fc20ff0
Merge branch 'master' into anon_volumes
cwalker3011 Oct 21, 2020
fc05b43
Merge pull request #79 from cwalker3011/anon_volumes
cwalker3011 Oct 21, 2020
c6685fd
Merge pull request #80 from oslabs-beta/staging
frakes413 Oct 21, 2020
934acc5
merging with last commit before launch
JustinD-A Oct 21, 2020
567356f
merged with master
JustinD-A Oct 21, 2020
ded23e4
cleaned dummy data generation file
JustinD-A Oct 21, 2020
3b8ad98
cleaned input-schema function in channels.ts
JustinD-A Oct 21, 2020
c1d4db7
cleaned and refactored dummyDataMain and channels for executable
JustinD-A Oct 21, 2020
3bbad1a
finished cleaning backend
JustinD-A Oct 21, 2020
49c431b
added functionality for production build in main.ts to handle volume …
JustinD-A Oct 21, 2020
edc145e
patched functionality to handle tracked CREATE queries --- Co-authore…
JustinD-A Oct 21, 2020
e767bc7
Merge pull request #81 from JustinD-A/cleaning
JustinD-A Oct 21, 2020
404feb4
Added comments to various frontend components
caseyescovedo Oct 21, 2020
7ee994a
Merge pull request #82 from oslabs-beta/staging
caseyescovedo Oct 21, 2020
43aa50d
Merge branch 'master' into cleanup
caseyescovedo Oct 21, 2020
21e19c9
Merge pull request #83 from caseyescovedo/cleanup
caseyescovedo Oct 21, 2020
98f0020
Merge pull request #84 from oslabs-beta/staging
cwalker3011 Oct 21, 2020
85d2075
fixes to dummy data generation and error handling on dummy data panel
cwalker3011 Oct 22, 2020
f403d16
Merge pull request #85 from cwalker3011/lastminutefixes
cwalker3011 Oct 22, 2020
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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/node_modules
/.vscode
/dist
/tsCompiled
*/.DS_Store
Expand Down
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"savePath": "/frontend/assets/stylesheets/css",
"extensionName": ".css"
}
],
"liveSassCompile.settings.generateMap": false
}
74 changes: 42 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,7 @@ To get started on contributing to this project:
3. Npm install
1. Run `npm install` for application-specific dependencies.
2. Run global install for: `'cross-env'`, `'webpack'`, `'webpack-dev-server'`, `'electron'`, and `'typescript'`.
4. Enable sass compiling to css directory

```json
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"savePath": "/frontend/assets/stylesheets/css"
}
],
"liveSassCompile.settings.generateMap": false,
```

4. Install [Live Sass Compile](https://github.com/ritwickdey/vscode-live-sass-compiler) VSCode extension (settings are configured in the .vscode file in this repo), or set up your preferred Sass compiler
5. To run application during development
1. `npm run dev` to launch Electron application window and webpack-dev-server.
2. `npm run resetContainer` to reset the container and clear pre-existing SeeQR databases. If error “can’t find postgres-1” is encountered, it is simply an indication that the container is already pruned.
Expand All @@ -76,7 +65,7 @@ To get started on contributing to this project:

## Interface & Features
<div align="center">
<img src="./frontend/assets/images/splash_screencap.png"/><br /><br /><img src="./frontend/assets/images/wholeinterface.png"/><p>The whole interface in a nutshell</p>
<img src="./frontend/assets/images/splash_page.png" width=800/><br /><br /><img src="./frontend/assets/images/interface.png" width=800/><p>The whole interface in a nutshell</p>
</div>

- Schema
Expand All @@ -87,63 +76,65 @@ To get started on contributing to this project:
- Query input

- The center panel is where the query input text field is located, utilizing CodeMirror for SQL styling.
- Provide a unique and concise label for the query as its shorthand identifier in later comparisons against other queries.
- Users have option to execute a tracked or untracked query—simply check the box and provide a label to identify the query in later comparisons against other queries.
- Toggle the submit button in the bottom left to send the query to the selected database.
<br /><br />
<div align="center">
<img src="./frontend/assets/images/query1.png" width=300/> <br /><br />
<img src="./frontend/assets/images/query2.png" width=300/>
<img src="./frontend/assets/images/query_demo.gif" width=600/>
</div>
<br /><br />

- Data

- The data table displays data returned by the inputted query.
<div align="center">
<img src="./frontend/assets/images/data.png" width=300/><br /><br />
<img src="./frontend/assets/images/data.png" width=600/><br /><br />
</div>

- Input Schema and Tabs
- New schemas can be uploaded into the application by clicking the "+" button above the main panel in the form of a ```.sql``` or a ```.tar``` file, or the schema script itself.
- Newly uploaded schemas are displayed as tabs, which can be activated to run tests against during application session. These schemas (and the databases they're connected to) persist beyond the application session.
- New schemas can be uploaded into the application by clicking the "+" button above the main panel in the form of a ```.sql``` or a ```.tar``` file.
- Users can also make a copy of an existing schema, with or without data included.
- Newly uploaded schemas are displayed as tabs, which can be activated to run tests against during application session.
<div align="center">
<img src="./frontend/assets/images/input_schema_demo.gif"/>
</div>

- Generate Dummy Data
- Users can generate dummy data to fill in a selected scheama's tables—currently supported data types are:
- INT, SMALLINT, and BIGINT
- please fill in
- Dummy data is foreign-key complaint.
- please fill in the details
<div align="center">
<img src="./frontend/assets/images/schemamodal.png" width=300/>
<img src="./frontend/assets/images/dummy_data_demo.gif"/>
</div>

- History

- The history table shows the latest queries the user submitted irrespective of the database.
- The history table also displays the total rows returned by the query and the total query execution time.
<div align="center">
<img src="./frontend/assets/images/history.png" width=300/>
<img src="./frontend/assets/images/history.png" width=600/>
</div>

- Results

- The results table displays the scan type, runtime, and the amount of loops the query had to perform in addition to the analytics data available on the history table.
- The results table is schema-specific, showing only query results from the active schema.
<div align="center">
<img src="./frontend/assets/images/results.png" width=300/>
</div>

- Compare

- The comparison table is flexible to the user’s preferences.
- The user selects which queries they want to compare side by side from the ‘Add Query Data’ drop down.
- They can add and remove queries as they see fit.

<div align="center">
<img src="./frontend/assets/images/comparisons.png" width=300/>
<img src="./frontend/assets/images/comparisons.png" width=600/>
</div>

- Visualized Analytics

- Upon each query execution, query runtime displays under the "Query Label vs Query Runtime" graph. Graph automatically interpolates as results enumerate.
- User may toggle on specific query analytics results with the Comparisons panel to compare query performances.
- Graph will be organized on x-axis by label, and colored by schema.

<div align="center">
<img src="./frontend/assets/images/queryruntime1.png" width=300/>
<img src="./frontend/assets/images/queryruntime2.png" width=300/>
<img src="./frontend/assets/images/graph_demo.gif"/>
</div>

## Application Architecture and Logic
Expand Down Expand Up @@ -185,3 +176,22 @@ The outcome results from each query, both retrieved data and analytics, are stor
<a href="https://github.com/muhammadtrad">Muhammad Trad</a>
</td>
</tr></table>

<table align="center">
<td align="center">
<img src="./frontend/assets/images/justinduryagri.png" href="https://github.com/justinD-A" width=180/><br/>
<a href="https://github.com/justinD-A">Justin Dury-Agri</a>
</td>
<td align="center">
<img src="./frontend/assets/images/caseyescovedo.png" href="https://github.com/caseyescovedo" width=180/><br/>
<a href="https://github.com/caseyescovedo">Casey Escovedo</a>
</td>
<td align="center">
<img src="./frontend/assets/images/samfrakes.png" href="https://github.com/frakes413" width=180/><br/>
<a href="https://github.com/frakes413">Sam Frakes</a>
</td>
<td align="center">
<img src="./frontend/assets/images/caseywalker.png" href="https://github.com/cwalker3011" width=180/><br/>
<a href="https://github.com/cwalker3011">Casey Walker</a>
</td>
</table>
32 changes: 32 additions & 0 deletions __tests__/leftPanelTests/compareTest.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import * as React from "react";
import { Compare } from "../../frontend/components/leftPanel/Compare";
import { shallow } from "enzyme";

describe ("Comparison feature tests", () => {
// wrapper will be assigned the evaluation of the shallow render
let wrapper;

const props = {
queries: [],
currentSchema: '',
}
// shallow render the component before running tests
beforeAll(() => {
wrapper = shallow(<Compare {...props}/>)
})

it('Should render a div', () => {
expect(wrapper.type()).toEqual('div');
})

it('Should render correct h3 element', () => {
expect(wrapper.containsMatchingElement(
<h3>Comparisons</h3>)).toBeTruthy();
})

it('Should render query label', () => {
expect(wrapper.containsMatchingElement(
<td>{'Query Label'}</td>)).toBeTruthy();
})

})
33 changes: 33 additions & 0 deletions __tests__/leftPanelTests/historyTest.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import * as React from "react";
import { History } from "../../frontend/components/leftPanel/History";
import { shallow } from "enzyme";

describe ("History feature tests", () => {
// wrapper will be assigned the evaluation of the shallow render
let wrapper;

const props = {
queries: [],
currentSchema: '',

}
// shallow render the component before running tests
beforeAll(() => {
wrapper = shallow(<History {...props}/>)
})

it('Should render a div', () => {
expect(wrapper.type()).toEqual('div');
})

it('Should render correct h3 element', () => {
expect(wrapper.containsMatchingElement(
<h3>History</h3>)).toBeTruthy();
})

it('Should render query label', () => {
expect(wrapper.containsMatchingElement(
<td>{'Query Label'}</td>)).toBeTruthy();
})

})
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import * as React from 'react';
import { mount, shallow } from 'enzyme';
import { Table } from '../../../../frontend/components/rightPanel/schemaChildren/dataChildren/DataTable';

const dummyRowData = [{"header0":"input0", "header1":1}]

const dummyTableProps = {
queries: [{
queryString: "string",
queryData: dummyRowData,
queryStatistics: 7,
querySchema: "string",
queryLabel: "string"
}]
};

describe('Testing the data table', () => {
let wrapper;
beforeAll(() => {
wrapper = mount(<Table { ...dummyTableProps }/>);
})

it('should render Table headers', () => {
expect(wrapper.find('#dataTableHead').type()).toBe('thead');
expect(wrapper.find('#dataTableHead').childAt(0).childAt(0).text()).toBe('HEADER0');
expect(wrapper.find('#dataTableHead').childAt(0).childAt(1).text()).toBe('HEADER1');
})

it('should render data Table body element', () => {
expect(wrapper.find('#dataTableBody').type()).toBe('tbody');
})
})

37 changes: 37 additions & 0 deletions __tests__/rightPanelTests/schemaChildrenTests/dataTest.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import * as React from 'react';
import { shallow } from 'enzyme';
import { Data } from '../../../frontend/components/rightPanel/schemaChildren/Data';


const dummyTableProps = {
queries: [{
queryString: "string",
queryData: [{}],
queryStatistics: 7,
querySchema: "string",
queryLabel: "string"
}]
};

describe ("Data tests", () => {
const { queries } = dummyTableProps;

// shallow render the component before running tests
let wrapper;
beforeAll(() => {
wrapper = shallow(<Data { ...dummyTableProps } />)
})

it('Should render a div', () => {
expect(wrapper.type()).toEqual('div');
})

it('Should render h3 tag', () => {
expect(wrapper.containsMatchingElement(
<h3 id="results-title">Data Table</h3>)).toBeTruthy();
})

it('Should render div to contain the data table', () => {
expect(wrapper.find('#data-table').type()).toBe('div');
})
})
21 changes: 21 additions & 0 deletions __tests__/rightPanelTests/tabsChildrenTests/tabTest.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import * as React from 'react';
import { shallow } from 'enzyme';
import { Tab } from '../../../frontend/components/rightPanel/tabsChildren/Tab';

const dummyTabProps = {
onClickTabItem: 'string',
currentSchema: "string",
label: "string",
};

describe ("Tab tests", () => {
// shallow render the component before running tests
let wrapper;
beforeAll(() => {
wrapper = shallow(<Tab { ...dummyTabProps } />)
})

it('Should render a list item', () => {
expect(wrapper.type()).toEqual('li');
})
})
10 changes: 10 additions & 0 deletions __tests__/setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { configure } from "enzyme";
import React16Adapter from "enzyme-adapter-react-16";

configure({ adapter: new React16Adapter() });

describe('Setup', () => {
it('should run before all tests', () => {
expect(true).toBe(true);
})
})
35 changes: 35 additions & 0 deletions __tests__/splashTest.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import * as React from "react";
import { Splash } from "../frontend/components/Splash";
import { shallow } from "enzyme";

describe ("Splash page tests", () => {
// mock functions to pass to handlers
const mockFileClick = jest.fn(() => console.log("click"));
const mockSkipClick = jest.fn(() => console.log("skipClick"));
// props to be passed to the shallow render of the component
const props = {
openSplash: true,
handleSkipClick: mockSkipClick,
handleFileClick: mockFileClick
};

let wrapper;
// shallow render the component before running tests
beforeAll(() => {
wrapper = shallow(<Splash {...props}/>)
});

it('should find the correct elements by id', () => {
expect(wrapper.find('#skip_button').type()).toBe('button');
expect(wrapper.find('#yes_button').type()).toBe('button');
});

it('The functions passed down should be invoked on click', () => {
// testing the skip button
wrapper.find('#skip_button').simulate('click');
expect(mockSkipClick).toHaveBeenCalled();
// testing the import button
wrapper.find('#yes_button').simulate('click');
expect(mockFileClick).toHaveBeenCalled();
});
});
12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
};
Loading