community-platform
community-platform copied to clipboard
[bug] Inconsistent flag rendering in how-tos
Describe the bug Flags are not all the same for our profile, this could be happening for other users
To Reproduce Steps to reproduce the behaviour:
- Go to here
- See the flags on how-tos we've written do not match
- or see the screenshot
Expected behaviour They should all be the same flag
Screenshots
Additional context They should all be the UK flag as we're based in London, UK
This is happening due the change in the creatorCountry
field in the howto
collection from _creatorCountry
to creatorCountry
.
The change occurred on Sep 15, 2020 (after the upload of the gray flagged HowTo's) - in this commit
In order to solve this issue, we need to scan the howto
collection and change the field _creatorCountry
to creatorCountry
.
I've checked the database and the _creatorCountry
field isn't present for those howto's. Not sure whether the migration went wrong or the country wasn't set at the time the migration happened.
I'll look at writing a script to reset all the howto's to their creators current country. In the meantime if you want a quick fix @darigovresearch, I think changing your location to a different country, waiting a minute and then changing it back to your actual location should probably update them all.
I think some locations might have been set using the map. If user has "want to get started" pin (we had a few bugs with that in the past)