issue2749 - change migrate to material-ui/treeview#4921
issue2749 - change migrate to material-ui/treeview#4921jwhitlock merged 3 commits intotaskcluster:mainfrom
Conversation
|
Many thanks @cerkiewny! At the moment I'm looking to see if I can find someone to review this, hope to get back to you in the coming days... |
|
Hi! I'll take a look at this tomorrow. :) |
sarah-clements
left a comment
There was a problem hiding this comment.
This looks good :) I haven't tested it manually though. @cerkiewny have you manually tested this locally?
Yes I did, but could use a 2nd pair of eyes to look at the design aspect, the functionality itself was working. |
Ok, I have this up and running locally. One problem I've hit is that if I just go to http://localhost:5080 and then go to the menu icon on the left, select 'hook', I see an error: this.query is undefined. You can look in the console for some hints as to the location of the error. There's also some tests that have failed. Any with a red X you should click into the details link -> view in taskcluster -> click on the live log link on the right side of the taskcluster UI, and that will give you more details. If the messages are a bit vague or you can't figure out how to fix them then you can ask about them on here and me or petemoore can help you figure them out. |
|
@cerkiewny Please @ mention me when you've fixed the bug and made all changes and I'll take another look. |
@sarah-clements I think it's ready for next round |
|
Thanks ,you guys gonna particular the future of humanity |
|
Just realized I accidental removed the empty hook text, so adding it back and changing it to resolve #3044 |
| })), | ||
| })) | ||
| ? hookGroups.map(group => { | ||
| const nodes = group.hooks.map(hook => ( |
There was a problem hiding this comment.
I would move this whole block into a separate component and file so when you pass the hook into this new component as a prop, its only going to re-render everything in that component if the prop has changed. Right now, if a user selects or expands (state change), this is going to be rendered even if the hookGroups hasn't changed.
There was a problem hiding this comment.
can we have that as a follow up ticket? I would be adding a generic treeview component instead, this one is limited to depth 2 so it might be confusing, alternatively I could just move it as a functional component on top of the same file so we achieve short term rendering performance, what do you think?
There was a problem hiding this comment.
Moving it to the top of the file is probably fine.
|
These changes look good, just a few things I missed from last review :) I'll be off next week, so I won't be able to review changes until the following week. |
|
Weird, the failure was: I'm guessing this was just an intermittent? |
|
@cerkiewny are you still working on this, or is it ready for review again? Thanks! |
|
It's ready for another round, I was just waiting for Sarah to get back from her days off. |
| {tree} | ||
| </TreeView> | ||
| ) : ( | ||
| <Typography variant="subtitle1">No hooks are defined</Typography> |
There was a problem hiding this comment.
I think this situation, there's nothing the user can do to fix it so this may not be that helpful of an error message. :) I'd show a generic error message (you can see if there are already some in helper files) like 'Something went wrong - please file a bug at Taskcluster repo'.
There was a problem hiding this comment.
Hmm, It is something that existed as behavior a prior my changes, I just accidentally ate it in one of commits, so this change is more restoration to status quo... also there is a bug to change the text to "No hooks are defined" if hooks view is empty.
There was a problem hiding this comment.
Ok, I'd definitely switch to fetching directly from upstream (taskcluster repo) and rebasing (onto upstream/master) so you keep branch clean, rather than fetching from your fork/origin (if that's what you're doing) and merging (Btw, these just are my preferred terms - I always set remote upstream -> parent repo and origin -> my fork and only fetch from upstream). We can leave this for now, but fwiw, its definitely ok to change existing code if its not clear or not useful anymore :)
There was a problem hiding this comment.
I think you're going to need to rebase and drop any of the merged commits that don't belong here and that might fix the failing test. Let me know when you've done that and I'll give one final look. We're nearly there :)
There was a problem hiding this comment.
@cerkiewny Hi, just following up with this in case you missed my reply :)
There was a problem hiding this comment.
I haven't missed it just had little time for TC last week and spent it trying to set up my k8s for it, I will probably follow it up today/tomorrow.
There was a problem hiding this comment.
so, should I remove this? (It is btw in case of empty task cluster hooks not in case of errors) I fixed all the other things I think.
There was a problem hiding this comment.
Well, wouldn't empty taskcluster hooks be an application error? It's not based on something the user did "wrong" so that message that is shown to the user doesn't seem very helpful in my opinion. If I saw that when trying to access menu items, I'd think that part of the app is broken.
But you can just leave it for now so we can get this landed. It seems the service-github task is failing. @petemoore do you know if this is an intermittent failure?
There was a problem hiding this comment.
I thought it is meant for clean installation of taskcluster, if you dev init/ and start the backend, if there are no hooks defined yet, basically the message would show.
Btw, I did test this out and it looks good to me. |
jwhitlock
left a comment
There was a problem hiding this comment.
Thanks for the changes @cerkiewny, and thanks for the review @sarah-clements!
The services-github test is failing due to a network issue, and I'd expect it to pass on re-run. I ran the test locally (yarn workspace taskcluster-github test) and it passed.
Github Bug/Issue: Fixes #2749