Contributions
Can't get JSON ReviewService.addFiles to work
I'm just starting to communicate with SmartBear using JSON, and have some comands working but ReviewService.addFiles is giving me trouble. I take my file, put it into a ZIP file named by its MD5 (with no extension), and send it using this form data: --0078a65ecb044aef9c7d9caade698df6 Content-Disposition: form-data; name="json" Content-Type: application/json;charset=utf-8 [{"command":"SessionService.authenticate","args":{"login":"<snip>","ticket":"<snip>"}}, {"command":"ReviewService.addFiles","args":{"reviewId":668,"changelists":[{"zipName":"Collaborate.zip","versions":[{"md5":"E6C7A60AD81B7F0ADA3C77C156304B36","localPath":"c:\\temp\\cancel.txt","source":"LOCAL"}]}]}}] --0078a65ecb044aef9c7d9caade698df6 Content-Disposition: form-data; name="Collaborate.zip"; filename="Collaborate.zip" Content-Type: application/x-zip-compressed [925 bytes binary data] --0078a65ecb044aef9c7d9caade698df6-- I get back the error Response "[{"result":{}},{"errors":[{"code":"RequestError","message":"File paths (with supplied md5 hash) missing from content cache during ReviewService.addFiles API call: c:/temp/cancel.txt (E6C7A60AD81B7F0ADA3C77C156304B36)"}]}]" What am I doing wrong?Solved1.6KViews0likes1CommentWhy does the collaborator GUI not work after a reboot?
When I install the Code Collaborator GUI on my Windows 10 machine, it works beautifully - until I reboot. After a reboot, if I run Collaborator Client GUI from the Start menu, the cursor goes into thinking mode and I see the app appear in the Task Manager, and then it disappears and nothing further happens. No GUI no nothing. Same thing if I run Collaborator Tray Notifier from the Start menu. This is a Windows 10 machine running inside Parallels on a Mac, which does tend to make things strange. Running Collaborator GUI version 11.2.11200, 64-bit. LATER: Apparently if you say "No, I don't want the tray notifier" during the installation, you can never get the GUI to work. Agreeing to the tray notifier is sufficient to get the GUI to work after reboot.1.6KViews0likes1CommentJSON API - Get HighestReviewId
I am trying to write a process that analyzes all of our reviews and generates some custom reports. The problem is, there's no way in the current JSON API to find out the ID of the most-recently-created review, so there's no good way to know, as I'm looping through the reviews, when I'm done. Please add a "getHighestReviewId" function to the ReviewService. Thanks1.9KViews0likes0CommentsRe: Can collaborator check for newer files in svn
I'm interested in this kind of functionality too, in my case the answer to your question is - any file where the version currently being reviewed is not the version in the tip revision of the git branch, indicating I've checked in a newer version of the file.2KViews1like0CommentsHow can I compare code reviews against git repository for completeness?
We want to make sure we've reviewed all of our code, and have reviewed the most recent versions of all of our code. What I'm imagining, is looking through all of the files in our git repository, and making sure there are matching code reviews in collaborator. Is there anything in any of the tools that would help me do this? A GUI, a command line tool, a JSON API - anything that would list the git hash values of each of the files that I've reviewed? Thanks, Chris1.2KViews0likes1Comment