Skip to content
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

fixes #651: adds custom_status_id to Request object #652

Merged
merged 5 commits into from
Jan 19, 2024

Conversation

timveil
Copy link
Contributor

@timveil timveil commented Jan 9, 2024

this PR fixes #651. It adds the missing custom_status_id field to the Response object so that is available on Ticket. When making this change, I encountered many files which did not adhere to the Spotless Maven Plugin format. This PR also applies the google-java-format to all files thus resolving the spotless issues.

…NG.doc. this allows my to pass the `Spotless Maven Plugin` checks locally
@timveil
Copy link
Contributor Author

timveil commented Jan 11, 2024

Any thoughts on this @duemir or @PierreBtz

Copy link
Collaborator

@PierreBtz PierreBtz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change itself look good.

When making this change, I encountered many files which did not adhere to the Spotless Maven Plugin format.

I very much doubt that (since it would fail the build), rather that you used a jdk11/17/21 take your pick instead of java 8.
I noticed in the past that the formatter had a different output with Java 8 for some reason.
The library is still using java 8.

Would it be possible for you to add a test?

Thanks for the contribution :)

The update integrates tests for custom ticket status ID into the Ticket and TicketResult test classes. This ensures that the custom ID property is recognized correctly and can be parsed from JSON appropriately.
@timveil
Copy link
Contributor Author

timveil commented Jan 17, 2024

i re-ran mvn spotless:apply after switching to jdk 1.8, specifically Java version: 1.8.0_392, vendor: Amazon.com Inc. and it looks to have reverted most of my earlier formatting changes.

As for tests, since this change is simply adding a property I don't think it requires a full blown test, but happy to copy an example test if you have one you can point me too. In the meantime i did add the property to both TicketTest and TicketResultTest

@timveil timveil requested a review from PierreBtz January 17, 2024 00:53
Copy link
Collaborator

@PierreBtz PierreBtz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@PierreBtz PierreBtz merged commit 2ff8704 into cloudbees-oss:master Jan 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add missing custom_status_id field to Ticket
2 participants