Open cmwylie19 opened 3 weeks ago
This would be a pretty big value add for uds-core. We started to go down the route of figuring out our own sanitization but were struggling with:
foobar
ends up different from foobaz
If pepr handled this in a way that we could just set and keys and be guaranteed that set/get calls would succeed and not retrieve the wrong value that would be great for our use case.
In researching other edge-cases, size does not seem to be a limitation.
let longString = 'a'.repeat(253);
const longerString = longString.repeat(1000);
Store.setItem(longerString, longString);
Moving to the next milestone since we need to plan with UDS Core how to roll this out to prod users
Describe what should be investigated or refactored
Certain keys are not making it into the store, the patch operation is returning
422
.We need a way to sanitize the key so that the patch operation succeeds and users of the store can get their data in a consistent manner.
Reproduce:
Definition of done:
https://google.com-${po.Raw.metadata!.name}
, the store sanitizes them before the pack, and they can get them back out by the same key (the store sanitizes the Store.getItem).Links to any relevant code
/src/lib/controller/store.ts
Additional context
Add any other context or screenshots about the technical debt here.