|
| 1 | +# UPGRADE FROM 8.0 to 9.0 |
| 2 | + |
| 3 | +Since 9.0, lib no longer use buzz 0.7+, instead it has an HTTPlug abstraction layer. |
| 4 | + |
| 5 | +## `Gitlab\Client` changes |
| 6 | + |
| 7 | +* The constructor no longer allow to specify base url. Use `setUrl` or `Client::create` instead. |
| 8 | +* The default url is set to `https://gitlab.com`. |
| 9 | +* The `$options` constructor argument have been removed, the `getOption` and `setOption` methods have been removed. |
| 10 | +See [documentation](doc/customize.md) to know how to customize the client timeout and how to use a custom user agent. |
| 11 | +* The `setBaseUrl` and `getBaseUrl` methods have been removed. Use `setUrl` instead. |
| 12 | +* The `clearHeaders` and `setHeaders` methods have been removed. See [documentation](doc/customize.md) to know how use custom headers. |
| 13 | +* The `setHttpClient` method have been removed. Use a `Gitlab\HttpClient\Builder` instead. |
| 14 | +* The `getHttpClient` method return type is changed to `Http\Client\Common\HttpMethodsClient`. |
| 15 | + |
| 16 | +## `Gitlab\Api\AbstractApi` changes |
| 17 | + |
| 18 | +* The `PER_PAGE` class constant have been removed. |
| 19 | + |
| 20 | +## `Gitlab\Api\DeployKeys` changes |
| 21 | + |
| 22 | +* The `all` method now take a single argument which is an associative array of query string parameters. |
| 23 | +* The `ORDER_BY` and `SORT` class constants have been removed. |
| 24 | + |
| 25 | +## `Gitlab\Api\Groups` changes |
| 26 | + |
| 27 | +* The `visibility_level` parameter have been removed from `create` method. Use `visibility` instead. |
| 28 | +* The `all` method now take a single argument which is an associative array of query string parameters. |
| 29 | +* The `search` method have been removed. Use `all` method instead. |
| 30 | +* The `members` method second and subsequent arguments have been replaced by a single associative array of query string parameters. |
| 31 | +* The `projects` method second and subsequent arguments have been replaced by a single associative array of query string parameters. |
| 32 | + |
| 33 | +## `Gitlab\Api\Issues` changes |
| 34 | + |
| 35 | +* The second argument of `update`, `remove`, `showComments`, `showComment`, `addComment`, `updateComment`, `removeComment`, |
| 36 | + `setTimeEstimate`, `resetTimeEstimate`, `addSpentTime` and `resetSpentTime` methods is now a scoped issue id (iid). |
| 37 | +* The `all` method second and subsequent arguments have been replaced by a single associative array of query string parameters. |
| 38 | + |
| 39 | +## `Gitlab\Api\IssueBoards` changes |
| 40 | + |
| 41 | +* The `all` method second and subsequent arguments have been replaced by a single associative array of query string parameters. |
| 42 | + |
| 43 | +## `Gitlab\Api\MergeRequests` changes |
| 44 | + |
| 45 | +* The `getList`, `getByIid`, `merged`, `opened` and `closed` methods have been removed. Use `all` method instead. |
| 46 | +* The `ORDER_BY` and `SORT` class constants have been removed. |
| 47 | +* The `all` method now take a single argument which is an associative array of query string parameters. |
| 48 | +* The `getNotes` method now take only two arguments, the project id and the merge request iid. |
| 49 | + |
| 50 | +## `Gitlab\Api\Milestones` changes |
| 51 | + |
| 52 | +* The `all` method second and subsequent arguments have been replaced by a single associative array of query string parameters. |
| 53 | + |
| 54 | +## `Gitlab\Api\Projects` changes |
| 55 | + |
| 56 | +* The `keys`, `key`, `addKey`, `removeKey`, `disableKey` and `enableKey` methods have been removed. |
| 57 | +Use the `deployKeys`, `deployKey`, `addDeployKey`, `deleteDeployKey`, `removeDeployKey` and `enableDeployKey` instead. |
| 58 | +* The `ORDER_BY` and `SORT` class constants have been removed. |
| 59 | +* The `accessible`, `owned` and `search` methods have been removed. Use `all` method instead. |
| 60 | +* The `all` method now take a single argument which is an associative array of query string parameters. |
| 61 | +* The `trace` method have been removed. Use `Gitlab\Api\Jobs::trace` instead. |
| 62 | +* The `builds` method have been removed. Use `Gitlab\Api\Jobs::all` instead. |
| 63 | +* The `build` method have been removed. Use `Gitlab\Api\Jobs::show` instead. |
| 64 | +* The `events` method second and subsequent arguments have been replaced by a single associative array of query string parameters. |
| 65 | +* The `deployments` method second and subsequent arguments have been replaced by a single associative array of query string parameters. |
| 66 | + |
| 67 | +## `Gitlab\Api\ProjectNamespaces` changes |
| 68 | + |
| 69 | +* The `search` method have been removed. Use `all` method instead. |
| 70 | +* The `all` method now take a single argument which is an associative array of query string parameters. |
| 71 | + |
| 72 | +## `Gitlab\Api\Repositories` changes |
| 73 | + |
| 74 | +* The `commitBuilds` method have been removed. Use `Gitlab\Api\Projects::pipelines` instead. |
| 75 | +* The `commits` method second and subsequent arguments have been replaced by a single associative array of query string parameters. |
| 76 | +* The `commitComments` method third and subsequent arguments have been replaced by a single associative array of query string parameters. |
| 77 | + |
| 78 | +## `Gitlab\Model\Project` changes |
| 79 | + |
| 80 | +* The `keys`, `key`, `addKey`, `removeKey`, `disableKey` and `enableKey` methods have been removed. |
| 81 | +Use the `deployKeys`, `deployKey`, `addDeployKey`, `deleteDeployKey`, `removeDeployKey` and `enableDeployKey` instead. |
| 82 | + |
| 83 | +## `Gitlab\Model\Snippet` changes |
| 84 | + |
| 85 | +* The `expires_at` property have been removed.` |
| 86 | + |
| 87 | +## `Gitlab\Model\Users` changes |
| 88 | + |
| 89 | +* The `all` method now take a single argument which is an associative array of query string parameters. |
| 90 | +* The `lookup` and `search` methods have been removed. Use `all` method instead. |
0 commit comments