Recently Iâve been facing a difficulty. When Iâm creating a new topic, and try to add a location to it, e.g. Bathinda, and search the same in new topic dialouge, it gives correct/expected results.
But when I search another city âPatialaâ (both cities are districts in the same Indian state Punjab, both show correctly when searched in OpenStreetmap), it gives out blank results/canât search.
And this happens with other districts/cities also. In some cases, those searched districts are very big and famous cities, yet theyâre not found, but smaller less known cities are found.
But after you gave this idea, I searched and found a way to get an Api key for OpenCageData (took 2 minutes) and after I filled that api key in the pluginâs settings (and only after filling the api key, changed the provider name to OpenCageData). And lo and behold, it not only stopped giving that error, the original problem of not able to search and find âPatialaâ (and many other cities) also disappeared.
And so, ALL IS OK NOW. THANKS!
P.S. I wish that the link âProvider Detailsâ showing below the âred-colorâ error shouldâve sent me/any user to that providers page (instead of âGitHubâ page), where user could demand âApi-Keyâ generation. That wouldâve been a lot of big help.
By configuring this pluginâs settings, you can make it choose any one location (hopefully any one country also) to be set as all new topicâs location. That way that location would always display on all the subsequent topics (while composing the topic, if any user wished to change that country name/location, heâd be free to do so).
Thanks so much Robert Now it seems works fine but I have noticed when I go to an other user profile (who didnât set up location) from e.g summary then it appears to the same behavior. If I go to a profile from the home page or from other parts of the site then it works great. This is maybe because of the loading slider.
Can you elaborate, what exactly are you clicking to make that transition? (from presumably, summary to summary?). Do both users needed to have had a location at some point? Does the first user have a populated location? In short, exact repro steps please
OK what this looks like is that the code is not re-evaluated after transition, because setupComponent is not firing again.
This is almost certainly a general problem not specific to Locations.
I suspect the solution is to use some kind of {{did-update}} modifier in Glimmer. But that will only work if Ember considers the data state âdirtyâ
@Don OK Iâve moved that to Glimmer now (spot the horrendous typo in the commit comment ) and it might work better now, let me know how you get on!
(FYI dev note: getters were enough for the profile change-over but there was still the (unfortunately necessary?) class modification with dom manipulation that required a modifier)