Add some test data to seeder/s
mattburnett-repo opened this issue · comments
While working on the tests for the Api.ts/Artists endpoint, I needed to make some small changes to the database in order to get the tests to pass.
Here is the SQL that I used:
insert into plays(track_id, user_id)
values('b6d160d1-be16-48a4-8c4f-0c0574c4c6aa', '251c01f6-7293-45f6-b8cd-242bdd76cd0d');
insert into plays(track_id, user_id)
values('b6d160d1-be16-48a4-8c4f-0c0574c4c6aa', '251c01f6-7293-45f6-b8cd-242bdd76cd0d');
update track_groups
set enabled = true
where enabled is null;
yes, there are two 'insert into plays...' statements.
This data should be added to the database as part of the seeding process which is run using
yarn docker:seed:all
It's not important how / where this is done in the seeder script/s, only that it happens as part of the seeding process.
it looks like #76 addresses this issue well. closing this issue