Remove v1 API support and transition to v2 exclusively#521
Merged
Conversation
jrhoads
commented
Feb 16, 2026
| ] | ||
| ) | ||
|
|
||
| sort_field = params.get("sort", "id") |
Member
Author
There was a problem hiding this comment.
Sort removed because it is not used
jrhoads
added a commit
that referenced
this pull request
Feb 17, 2026
[STAGING] Remove v1 API code and transition to v2 (#521)
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.
Purpose
This PR officially removes support for the v1 API and schema, fully transitioning the ROR API to v2 as the exclusive version. This includes removing v1-specific models, serializers, index templates, and tests.
Approach
The codebase has been refactored to remove version-branching logic. Previously, many functions accepted a
versionparameter to toggle between v1 and v2 behavior; these have been simplified to default to v2 logic only. The Elasticsearch query builders and matching algorithms now exclusively target theorganizations-v2index and schema.Key Modifications
ALLOWED_VERSIONSinsettings.pyto['v2']and removed v1 from URL patterns.-s 2).matching.py,queries.py, andviews.pythat handled v1 record structures (e.g.,labels,aliases,country.country_code).rorapi/v1/directory containing models, serializers, and Elasticsearch templates.V1DeprecationMiddlewareand its associated settings.Important Technical Details
organizationsElasticsearch index is no longer referenced; all queries now targetorganizations-v2.ALLOWED_FIELDS_V2) now only permits fields present in the v2 schema.HeartbeatViewandGenerateIdservices now exclusively validate against the v2 index.Types of changes
Reviewer, please remember our guidelines: