Skip to content

Commit 5a8db61

Browse files
committed
fix: revert publish-limit to 50 and de-scope description docblock
- Revert TaskClient::publish()'s docblock and docs/tasks.md from "fewer than 10" back to "fewer than 50" published tasks. The published OpenAPI spec v2-2026-09-02T154542Z (the version this client names) still states 50; a separate platform docs page is not the authoritative source for this client. - Reword Task::getDescription() and its docs/models.md row to drop the "public landing page" framing, matching the neutral getTitle() style; the field is a plain description with no landing-page-only semantics. - Fold the two back-to-back update() calls in TaskIntegrationTest::testTaskCrudFlow into a single call.
1 parent 66fc913 commit 5a8db61

6 files changed

Lines changed: 10 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
## 0.6.0
44

55
- Synced to Apify OpenAPI spec `v2-2026-09-02T154542Z`.
6-
- Added `Task::getDescription()` getter, exposing the task's public-landing-page description
6+
- Added `Task::getDescription()` getter, exposing the task's human-readable description
77
(matching the reference JS client's `Task.description`).
8-
- Corrected the published-tasks limit in `TaskClient::publish()`'s docblock and `docs/tasks.md`:
9-
the requirement is fewer than 10 already-published tasks on the Actor, not 50.
108

119
## 0.5.3
1210

docs/models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ model is also used as an input object and therefore additionally exposes setters
7070
| `getUserId(): ?string` | ID of the task owner. |
7171
| `getName(): ?string` | The task's technical name. |
7272
| `getTitle(): ?string` | Human-readable title. |
73-
| `getDescription(): ?string` | Human-readable description shown on the task's public landing page. |
73+
| `getDescription(): ?string` | Human-readable description of the task. |
7474
| `getCreatedAt(): ?string` | ISO-8601 creation timestamp. |
7575
| `getModifiedAt(): ?string` | ISO-8601 last-modification timestamp. |
7676
| `isPublic(): ?bool` | Whether the task is published on its public landing page. |

docs/tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ foreach ($client->tasks()->iterate(new ListOptions(), 50) as $t) {
2626
- `get(): ?Task`, `update(mixed $newFields): Task`, `delete(): void`
2727
- `publish(): Task`, `unpublish(): Task` — publish/unpublish the task's public landing page, by
2828
setting `isPublic` through `update()`. Both require write permission to the task's Actor;
29-
publishing additionally requires the Actor to be public, to have fewer than 10 already-published
29+
publishing additionally requires the Actor to be public, to have fewer than 50 already-published
3030
tasks, and the task's `publicConfig.inputSchemaFields`/`publicConfig.datasetView` to be set.
3131
- `start(mixed $input = null, ?TaskStartOptions $options = null): ActorRun`
3232
- `call(mixed $input = null, ?TaskStartOptions $options = null, ?int $waitSecs = null): ActorRun`

src/Model/Task.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getTitle(): ?string
3737
return $this->getString('title');
3838
}
3939

40-
/** The human-readable description shown on the task's public landing page. */
40+
/** The human-readable description of the task. */
4141
public function getDescription(): ?string
4242
{
4343
return $this->getString('description');

src/Resource/TaskClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function delete(): void
6262
* {@see update()}. Requires write permission to the task's Actor.
6363
*
6464
* To publish, the task's Actor must be public, its {@code publicConfig.inputSchemaFields} and
65-
* {@code publicConfig.datasetView} must be set, and the Actor must have fewer than 10
65+
* {@code publicConfig.datasetView} must be set, and the Actor must have fewer than 50
6666
* published tasks; if any of these are not met, the request fails and nothing is changed.
6767
* Publishing an already published task does nothing.
6868
*/

tests/Integration/TaskIntegrationTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,11 @@ public function testTaskCrudFlow(): void
106106
self::assertNotNull($tc->get());
107107
$tc->updateInput(['message' => 'updated']);
108108
self::assertNotNull($tc->getInput());
109-
$tc->update(['name' => self::uniqueName('task-renamed')]);
110-
$updated = $tc->update(['title' => 'Updated Title', 'description' => 'Updated description']);
109+
$updated = $tc->update([
110+
'name' => self::uniqueName('task-renamed'),
111+
'title' => 'Updated Title',
112+
'description' => 'Updated description',
113+
]);
111114
self::assertSame('Updated Title', $updated->getTitle());
112115
self::assertSame('Updated description', $updated->getDescription());
113116
$tc->runs()->list(new ListOptions(), new RunListOptions());

0 commit comments

Comments
 (0)