Repository navigation
refactor(api): finish model import migration and enforce versioned aliases - #5535
Merged
Merged
Conversation
Contributor
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
chrisgacsal
marked this pull request as ready for review
November 16, 2026 10:09
tothandras
approved these changes
Nov 16, 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.
Overview
Follow-up to #5530, which merged into
main. This completes the migration of handwritten Go files that imported an API server package solely for model types, and adds a lint rule to keep the import names consistent.Notes for reviewer
apiv1orapiv3. The legacy compatibility test still exercises model aliases through the server package.importasin the standard and fast golangci-lint configs. It requiresapiv1,apiv1models,apiv3, andapiv3modelsfor the four corresponding packages and updates 29 handwritten imports to comply. The existing generated-file exclusion applies.Verification
Ran the affected Go package tests with PostgreSQL, the affected Go generators,
make lint-go, and the fast and collector alias checks. Both lint configs rejected missing and incorrect aliases in a temporary test package. The live quickstart test skipped becauseOPENMETER_ADDRESSwas unset.

Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Moves handwritten model references to the shared model packages and standardizes versioned import names.
No actionable issues found. Tests and lint were not run during this review.
Reviews (1) · Last reviewed commit: "chore(lint): enforce versioned API impor..." · Reviewed by Greptile