Open jakerenzella opened 2 years ago
@macite library looks good, let me know what you think
Sounds like a good idea. Where are you thinking of using this?
Everywhere a publicly accessible sequential ID is returned to the front end - Probably start with users as most important? Or projects.
I can take this up :)
@macite Which areas of the code are the hashids best to be used in?
I'd start with users...
and user administration
Sounds good 👍
Just to confirm that's all the endpoints in the users_api
and units_api
.rb files?
Currently all ids are sequential, which could lead to potential vectors for attack. Sequential ids are indexible however, which give database performance boosts.
Implementing Hashids should give us the best of both worlds: https://hashids.org/ruby/