Skip to content

issue2749 - change migrate to material-ui/treeview#4921

Merged
jwhitlock merged 3 commits intotaskcluster:mainfrom
cerkiewny:issue2749
Jul 20, 2021
Merged

issue2749 - change migrate to material-ui/treeview#4921
jwhitlock merged 3 commits intotaskcluster:mainfrom
cerkiewny:issue2749

Conversation

@cerkiewny
Copy link
Contributor

Github Bug/Issue: Fixes #2749

@cerkiewny cerkiewny requested a review from a team as a code owner June 14, 2021 21:19
@cerkiewny cerkiewny requested review from leplatrem and petemoore and removed request for a team June 14, 2021 21:19
@petemoore
Copy link
Member

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...

@sarah-clements
Copy link

Hi! I'll take a look at this tomorrow. :)

Copy link

@sarah-clements sarah-clements left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good :) I haven't tested it manually though. @cerkiewny have you manually tested this locally?

@cerkiewny
Copy link
Contributor Author

cerkiewny commented Jun 22, 2021

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.

@sarah-clements
Copy link

sarah-clements commented Jun 22, 2021

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.

@sarah-clements
Copy link

@cerkiewny Please @ mention me when you've fixed the bug and made all changes and I'll take another look.

@cerkiewny
Copy link
Contributor Author

@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

@ncdt138
Copy link

ncdt138 commented Jun 24, 2021

Thanks ,you guys gonna particular the future of humanity

@cerkiewny
Copy link
Contributor Author

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 => (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving it to the top of the file is probably fine.

@sarah-clements
Copy link

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.

@petemoore
Copy link
Member

Weird, the failure was:

[3/5] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@octokit/plugin-retry/-/plugin-retry-3.0.7.tgz: Request failed \"502 Bad Gateway\"".
info If you think this is a bug, please open a bug report with the information provided in "/taskcluster/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I'm guessing this was just an intermittent?

@petemoore
Copy link
Member

@cerkiewny are you still working on this, or is it ready for review again? Thanks!

@cerkiewny
Copy link
Contributor Author

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>
Copy link

@sarah-clements sarah-clements Jul 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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'.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link

@sarah-clements sarah-clements Jul 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 :)

Copy link

@sarah-clements sarah-clements Jul 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 :)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cerkiewny Hi, just following up with this in case you missed my reply :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link

@sarah-clements sarah-clements Jul 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@sarah-clements
Copy link

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.

Btw, I did test this out and it looks good to me.

Copy link

@sarah-clements sarah-clements left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work :)

Copy link
Contributor

@jwhitlock jwhitlock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove material-ui-treeview

5 participants