-
Notifications
You must be signed in to change notification settings - Fork 68
Alignerr project creation #2015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
midhun-pm
wants to merge
9
commits into
develop
Choose a base branch
from
alignerr_changes
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55c37a8
to
5b39858
Compare
5b39858
to
fe8b1bc
Compare
Gabefire
reviewed
Oct 1, 2025
from labelbox.alignerr.schema.project_domain import ProjectDomain | ||
|
||
|
||
class AlignerrRole(Enum): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this role QQ we have other custom roles right?
fe8b1bc
to
af7fc8a
Compare
d6e6104
to
ca1deaf
Compare
d443816
to
0a4db6e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Alignerr Project Management - High-Level Changes
Overview
This PR introduces a comprehensive new module for Alignerr project management within the Labelbox Python SDK. The changes add a complete project creation and management system with support for project rates, domains, enhanced resource tags, and project ownership.
Code Organization Changes
1. New Module Structure
The PR introduces a new
alignerr
module underlibs/labelbox/src/labelbox/alignerr/
with the following structure:2. Design Patterns Implemented
Builder Pattern (
AlignerrProjectBuilder
)Factory Pattern (
AlignerrProjectFactory
)Workspace Pattern (
AlignerrWorkspace
)3. Schema Organization
The new schema module provides structured data models for:
4. Client Integration
The changes integrate seamlessly with the existing Labelbox Client:
Key Features Added
1. Project Rate Management
2. Project Domain System
3. Enhanced Resource Tagging
4. Project Ownership Management
5. Validation System
Testing Infrastructure
The PR includes comprehensive test coverage:
Test files added:
test_alignerr_project.py
test_alignerr_project_builder.py
test_alignerr_project_factory.py
test_enhanced_resource_tags.py
test_project_domain.py
test_project_rate.py
API Design Principles
1. Fluent Interface
The builder pattern provides a fluent, chainable API:
2. Declarative Configuration
The factory pattern supports YAML-based configuration:
3. Backward Compatibility
All changes are additive and don't break existing functionality.
4. Type Safety
Comprehensive type hints and Pydantic models ensure type safety throughout the API.
Integration Points
1. Existing Schema Integration
Project
schemaUser
andRole
systems2. GraphQL Integration
3. Client Architecture
Migration and Adoption
For Existing Users
client.alignerr_workspace()
For New Users
Future Extensibility
The architecture is designed for future extensions:
Summary
This PR represents a significant enhancement to the Labelbox Python SDK, introducing a complete project management system for Alignerr workflows. The changes follow established design patterns, maintain backward compatibility, and provide a solid foundation for future enhancements. The code organization is clean, well-tested, and follows Python best practices throughout.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
All Submissions
New Feature Submissions
Changes to Core Features