Skip to content

Commit c1aabba

Browse files
Merge branch '10.4' into 11.0
2 parents 9f6c0d2 + 27336fb commit c1aabba

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [11.0.0-RC1] - UPCOMING
8+
## [11.0.0] - UPCOMING
99

1010
* Removed models API
1111
* Dropped support for PHP 7.1
@@ -15,13 +15,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
* Client authenticate and setUrl now return void
1616
* Added additional return type enforcement
1717

18-
[11.0.0-RC1]: https://github.com/GitLabPHP/Client/compare/10.4.0...11.0.0-RC1
18+
[11.0.0]: https://github.com/GitLabPHP/Client/compare/10.4.0...11.0.0
1919

20-
## [10.4.0] - UPCOMING
20+
## [10.4.0] - 2020-12-22
2121

2222
[10.4.0]: https://github.com/GitLabPHP/Client/compare/10.3.1...10.4.0
2323

2424
* Add min_access_level option to group search
25+
* Added support for additional issue order clauses
26+
* Added params array to remove user method to support hard_delete
2527

2628
## [10.3.1] - 2020-12-04
2729

src/Api/Issues.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ protected function createOptionsResolver(): OptionsResolver
455455
->setAllowedValues('scope', ['created-by-me', 'assigned-to-me', 'all'])
456456
;
457457
$resolver->setDefined('order_by')
458-
->setAllowedValues('order_by', ['created_at', 'updated_at'])
458+
->setAllowedValues('order_by', ['created_at', 'updated_at', 'priority', 'due_date', 'relative_position', 'label_priority', 'milestone_due', 'popularity', 'weight'])
459459
;
460460
$resolver->setDefined('sort')
461461
->setAllowedValues('sort', ['asc', 'desc'])

src/Api/Users.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,18 @@ public function update(int $id, array $params, array $files = [])
191191
}
192192

193193
/**
194-
* @param int $id
194+
* @param int $id
195+
* @param array $params {
196+
*
197+
* @var bool $hard_delete If true, contributions that would usually be moved to the ghost user are
198+
* deleted instead, as well as groups owned solely by this user.
199+
* }
195200
*
196201
* @return mixed
197202
*/
198-
public function remove(int $id)
203+
public function remove(int $id, array $params = [])
199204
{
200-
return $this->delete('users/'.self::encodePath($id));
205+
return $this->delete('users/'.self::encodePath($id), $params);
201206
}
202207

203208
/**

0 commit comments

Comments
 (0)