Skip to content

Commit c2a7129

Browse files
committed
wip
1 parent ca487a7 commit c2a7129

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

INTERNAL_CHANGES_GUIDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ Numbers are: [insertions] [deletions] [path]
242242

243243
### API Behavior Changes (Upgrade Notes)
244244
- Clients API: `GET /api/v1/organizations/{org}/clients` now returns clients ordered by `name` ascending (was `created_at` desc). If you rely on ordering, update your consumers accordingly.
245+
- Projects API: `GET /api/v1/organizations/{org}/projects` now returns projects ordered by `name` ascending (was `created_at`-based ordering in some flows). If you relied on creation-time ordering, sort client-side or use a dedicated query param in future versions.
245246
- Clients API: `DELETE /api/v1/organizations/{org}/clients/{client}` is disabled. It now returns `200` with `{ message: "Client deletion disabled" }` and does not delete data.
246247
- Projects API: `DELETE /api/v1/organizations/{org}/projects/{project}` is disabled. It now returns `200` with `{ message: "Project deletion disabled" }` and does not delete data.
247248

tests/Unit/Endpoint/Api/V1/ProjectEndpointTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,10 @@ public function test_index_endpoint_does_not_set_billable_rate_to_null_if_member
211211
->has('data')
212212
->has('links')
213213
->has('meta')
214-
->where('data.0.billable_rate', 112)
215-
->where('data.1.billable_rate', 112)
216-
->where('data.2.billable_rate', 113)
217-
->where('data.3.billable_rate', 113)
218214
);
215+
$billableRates = $response->json('data.*.billable_rate');
216+
sort($billableRates);
217+
$this->assertSame([112, 112, 113, 113], $billableRates);
219218
}
220219

221220
public function test_show_endpoint_fails_if_user_is_not_part_of_project_organization(): void

0 commit comments

Comments
 (0)