Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Sync complex package with main repository changes #3

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

hgriga
Copy link

@hgriga hgriga commented Dec 19, 2024

The complex package is currently 16 commits behind the main repository.

bTokman and others added 16 commits September 4, 2023 20:57
[ci skip] [skip ci]

Co-authored-by: StyleCI Bot <[email protected]>
* add default values to properties not sent

* release date is nullable

* name cannot be nullable

---------

Co-authored-by: martin.reinfandt <[email protected]>
* add default values to properties not sent

* release date is nullable

* name cannot be nullable

* adjust constructor of version so name can only be a string

* require a minimum of latest version of json mapper to support class-string syntax

---------

Co-authored-by: martin.reinfandt <[email protected]>
- fixed #523 added createdDate property
[ci skip] [skip ci]

Co-authored-by: StyleCI Bot <[email protected]>
e.g. to remove a previous selection from a checkbox field
[ci skip] [skip ci]

Co-authored-by: StyleCI Bot <[email protected]>
* Changed project name

* Can we use the original project name?

* feat: #WPLZ-166 - introduce timeout

---------

Co-authored-by: Peter Majmesku <[email protected]>
…#535)

* Create BoardResult.php

- Create a new class to hold the entire result data of the response returned from the "/rest/agile/1.0/board" endpoint

- The approach is very similar to how the existing IssueService->search() function works already

* Update BoardService.php

- Instead of updating the existing getAllBoards() method and create a breaking change, I introduced a new method getBoards()

- This method calls to the same "/rest/agile/1.0/board" endpoint as getAllBoards() but it maps the value into the newly created BoardResult class rather than ArrayObject.

- This allows the developer to determine if there are more results past the initial 50 on the first page, and get additional pages if necessary

* Update BoardTest.php

- Created a new test method which performs the same test as the get_all_boards() test but using the updated result object instead

* Update README.md

Add information about how to use the new getBoards() method to retrieve the entire list of board results

* Add periods to end of comments

Added these in order to pass StyleCI PR checks

* Rename BoardResult to more generic PaginatedResult

I realized other methods in BoardService also did not have proper pagination built in.  We will reuse this class in a more generic way for other methods such as getSprintsForBoard()

* Update BoardService.php

- Update our new getBoards() method to return PaginatedResult instead of BoardResult
- Add new method getSprintsForBoard() which has support for pagination and uses PaginatedResult
@hgriga hgriga marked this pull request as ready for review December 19, 2024 14:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants