Closed rhattie-ey closed 1 year ago
I have one test to try and resolve, but in the meantime, couple of comments Some tests have heavy reliance on specific ids which caused a few of the breaks. In my commit, you'll see that 26, 27, and 28 were important ones. We'll want to improve this in the future by just moving the necessary participants through in the tests themselves.
The other issues are that all the csvs start with 0 ids, they should start at 1
Also, massivejs insert
doesn't add to the sequence of a table, so there needs to be a way to ensure that we can save in the future into tables with auto generated pkeys. I added
dbClient.runRawQuery(
ALTER SEQUENCE ${table}_id_seq RESTART WITH ${rowCount}
); To the feed-data script, but I don't know if it's the best way.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
1 Code Smell
No Coverage information
0.0% Duplication
Original ticket: HCAP-1396
Work completed
feed-data
rewriteOverhauled the entire script, rewriting it from the ground up.
Features:
--skip-missing-tables
flag to allow population of incomplete databases (such as for server tests)Test data generation
Jupyter notebook used for generation
Created new test data CSVs for the following tables:
Misc
copy-sample-data
commandNext steps