job-board icon indicating copy to clipboard operation
job-board copied to clipboard

[DX] add more fixtures for test database

Open ghost opened this issue 3 years ago • 2 comments

right now there are just 2 jobs 1 company and 1 developer. would be good to have much more data to test with locally. It's simple to just add new rows into the latest-fixtures.sql

ghost avatar Feb 23 '22 02:02 ghost

how do you store png in database ? https://github.com/golang-cafe/job-board/blob/7dee80ec8254852eadd575e45d790f99571c61aa/latest-fixtures.sql#L3

I am searching how I could generate a valid "bytestring" to add fixtures

slashformotion avatar Jul 13 '22 12:07 slashformotion

that's a good question, i currently store it as byte array and hex encoded using golang. not quite easy to generate but if you look at the SaveMediaPageHandler you will see how its done @slashformotion

ghost avatar Apr 03 '23 18:04 ghost