-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: is fork sync supported? #163
Comments
Not currently supported but would definitely be good to have. Are you interested in submitting a PR or did you want one of us to take care of it? I'm off for the next few days and maybe be able to knock things out. |
I'm afraid I wouldn't know how to implement the feature... but if one of you wants to work on it, I would be definitely interested :) |
Ok let me see what I can knock out. Stay tuned... |
Hi Christopher, |
Actually been meaning to circle back on this as there is interest here to have this feature. Let me see what I can make happen over the next couple days. |
Initial impl put together here: #166. Should finish up things tomorrow once I can write some live tests and finish the synchronize endpoint |
nice job thanks :) is it ready for merge? |
@KaiserZip PR has just been merged to master and am doing a release shortly. Sorry things took so long but had some issues writing integration tests and simply didn't have the time to sort things out until now. Stay tuned... |
Version |
Thanks @cdancy I've moved from 2.3.0 to 2.4.0 and this works like a charm:
But I've noticed that on 2.4.0 my following call is now broken:
failing with:
when reverting back to 2.3.0 it works fine :) Thanks for your support :) |
@KaiserZip is it reproducible? Can you possibly run this code with debug turned out to get more logs? This generally pops when an unknown response is returned. When you do this does the actual PR get created but the call just fails? |
Okay I think I've spotted the problem: I am using this code:
The resulting java objects seem correct, but at some point there's a java->json transformation when building the http payload of the request sent to bitbucket server, and the json itself is different between both versions: bitbucket-rest:2.3.0:
bitbucket-rest:2.4.0:
In 2nd case the server replies with an error 500, leading to MalformedJsonException and PR not being created... Any clue why this java->json transformation is messed-up with 2.4.0? :) Thanks |
That's interesting. No idea at the moment but poking around now. Stay tuned... |
shouldn't we have
instead of
in Reference.java? |
No that just produces more errors unfortunately :( I do however believe it has something to do with the fact that the |
yeah so what I'm going with is to revert the changes to |
yes for sure it is linked to the fact that for instance, as a test, I've manually added a fake error to my
and in the resulting json, the error can be seen instead of the id:
|
@KaiserZip version |
It should be noted that |
works perfectly, thanks a lot! :) |
Hello,
Is the "sync" feature supported by your java api?
equivalent of:
https://docs.atlassian.com/DAC/rest/stash/3.7.2/stash-repository-ref-sync-rest.html
"Enables or disables synchronization for the specified repository"
Thanks in advance for your answer, and great job for the work you did :)
Brgds
The text was updated successfully, but these errors were encountered: