Skip to content

Feature/labimp 7661 create gcs connector - #14

Merged
ximihoque merged 37 commits into
mainfrom
feature/LABIMP-7661-create-gcs-connector
Oct 13, 2025
Merged

Feature/labimp 7661 create gcs connector#14
ximihoque merged 37 commits into
mainfrom
feature/LABIMP-7661-create-gcs-connector

Conversation

@QeyCoder

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread .github/workflows/release.yml Fixed
@adsmundra

Copy link
Copy Markdown

@claude

@claude

claude Bot commented Sep 30, 2025

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

@adsmundra

Copy link
Copy Markdown

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

Comment thread labellerr/async_client.py Outdated
Comment thread labellerr/client.py
"HEAD",
"GET",
"PUT",
"DELETE",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we don't support delete op

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

so delete_dataset is also not required?

Comment thread labellerr/client.py Outdated
Comment thread labellerr/client.py Outdated
connection_type=connection_type,
credentials=credentials,
)
except ValidationError as e:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no need to wrap the validation errors, as they are more meaningful

Comment thread labellerr/client.py
create_dataset_parameters: Dict[str, Any] = {}


class LabellerrClient:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

suggestion - we can have the log_api_call and handle_api_errors decorators as part of this class itself so that all the public methods don't have to use this decorator. this will be enforced by default. we can add a class level decorator for example.

if not possible then we can go with the linter based approach.

Comment thread labellerr/client.py
raise LabellerrError(str(e))

unique_id = str(uuid.uuid4())
url = f"{constants.BASE_URL}/users/remove_user_from_project?client_id={params.client_id}&project_id={params.project_id}&uuid={unique_id}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ximihoque please create backend API for this to remove user from a project.

Comment thread labellerr/client.py
raise LabellerrError(str(e))

unique_id = str(uuid.uuid4())
url = f"{constants.BASE_URL}/users/change_user_role?client_id={params.client_id}&project_id={params.project_id}&uuid={unique_id}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not sure, if this api exists

Comment thread labellerr/client.py

@log_method_call(include_params=False)
@handle_api_errors
def list_file(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

function name - search_files

structure of the search queries needs to be defined here. also a docstring is needed. examples will be put in the documentation. but couple of examples can be put here in the docstring.

Comment thread labellerr/client_utils.py
int(annotation_rotation_count or 0) > 1
and int(client_review_rotation_count or 0) != 0
):
raise LabellerrError(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

raise ValidationError in case of any breaking validations

Comment thread labellerr/client_utils.py
@@ -96,6 +105,7 @@ def validate_file_exists(file_path: str) -> str:
:raises LabellerrError: If file doesn't exist
"""
import os

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

imports on the top of the file

@ximihoque
ximihoque merged commit 0f74ed3 into main Oct 13, 2025
4 of 5 checks passed
@ximihoque
ximihoque deleted the feature/LABIMP-7661-create-gcs-connector branch October 13, 2025 02:58
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.

5 participants