Deleting test report data

9 views
Skip to first unread message

Thomas Wright

unread,
Apr 20, 2024, 1:15:05 PMApr 20
to FixMyStreet
Hi folks,

I'm running fixmystreet using docker, is there a way I can delete all the test reports I've created while keeping the bodies/categories etc that I've set up?

Thanks,
Tom

Matthew Somerville

unread,
Apr 22, 2024, 5:48:28 AMApr 22
to FixMyStreet
Hi,

You can mark them as hidden in the admin; to delete them entirely from the system, you can log in to the database however you want (`psql fixmystreet`, or install some form of database admin interface) and delete the rows from the table or truncate the whole table.
Alternatively, you could export the bodies/categories using the bin/export-import-data script, recreate a fresh database, then import the bodies/categories back in.

ATB,
Matthew

Thomas Wright

unread,
Apr 22, 2024, 6:12:00 AMApr 22
to FixMyStreet, matthew
Hi Matthew,

Thanks for the response, if I go the route of installing some kind of web gui like pdAdmin will I need to edit my docker compose yaml to include access external to the docker stack?
Right now it's all standard, apart from a few settings I'm overriding:

Thomas Wright

unread,
Apr 22, 2024, 6:58:33 AMApr 22
to FixMyStreet, Thomas Wright, matthew
Think I figured it out, I added pgadmin to the same stack as fixmystreet. Thanks for the suggestion Matthew.
Reply all
Reply to author
Forward
0 new messages