Without the changes if the same endpoint is hit for the first time more then once before the first transaction has completed, it will fail do to matching more then one descriptor id. The changes prevent this through a SQL function that would select only the first if multiple to exists, delete any dups that exists, and a constraint that prevents dups ever existing in the future.
How to test
Hit a page for the first time and no error will occur
Description of change
Without the changes if the same endpoint is hit for the first time more then once before the first transaction has completed, it will fail do to matching more then one descriptor id. The changes prevent this through a SQL function that would select only the first if multiple to exists, delete any dups that exists, and a constraint that prevents dups ever existing in the future.
How to test
Hit a page for the first time and no error will occur
Issue(s)
Checklists
Every PR
Before merge to main
Production Deploy
After merge/deploy