Fix integrity error handling#496
Conversation
Pull Request Test Coverage Report for Build 17034977458Details
💛 - Coveralls |
MarcelGeo
left a comment
There was a problem hiding this comment.
If I tried this with existing Upload entry in the table. v2 project push was not not
INSERT INTO upload () VALUES ("projectid", version)And tried then sync_project in py-client:
- pull
- push
Upload entry disappeared and I was able to do push. Not sure If this is good behavior.
Not sure I understand it correctly but if you run raw SQL query (not from application) then you will insert upload record to table but lockfile will not be created, therefore such upload is considered as inactive (invalid) and will be removed by subsequent push attempt. To have blocking upload you need both, a record in database and recently updated associated lockfile. |
|
It works with lockfile ... nice 🌮 |
No description provided.