Open drmaples opened 11 years ago
In my experience the CLI creates a new revision every time - but that's probably because while packaging the files the checksum changes.
Sounds like you are programmatically uploading the code package so that might be the case.
To me your feedback on API response is valid and we should indicate when revision isn't updated (especially since concurrency/timeout/etc settings might be intentionally changed)
@iced can you confirm that a new revision is not being created on same checksum code packages?
Chad
@drmaples I see what's going on now and you are correct, it won't accept new code with the same checksum. You're right that the response should be different, thanks for letting us know.
It seems when uploading a new code package containing a zipfile with the same checksum as the last revision that a new revision will not be created. Tweaking something so the checksum is different and uploading again will create a new revision.
This behavior seems ok, but it is a little misleading that the response is always http 200 and {"msg": "Upload successful.", "id": "...."} even though a new revision was not created.
I expected one of the following: