-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add generic actions for governance #633
Conversation
71786d9
to
90db0e3
Compare
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.
When documenting public entities, please finish your sentence with a period (.
) 💅
What I have noticed is that we have no rule for which error to use when. It is fully random which error instance a validator failure will return. For example, if a field value is required but empty, we have places where ErrEmpty
, ErrInput
, ErrState
, ErrModel
or ErrMsg
is returned. At least 5 different types for the same case!! We must do something about it because it does not look professional.
Code looks good. I will be persistent about good enough comments though 👮♀️😉 I am looking forward to the tests to pass.
There are some valid switches, where it just takes on value (enum) and matches, and I left that. Note that these were used heavily in Validate (to save a bit of typing) but would have to change anyway for multi-error as many of these could be true and we would want to match them all. Sorry @alpe
acdc427
to
5bcd30e
Compare
Codecov Report
@@ Coverage Diff @@
## master #633 +/- ##
========================================
- Coverage 69% 68.7% -0.4%
========================================
Files 172 174 +2
Lines 9345 9330 -15
========================================
- Hits 6452 6411 -41
- Misses 2146 2163 +17
- Partials 747 756 +9
Continue to review full report at Codecov.
|
} | ||
|
||
func NewTextResolutionHandler(auth x.Authenticator) *TextResolutionHandler { | ||
// TODO: actually add a bucket to store resolutions |
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.
TODO should not be merged. Please either complete it or remove it as we try to remove all TODO from weave
codebase.
There are more TODO comments in this file 👮♀️
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 referenced in a comment in the PR.
I don't know whether to do it now, or just a quick follow-up PR
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.
If you promise to address it this week, than 👍
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.
Where all those extra dependencies are coming from?
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 come from prototool. When I ran |
Yes, please. You can run |
Addresses #586
This will finalize the x/gov functionality
All changes for the dynamic Decoder/Executor/Options are completed as prototyped in the spec.
All code compiles and tests pass.
Things to do (maybe not as part of this PR):
And of course #589 when this is merged