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

[11.14] Group milestones API: able to call GitLab API with addtional parameters updated_before and updated_after #786

Merged
merged 8 commits into from
Mar 17, 2024

Conversation

wenchaoxue
Copy link
Contributor

@wenchaoxue wenchaoxue commented Nov 25, 2023

List group milestones new parameters

updated_before:
Return only milestones updated before the given datetime. Expected in ISO 8601 format (2019-03-15T08:00:00Z).
Introduced in GitLab 15.10

updated_after:
Return only milestones updated after the given datetime. Expected in ISO 8601 format (2019-03-15T08:00:00Z).
Introduced in GitLab 15.10
  • call Group milestones API with addtional parameters updated_before and updated_after and add unit tests
  • add missing unit tests on the parameters iids, state, search

Groups Milestones (Gitlab\Tests\Api\GroupsMilestones)
 ✔ Should get all milestones with parameter one iids value
 ✔ Should get all milestones with parameter two iids values
 ✔ Should get all milestones with parameter state with active
 ✔ Should get all milestones with parameter state with closed
 ✔ Should get all milestones with parameter search
 ✔ Should get all milestones with parameter updated before
 ✔ Should get all milestones with parameter updated after
@wenchaoxue wenchaoxue changed the title able to call Group milestones API with addtional parameters updated_before and updated_after Group milestones API: able to call GitLab API with addtional parameters updated_before and updated_after Nov 25, 2023
@wenchaoxue wenchaoxue marked this pull request as ready for review November 25, 2023 18:43
@GrahamCampbell GrahamCampbell changed the title Group milestones API: able to call GitLab API with addtional parameters updated_before and updated_after [11.14] Group milestones API: able to call GitLab API with addtional parameters updated_before and updated_after Dec 3, 2023
Copy link
Member

@GrahamCampbell GrahamCampbell left a comment

Choose a reason for hiding this comment

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

Thanks for making a start here. There is just one change to be made.

* @var string $search Return only milestones with a title or description matching the provided string
* @var string $updated_before Return only milestones updated before the given datetime
* Expected in ISO 8601 format (2019-03-15T08:00:00Z). Introduced in GitLab 15.10
* @var string $updated_after Return only milestones updated after the given datetime
Copy link
Member

Choose a reason for hiding this comment

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

Please take DateTimeInterface here rather than a string, just like in Groups::issues.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for the delay, finally I have time to fix it - here

Use DateTimeInterface is much better than string.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GrahamCampbell the PR is ready to be reviewed in case you haven't received this notice before. Thanks for reviewing it.

@GrahamCampbell GrahamCampbell changed the base branch from 11.12 to 11.14 December 3, 2023 22:46
@GrahamCampbell GrahamCampbell merged commit 26a4f3a into GitLabPHP:11.14 Mar 17, 2024
1 of 8 checks passed
@GrahamCampbell
Copy link
Member

Thanks.

@wenchaoxue wenchaoxue deleted the 11.12 branch March 20, 2024 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants