[openstreetmap/openstreetmap-website] Use `where()` instead of `find()` to prevent RecordNotFound (PR #4203)
ENT8R
notifications at github.com
Fri Aug 25 23:11:15 UTC 2023
As I see there are multiple test cases covering this case and they are all expecting the method to raise an RecordNotFound in case one of the users was deleted. Is there a reason behind this? Because my use case is that I have an (possibly) outdated set of user ids and I obviously do not know whether certain users of this set decided to delete their account, but I would still be happy to receive a response from the server regarding the other users. If one of the users I initially requested does not show up in the response, I know that the account was deleted/suspended/...
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4203#issuecomment-1694022193
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4203/c1694022193 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230825/8f7ce39e/attachment-0001.htm>
More information about the rails-dev
mailing list