-
-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Inconsistent flag rendering in how-tos #3131
Comments
This is happening due the change in the In order to solve this issue, we need to scan the |
I've checked the database and the 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) |
The link in the original post seems to not work exactly anymore, as filtering by author seems to have been be removed. But you can visit https://community.preciousplastic.com/u/darigov-research then the contributions tab, and then open all three howtos and see that there are still different flags. I second what @iSCJT said. The user's location is stored both in the user profile data and the data of the howto (a design decision to optimize reads) and probably at one point the data didn't get synchronized, either because that functionality didn't exist yet or a bug. |
Note this change: #3415 (same for howtos and questions) |
I wrote a script that will finish the migration and solve this issue |
@goratt12 Nice! I didn't look at it in detail. In my opinion, it would probably best to try to add it into the codebase, for example, copying an already existing one-time migration: https://github.com/ONEARMY/community-platform/blob/master/functions/src/database/updates.ts I would propose introducing a folder in the database folder called migrations, and then calling your thingy something like But a disclaimer: so far, I didn't figure out how to trigger it. |
@pizzaisdavid That is a good idea! |
Hi there, the flag also doesn't get updated upon changing country of residence :( |
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:
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
The text was updated successfully, but these errors were encountered: