Skip to content

Conversation

robot-ci-heartex
Copy link
Collaborator

@robot-ci-heartex robot-ci-heartex commented Jul 15, 2025

This PR was automatically generated via Follow Merge. Workflow Run
Please ensure that all linked upstream Pull Requests are merged before proceeding with this one.

Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 477f3ca
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/688d22ccf20347000862a033

Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 477f3ca
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/688d22cc31e7970008a59411

Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for label-studio-playground canceled.

Name Link
🔨 Latest commit 477f3ca
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/688d22cc920c380008acf6e1

@github-actions github-actions bot added the feat label Jul 15, 2025
Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for label-studio-storybook canceled.

Name Link
🔨 Latest commit 477f3ca
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/688d22cc8f1a7700086656c1

robot-ci-heartex and others added 23 commits July 15, 2025 22:14
@jombooth
Copy link
Contributor

jombooth commented Jul 31, 2025

/git merge develop

Workflow run
Successfully merged: delete mode 100644 web/libs/editor/src/components/Timeline/Controls/VideoConfigControl.scss

@@ -259,6 +259,30 @@ def paginate_queryset(self, queryset, request, view=None):
return self.paginate_totals_queryset(queryset, request, view)
return self.sync_paginate_queryset(queryset, request, view)

def get_paginated_response_schema(self, schema):
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is the schema passed into here exactly?

Copy link
Contributor

@jombooth jombooth Aug 1, 2025

Choose a reason for hiding this comment

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

It's used by Spectacular and then Fern to describe the pagination behavior at this endpoint (in particular, that the field containing the list of tasks is called tasks rather than results)

'x-fern-header': {
'name': 'api_key',
'env': 'LABEL_STUDIO_API_KEY',
'prefix': 'Token ',
Copy link
Collaborator

Choose a reason for hiding this comment

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

One thing I never figured out is...
api_key param supports both legacy token, and jwt. The docs specify -H "Authorization: Token [your-token]" but it needs to be Bearer when using jwt. Confusing for users. Not sure if there is a clean way to show both

https://humansignal.slack.com/archives/C072ZLBQ6SJ/p1749753981577629?thread_ts=1749750510.009489&cid=C072ZLBQ6SJ

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could figure this out, but I wanted to keep consistent with what we had before for this initial version

extensions={
'x-fern-sdk-group-name': 'jwt_settings',
'x-fern-sdk-method-name': 'update',
'x-fern-audiences': ['public'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

when do we use non-public audiences? just curious. and is there a default if we dont specify?

Copy link
Contributor

Choose a reason for hiding this comment

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

We have a few endpoints that are marked 'internal' and these don't show up in fern. In practice, this is the same as not applying the fern extensions at all.

@jombooth
Copy link
Contributor

jombooth commented Aug 1, 2025

/git merge develop

Workflow run
Successfully merged: 6 files changed, 26 insertions(+), 12 deletions(-)

@@ -144,7 +144,27 @@ def get_queryset(self):
tags=['Webhooks'],
summary='Get all webhook actions',
description='Get descriptions of all available webhook actions to set up webhooks.',
responses={'200': 'Object with description data.'},
responses={
Copy link
Contributor

Choose a reason for hiding this comment

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

Same reason for not adding a serializer here as in ml/api.py?

Copy link
Contributor

Choose a reason for hiding this comment

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

merged before I saw this - actually this one's slightly different, in that it's not super easy (as far as I know) to programmatically generate a serializer. The response from this endpoint is a bit weird.

@robot-ci-heartex robot-ci-heartex marked this pull request as ready for review August 1, 2025 20:25
@robot-ci-heartex robot-ci-heartex requested a review from a team as a code owner August 1, 2025 20:25
@robot-ci-heartex robot-ci-heartex merged commit 3d12717 into develop Aug 1, 2025
@robot-ci-heartex robot-ci-heartex deleted the fb-ROOT-64 branch August 1, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants