Closed ericenns closed 2 weeks ago
As a User I would like to be able to query an id and determine if it matches the format of a PUID.
Related to DFCT0010065
DFCT0010065
isPuid
id
ID
true
PersisentUniqueID
valid_puid?
lib/irida/persistent_unique_id.rb
object_class
Sample
Attachment
Group
Namespace::ProjectNamespace
false
Fixed in #625
Summary
As a User I would like to be able to query an id and determine if it matches the format of a PUID.
Related to
DFCT0010065
Acceptance Criteria
isPuid
query the adhere's to the following criteriaid
which is of typeID
true
when theid
supplied matches the format of aPersisentUniqueID
(refer tovalid_puid?
inlib/irida/persistent_unique_id.rb
)object_class
areSample
,Attachment
,Group
, andNamespace::ProjectNamespace
false
if it doesn't match any known PUID types