-
Notifications
You must be signed in to change notification settings - Fork 167
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
chore: refactor some files from the api directory to internal #2808
Conversation
✅ Deploy Preview for docs-kargo-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: xiaopeng <hanxiaop8@outlook.com>
5ac2cca
to
014bdac
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2808 +/- ##
==========================================
- Coverage 48.83% 48.68% -0.15%
==========================================
Files 270 272 +2
Lines 23932 23962 +30
==========================================
- Hits 11687 11666 -21
- Misses 11616 11663 +47
- Partials 629 633 +4 ☔ View full report in Codecov by Sentry. |
What is the goal of this PR? I would never make a claim that everything is organized 100% optimally as is, but these changes move a lot of important functionality out of a package where it made sense for that functionality to live into a nondescript "helpers" package. Helper packages are almost always a code smell. With some careful thought, there is almost always a better answer than moving functionality into a package whose name does not reflect a clear purpose. It becomes a virtual certainty that such a package will become a "junk drawer" over time. |
@krancour sorry for not writing the description and causing confusion. I agree that |
I agree with event-related things moving, especially if it disrupts a would-be import cycle, but there are definitely some things moved around in here that, as far as I can tell, don't need to move. Things like |
Those functionalities you mentioned are coupled with some functions in |
No description provided.