friendly_uuid icon indicating copy to clipboard operation
friendly_uuid copied to clipboard

Short, stateless URL slugs for UUID-based Rails models

Results 7 friendly_uuid issues
Sort by recently updated
recently updated
newest added

Bumps [tzinfo](https://github.com/tzinfo/tzinfo) from 1.2.7 to 1.2.10. Release notes Sourced from tzinfo's releases. v1.2.10 Fixed a relative path traversal bug that could cause arbitrary files to be loaded with require when...

dependencies

TLDR: `MyModel.find(nil)` should throw `ActiveRecord::RecordNotFound`. --- What happened: While doing `ClientProject.find(params[:id])` the system `returned with a random record`. Baffled by the result I realised it was simply not throwing an...

It would be great, if i had the choice to manually set (or scope) the friendly_uuid `find` operation instead of overriding the default `find` method. [friendly_id](https://github.com/norman/friendly_id/tree/5.0.0.beta1#version-5x:~:text=FriendlyId%20no%20longer%20overrides%20find.%20If%20you%20want%20to%20do%20friendly%20finds%2C%20you%20must%20do%20Model.friendly.find%20rather%20than%20Model.find.) did this aswell with...

> To make sure we're capturing any other unknown behaviors we might want to directly copy how ActiveRecord [implements] `find` and `find_by`. See the discussion here: https://github.com/glacials/friendly_uuid/pull/5#discussion_r519547886

Based on index behavior re: substrings, we may be causing sequential scans for some database systems. We should check to see if we are, and find a remedy.

question

What happens if: 1. Two Rails servers with desynchronized clocks try to insert records that ~collide at the same time? 2. A read-only replica that is ~seconds out of date...

question

In manual testing it appears we work with `find_by!`, but [its source][1] implies we shouldn't be working with it, as it doesn't depend on `find_by`. We should make sure we...