Menu

#1474 Return submission id in api response

Approved
closed
None
5
2022-01-04
2021-12-29
Anonymous
No

When submitting an edit through the API on success all that is returned is a Status=OK response.

I propose that in addition the id of the submission be returned, that way there is a mechanical way of e.g. tracking the status of a submission. The current workaround would be to reparse the pending submissions list after each edit.

I've struggled a bit with tracking the inheritance of submission.py but it looks like db is a MySQLdb.connection object. If so the id should be recoverable using db.insert_id() directly following the db.query(submission) call on L128.

Discussion

  • Ahasuerus

    Ahasuerus - 2021-12-29

    Sounds reasonable.

     
  • Ahasuerus

    Ahasuerus - 2022-01-04
    • status: open --> closed
    • assigned_to: Ahasuerus
     
  • Ahasuerus

    Ahasuerus - 2022-01-04

    Implemented in rest/submission.py , installed in SVN 825 on 2022-01-03. Web API documentation (http://www.isfdb.org/wiki/index.php/Web_API#Successful_Completion) has been updated. Closing the FR.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB