0.14.0
release-drafter
released this
27 Aug 20:06
·
521 commits
to master
since this release
We moved the repository from cloudbees github organization to cloudbees-oss
This version is breaking the compatibility of various various "Many" create/update/delete to fix them (the current implementation was broken).
A lot of integration tests were added to validate them and now these "Many" create/update/delete methods should work correctly and we extending them to various objects where they were missing.
💥 Breaking changes
- Fix the existing "Many" create/update/delete methods (#346) @aheritier
JobStatus
is not anymore a generic class. Are impacted by this change:
public JobStatus createOrganizations(Organization... organizations)
public JobStatus createTickets(List<Ticket> tickets)
public JobStatus createTickets(Ticket... tickets)
public JobStatus createUsers(List<User> users)
public JobStatus createUsers(User... users)
public JobStatus getJobStatus(JobStatus status)
public JobStatus importTickets(List<TicketImport> ticketImports)
public JobStatus importTickets(TicketImport... ticketImports)
public JobStatus onCompleted(Response response)
public JobStatus permanentlyDeleteTicket(Ticket ticket)
public List<JobStatus> getJobStatuses(List<JobStatus> statuses)
public ListenableFuture<JobStatus> createOrganizationsAsync(List<Organization> organizations)
public ListenableFuture<JobStatus> createTicketsAsync(List<Ticket> tickets)
public ListenableFuture<JobStatus> getJobStatusAsync(JobStatus status)
public ListenableFuture<JobStatus> importTicketsAsync(List<TicketImport> ticketImports)
public ListenableFuture<JobStatus> queueCreateTicketAsync(Ticket ticket)
public ListenableFuture<JobStatus> updateTicketsAsync(List<Ticket> tickets)
public ListenableFuture<JobStatus> createUsersAsync(List<User> users)
public ListenableFuture<List<JobStatus>> getJobStatusesAsync(List<JobStatus> statuses)
You now have to iterate/loop/wait until getJobStatus(aJobStatus).getStatus() == JobStatus.JobStatusEnum.completed
to confirm that the mass update was processed.
Various integration tests were added in RealSmokeTest.java
to show how to use these APIs.
🚀 New features and improvements
- Add support for merging users (#350) @Helmsdown
public User mergeUsers(long userIdThatWillRemain, long userIdThatWillBeMerged)
- Validate dates management (#348) @aheritier
- Add various "Many" create/update/delete methods (#346) @aheritier
public Iterable<DeletedTicket> getDeletedTickets()
public Iterable<DeletedTicket> getDeletedTickets(String sortBy, SortOrder sortOrder)
public JobStatus createOrUpdateUsers(List<User> users)
public JobStatus createOrUpdateUsers(User... users)
public JobStatus createOrganizationMemberships(List<OrganizationMembership> organizationMemberships)
public JobStatus createOrganizationMemberships(OrganizationMembership... organizationMemberships)
public JobStatus updateOrganizations(List<Organization> organizations)
public JobStatus updateOrganizations(Organization... organizations)
public JobStatus updateTickets(List<Ticket> tickets)
public JobStatus updateTickets(Ticket... tickets)
public JobStatus updateUsers(List<User> users)
public JobStatus updateUsers(User... users)
public ListenableFuture<JobStatus> createOrUpdateUsersAsync(List<User> users)
public ListenableFuture<JobStatus> createOrganizationMembershipsAsync(List<OrganizationMembership> organizationMemberships)
public ListenableFuture<JobStatus> updateOrganizationsAsync(List<Organization> organizations)
public ListenableFuture<JobStatus> updateUsersAsync(List<User> users)
public void deleteOrganizationMemberships(long id, long... ids)
🐛 Bug Fixes
- Deprecates
getTicketsIncrementally(Date startTime, Date endTime)
(#347) @aheritier
📦 Dependency updates
- Bump jackson-bom from 2.11.0 to 2.11.2 (#351) @dependabot
- Bump animal-sniffer-enforcer-rule from 1.18 to 1.19 (#352) @dependabot
- Bump wiremock from 2.26.3 to 2.27.1 (#353) @dependabot
- Bump assertj-core from 3.16.1 to 3.17.0 (#354) @dependabot
- Bump extra-enforcer-rules from 1.2 to 1.3 (#355) @dependabot