byu-dnasc / proto-smrtlink-share

0 stars 1 forks source link

How to identify which project a POST request concerns? #11

Open adknaupp opened 3 months ago

adknaupp commented 3 months ago

Method 1: Highest ID in database + 1

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.

adknaupp commented 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?