Open adknaupp opened 3 months ago
Raise exception when database and SL are not in sync. Otherwise, assume POST requests and new projects are one-to-one or even one-to-none. Exception is handled at a higher level and triggers a routine to synchronize the database with SL. How to identify and handle case where POST request arrives but no new project appears?
Method 1: Highest ID in database + 1
Method 2: Get highest ID in SL
Combined method
Latest project is another distinction which may be useful, although it is not essentially equal to the POST requested project. Probably both methods should be combined.