[ALNR-6808] Remove ProjectRateV2 methods from lbox-alignerr SDK - #2072
Merged
Conversation
Delete legacy Pay By Role rate helpers and fail clearly pointing callers to the Rates UI (Pay By Activity). Bump package to 0.3.0.
pawelkozik-labelbox
temporarily deployed
to
Test-PyPI
July 29, 2026 13:57 — with
GitHub Actions
Inactive
pawelkozik-labelbox
temporarily deployed
to
Test-PyPI
July 29, 2026 14:08 — with
GitHub Actions
Inactive
pawelkozik-labelbox
marked this pull request as ready for review
July 29, 2026 14:21
pawelkozik-labelbox
requested review from
KahvehS,
cyrusj89,
john-labelbox,
labelbox-engineering,
manuaero,
pablito25sp and
ramy1951
July 29, 2026 14:21
pablito25sp
approved these changes
Jul 29, 2026
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
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.
https://labelbox.atlassian.net/browse/ALNR-6808
Context
lbox-alignerrstill wraps legacy Pay By Role GraphQL (setProjectRateV2/ratesV2)In scope
lbox-alignerrOut of scope
Note
Medium Risk
Breaking SDK change for anyone still setting or reading Pay By Role rates via Python/YAML; project creation behavior changes (no automatic rate setup). Billing-critical but intentional and surfaced with clear errors.
Overview
Removes legacy Pay By Role rate APIs from
lbox-alignerrahead of LB-API write removal. TheProjectRateV2schema module is deleted; builder/factory no longer wire rates on create, and alignerr/customer rate validation is dropped (project owner validation remains).Callers hitting old entry points get explicit failures:
get_project_rates/set_project_rateand builderset_alignerr_role_rate/set_customer_rateraiseNotImplementedErrorwith a shared message pointing to the Labelbox Rates UI (Pay By Activity). YAML configs that includeratesorcustomer_ratefail fast withValueErrorusing the same message.Package version bumps to 0.3.0; README no longer lists rate management; tests and fixtures are updated to match.
Reviewed by Cursor Bugbot for commit 9fd23ab. Bugbot is set up for automated code reviews on this repo. Configure here.