-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
vtenv: Introduce vtenv for passing in collation & parser information #14994
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great cleanup! ❤️
truncateUILen int | ||
truncateErrLen int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two feel a bit out of place, because they seem very specific to the status pages. 🤷🏻♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are used in a few more places but yeah. I don’t have a much better idea though, we need to pass them all the through then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i like this!
package vtenv | ||
|
||
import ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Header is missing here
We need to re-run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a really nice refactor, thank you!
c5f3569
to
57d99d5
Compare
5190549
to
da1913c
Compare
da1913c
to
e174e1a
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #14994 +/- ##
==========================================
- Coverage 47.34% 47.33% -0.01%
==========================================
Files 1142 1144 +2
Lines 239041 238997 -44
==========================================
- Hits 113178 113140 -38
+ Misses 117265 117263 -2
+ Partials 8598 8594 -4 ☔ View full report in Codecov by Sentry. |
e174e1a
to
8a437ac
Compare
We have many places taking already 3 arguments for the collation env, parser & MySQL version. This is due to the refactors to pass in explicit state. This introduces `vtenv` to refactor things a bit and slightly clean it up. We now have one thing that can carry all three dependencies and also potential future additional ones where we need it. Signed-off-by: Dirkjan Bussink <[email protected]>
8a437ac
to
3bec3b9
Compare
We have many places taking already 3 arguments for the collation env, parser & MySQL version. This is due to the refactors to pass in explicit state.
This introduces
vtenv
to refactor things a bit and slightly clean it up. We now have one thing that can carry all three dependencies and also potential future additional ones where we need it.Related Issue(s)
Part of #14717
Checklist