HRHR-project / e-registry-app

0 stars 1 forks source link

Sequential ID does not reset for each enrolling OU #116

Open iambodo opened 6 years ago

iambodo commented 6 years ago

Tried enrolling at three different org units. The sequential ID pattern followed one after the other, suggesting that the ID counter is not reset for each org unit separately.

https://www.useloom.com/share/a713fd3a79e5403399cc8769bb08203f

According to Stian, "this is how it is supposed to work today; When generating ids, we take the non-generated part of the pattern to create a key (Lets use your A and B ou codes as example. We will then have the keys: A_SEQUENTIAL(#####) and B_SEQUENTIAL(#####); Each key got it's own counter, so they will both start at 0, both get 1, then 2, etc.)"