-
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
Discussion: Marking existing "RESOLVED" task as "OPEN". #175
Comments
@ftclausen so I think we'd want a new https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm8288367088 |
The |
Thanks for the info - I'll investigate down that path and ask any follow-up questions if need be. |
I'm working through some options and adding a live test. However the live tests are not working for me because the endpoint seems to be null despite having updated gradle.properties to point to my local dev instance. Specifically the init step to get the endpoint is returning null - probably the authentication part too. Do I need to do anything extra other than updating gradle.properties? |
Also you should need to set is |
If it's null then something else is at play |
I am indeed setting those and, on an unchanged master branch, there are quite few failures when running
I'll keep digging and see what I can find. |
You can also, through the root |
Ah, I found the issue, our username has mixed case i.e.
Where
will never match because exampleUser != exampleuser hence the assertion triggered. If I changed that to
then it works. I'll do some more testing to ensure nothing else breaks but, if otherwise acceptable, I can shoot in a small PR for this. Then get on with the a PR for the actual meat of this discussion. |
Aaaahhhh good catch ... if you just want to attach the fix to your forthcoming PR that would work as well. |
Another thing I had to modify was initGeneratedTestContents use the full authentication string (e.g. |
I'm not sure and now you have me wondering. Add that to the PR as well and I can look things over and make sure it all still works on this end. |
I am looking into contributing functionality to mark an existing task as "OPEN" when it's already checked (i.e. "RESOLVED" in the API). I found the Task class that, as best I can figure out, is serialised and eventually passed onto Bitbucket with the correct values. I think the serialisation + massaging field names happens in TaskApi class.
What would be ideal would be to have some setter method that can PUT the new task's status to the Bitbucket API. Given everything is being generated via Google AutoValue I'm not sure how to go about this. Just add a concrete setter to the existing AutoValue abstact Task class? That setter could directly send the appropriate JSON payload to change the task status. However that does not feel in keeping with how AutoValue is used in this class.
The text was updated successfully, but these errors were encountered: