community-platform icon indicating copy to clipboard operation
community-platform copied to clipboard

[bug] Inconsistent flag rendering in how-tos

Open darigovresearch opened this issue 1 year ago • 9 comments

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:

  1. Go to here
  2. See the flags on how-tos we've written do not match
  3. or see the screenshot

Expected behaviour They should all be the same flag

Screenshots image

Additional context They should all be the UK flag as we're based in London, UK

darigovresearch avatar Dec 31 '23 12:12 darigovresearch

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.

goratt12 avatar Jan 01 '24 18:01 goratt12

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.

iSCJT avatar Jan 02 '24 13:01 iSCJT

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)

davehakkens avatar Jan 02 '24 14:01 davehakkens