Skip to content

Comments

feat: Allow mark items as updated#109

Merged
Jim-Encord merged 10 commits intomainfrom
jb/mark-items-as-updated
Mar 28, 2025
Merged

feat: Allow mark items as updated#109
Jim-Encord merged 10 commits intomainfrom
jb/mark-items-as-updated

Conversation

@Jim-Encord
Copy link
Contributor

Not yet fully implemented for the queue runner as passing hydrated objects is somewhat unclear.
But this covers batching of label updates to the Label objects and includes a pretty hefty test.

@Jim-Encord Jim-Encord requested a review from a team as a code owner March 10, 2025 10:44
@github-actions
Copy link

github-actions bot commented Mar 10, 2025

Encord Agents test report

83 tests   82 ✅  3m 25s ⏱️
 1 suites   1 💤
 1 files     0 ❌

Results for commit 1d6918a.

♻️ This comment has been updated with latest results.

@Jim-Encord Jim-Encord force-pushed the jb/mark-items-as-updated branch from 9f8fcfb to 8008a55 Compare March 10, 2025 11:09
@Jim-Encord Jim-Encord force-pushed the jb/fetch-storage-items-batched branch from 056f446 to 84a779a Compare March 11, 2025 13:45
@Jim-Encord Jim-Encord force-pushed the jb/mark-items-as-updated branch 2 times, most recently from ccc1b82 to 1eb60f0 Compare March 11, 2025 16:21
@Jim-Encord Jim-Encord force-pushed the jb/mark-items-as-updated branch from 1eb60f0 to dcb7192 Compare March 11, 2025 17:36
@Jim-Encord Jim-Encord force-pushed the jb/fetch-storage-items-batched branch from 3d4e0ae to 76c5d3e Compare March 14, 2025 11:20
@Jim-Encord Jim-Encord force-pushed the jb/mark-items-as-updated branch from dcb7192 to 1bd70bc Compare March 14, 2025 11:20
@Jim-Encord Jim-Encord force-pushed the jb/fetch-storage-items-batched branch from 76c5d3e to ce2e388 Compare March 14, 2025 14:51
@Jim-Encord Jim-Encord force-pushed the jb/mark-items-as-updated branch from 1bd70bc to ea49116 Compare March 14, 2025 14:59
@Jim-Encord Jim-Encord force-pushed the jb/fetch-storage-items-batched branch from ce2e388 to 4318c29 Compare March 17, 2025 17:12
Base automatically changed from jb/fetch-storage-items-batched to main March 18, 2025 14:21
@Jim-Encord Jim-Encord force-pushed the jb/mark-items-as-updated branch from ea49116 to a3c6cf2 Compare March 18, 2025 14:52

```

We make use of the [bundle method](https://docs.encord.com/sdk-documentation/general-sdk/sdk-bulk-action-best-practices){target="_blank", rel="noopener"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems incomplete.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added some more verbiage but debatable honestly the necessity of the sentence

@Jim-Encord Jim-Encord force-pushed the jb/mark-items-as-updated branch 3 times, most recently from f69f1c1 to 80191fe Compare March 21, 2025 08:22
@Jim-Encord Jim-Encord force-pushed the jb/mark-items-as-updated branch from 80191fe to 6a64589 Compare March 24, 2025 14:14
assert AGENT_TO_COMPLETE_PATHWAY_HASH in str(e)


def test_queue_runner_return_struct_object(ephemeral_image_project_hash: str) -> None:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: This test is insanely slow as the current behaviour is that we can't really batch saving of label rows from a queue. Either migrate to the normal project and then we can't mutate the label row in a style agnostic way (AUDIO and PLAIN_TEXT don't allow adding object_instances like the current method).
Or maybe call with a max_task_size.

Looks like we could just move DecoratedCallable up rather than bring everything else down.
Makes things slightly cleaner if we're not really providing this behaviour for editor agents
@Jim-Encord Jim-Encord force-pushed the jb/mark-items-as-updated branch from 6a64589 to 1d6918a Compare March 28, 2025 11:20
@Jim-Encord Jim-Encord merged commit 5c64952 into main Mar 28, 2025
4 checks passed
@Jim-Encord Jim-Encord deleted the jb/mark-items-as-updated branch March 28, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants