Draft
Conversation
Contributor
|
Container images for this PR have been built successfully!
Built from commit acfd0c9 |
af93fc7 to
82b9c9d
Compare
82b9c9d to
0f8102c
Compare
b19bd78 to
c8fa901
Compare
bd3a77d to
6113d3a
Compare
|
This pull request has merge conflicts. Please resolve the conflicts so the PR can stay up-to-date and reviewed. |
6113d3a to
417b9f0
Compare
10321c2 to
1fd30eb
Compare
|
This pull request has merge conflicts. Please resolve the conflicts so the PR can stay up-to-date and reviewed. |
1fd30eb to
cb5d09c
Compare
|
This pull request has merge conflicts. Please resolve the conflicts so the PR can stay up-to-date and reviewed. |
cb5d09c to
acfd0c9
Compare
|
This pull request has merge conflicts. Please resolve the conflicts so the PR can stay up-to-date and reviewed. |
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.

Checklist
mainbranchWhat This PR Implements
Fixes:
Changes Made
Testing Done
./scripts/development/dev.sh startjust lint all)just test backendAI Tool Used (if applicable)
AI Tool:
Assistance Level:
What AI helped with:
I reviewed and edited all AI-generated output:
I ran all required tests and manually verified changes:
Additional Context
Disclaimer Greptiles Reviews use AI, make sure to check over its work.
To better help train Greptile on our codebase, if the comment is useful and valid Like the comment, if its not helpful or invalid Dislike
To have Greptile Re-Review the changes, mention
greptileai.Greptile Summary
This PR applies large-scale backend cleanup across 96 files, primarily adding the
Internalsuffix to unexported Go functions per the team's naming convention and extracting utilities. The convention is applied consistently in most service files, but a few newly introduced/modified files inpkg/pagination(filters.go,search.go) andinternal/services/container_service.gostill contain unexported free functions without the required suffix.Confidence Score: 5/5
Safe to merge; all findings are style/naming P2 issues with no functional impact.
No logic bugs, security issues, or data-integrity problems were found. All remaining comments are P2 naming convention violations — the exact convention this PR is introducing — which do not block merge.
backend/pkg/pagination/filters.go, backend/pkg/pagination/search.go, backend/internal/services/container_service.go (naming convention consistency)
Comments Outside Diff (2)
backend/pkg/pagination/filters.go, line 39-88 (link)Internalsuffix on unexported functionsPer the repo's naming convention, all unexported functions must have the
Internalsuffix. The functionsfilterFn,itemMatches,getAccessor, andmatchValuein this file — andsearchFninsearch.go— are all unexported but lack the suffix. Since this PR is specifically applying that convention across the backend, these should be renamed tofilterFnInternal,itemMatchesInternal,getAccessorInternal,matchValueInternal, andsearchFnInternal.Rule Used: What: All unexported functions must have the "Inte... (source)
Prompt To Fix With AI
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
backend/internal/services/container_service.go, line 1066-1094 (link)filterInternalContainers/collectImageIDsviolate theInternalsuffix conventionfilterInternalContainersuses "Internal" as a semantic descriptor for "Arcane-internal containers," not as the naming-convention suffix. A reader following the convention would misread this as compliant when it isn't. It should befilterArcaneInternalContainersInternal(or a shorter equivalent).collectImageIDssimilarly lacks the required suffix.Rule Used: What: All unexported functions must have the "Inte... (source)
Prompt To Fix With AI
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "refactor: cleanup backend code" | Re-trigger Greptile
Context used: