-
Notifications
You must be signed in to change notification settings - Fork 217
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
Return descriptive 503 when listing stake pools with uncomplete sync #2094
Return descriptive 503 when listing stake pools with uncomplete sync #2094
Conversation
543a44b
to
6baeef7
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.
Looks good so far. 👍
I've added some suggestions in the comments.
There are still some issues with formatting to address. (See comments.)
@hasufell I have taken your branch ( Still see 500 and "Somenthing went wrong" on listing stake pools while wallet is syncing through Byron era. (Checked on testnet) (btw, is there a reason why you are using your fork of cardano-wallet instead of using main repo?) |
I can reproduce. This is the problem as described in #1971 (comment) It's hard to say where this exception leaks to. |
113fe0d
to
cf69b88
Compare
@piotr-iohk should be fixed, please retry |
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.
Hi @hasufell
There are still some issues with coding style.
In a previous review, I made these requested changes, and they were marked as resolved, but they don't seem to be have been fixed (or if they were, perhaps the fixes were reverted by a subsequent push?):
- https://github.com/input-output-hk/cardano-wallet/pull/2094/files#r480718996
- https://github.com/input-output-hk/cardano-wallet/pull/2094/files#r480723300
- https://github.com/input-output-hk/cardano-wallet/pull/2094/files#r480716728
Please could you address these issues?
As I mentioned before, I would love to be able to give you a tool that could automatically apply the correct format, but I don't have one. If you'd like to explore automated solutions such as brittany, I would not be opposed. But that requires a team discussion which is outside the scope of this PR.
Given that our team does not yet use an automated tool, team members generally make a best effort to make their code follow the standard. Could you do that? I don't think it's too hard to follow given that it's rather short, and only has a few rules. We provide an .editor
file to make this easier, so the burden should not be too arduous.
As a reminder:
- The purpose of having a written standard is to record things that the team has agreed on, so discussions about style can be avoided during PR reviews.
- The benefit is that we can concentrate on more important issues during PR reviews, such as functionality and correctness.
- Rules are added to the standard as the result of team discussions and voting. The standard is a consensus that we've worked out over time.
We allow ourselves the flexibility to occasionally break our own standard if there is good reason. But I don't think that this flexibility should be interpreted as licence to not follow the standard (on the basis that there is no automated tool), especially when the reviewer has gone to the effort of providing suggestions and feedback.
Thank-you.
12281e3
to
51d9bf6
Compare
Hi @jonathanknowles , thank you very much for your detailed explanation! I believe there must be a misunderstanding though. I wasn't arguing against the coding standard in any of my PRs I believe, nor have I indicated that I don't intend to follow it. In fact I've spent a great deal of time configuring my editor, filing bug reports on various vim plugins and reading through stylish-haskell documentation in order to figure out if some of this can be automated (because we already use this tool). I'm using the Maybe you're faster at pattern recognition and adapting to different coding styles. I personally am not and I've never worked with this coding style, so I'm afraid it will take more time before my PRs will satisfy your standards, unless this will be automated. Please bear with me. Thanks for your time reviewing these points! |
LGTM.
|
code has been adjusted accordingly 👍
bors r+ |
This PR was included in a batch with a merge conflict, it will be automatically retried |
Merge conflict |
6cd8b82
to
282e86b
Compare
bors r+ |
This PR was included in a batch with a merge conflict, it will be automatically retried |
2094: Return descriptive 503 when listing stake pools with uncomplete sync r=hasufell a=hasufell Wrt #1971 Co-authored-by: Julian Ospald <[email protected]>
Build failed |
bors r+ |
2094: Return descriptive 503 when listing stake pools with uncomplete sync r=KtorZ a=hasufell Wrt #1971 Co-authored-by: Julian Ospald <[email protected]>
Build failed |
282e86b
to
1b4692c
Compare
bors r+ |
Build succeeded: |
Wrt #1971