-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
#5697 - Update the levels displayed in breadcrumbs across the app #7732
#5697 - Update the levels displayed in breadcrumbs across the app #7732
Conversation
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 solid start! I have added some questions/suggestions inline.
webapp/tests/karma/ts/modules/reports/reports.component.spec.ts
Outdated
Show resolved
Hide resolved
webapp/tests/karma/ts/modules/messages/messages.component.spec.ts
Outdated
Show resolved
Hide resolved
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.
Nice!
I agree with Josh feedback and added a couple more things.
webapp/tests/karma/ts/modules/messages/messages.component.spec.ts
Outdated
Show resolved
Hide resolved
I think you need to fix the failing e2e... it's probably not a flaky one 🤔 |
…readcrumbs-displayed-levels
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.
Good progress!! We're almost there! 🤩 I added some suggestions in line
webapp/tests/karma/ts/modules/messages/messages.component.spec.ts
Outdated
Show resolved
Hide resolved
webapp/tests/karma/ts/modules/messages/messages.component.spec.ts
Outdated
Show resolved
Hide resolved
One question, do we change the target branch of the PR from master to 3.17.x ? @jkuester @latin-panda |
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.
Couple minor suggestions, but otherwise I think this is pretty much ready to go!
@elvisdorkenoo regarding the target branch for this PR, I think we should leave it as |
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.
Also, wanted to bring this up for the sake of completeness (before we send this over to QA). @elvisdorkenoo @latin-panda do you think we need any kind of e2e test for this?
I have gone back and forth on this, but I am kinda leaning towards adding a test. This functionality depends on interacting with multiple services. The current unit tests have properly stubbed out the behavior of those services, but it seems like a good idea to have at least one e2e test that verifies the breadcrumbs are actually displayed as expected in the app when logged in as an offline user....
I tried to take a look to the existing e2e tests to see if there is anything about breadcrumbs as in this PR we are only updating the displayed levels, and for now, there are no e2e for breadcrumbs that I can find. |
@elvisdorkenoo we have been building the test coverage recently, so I think we still don't have an e2e test for breadcrumbs in specific. As per Gareth comments before, we are supposed to ship PRs with at least 1 e2e test, which I agree :) Do you think you can complete 1 e2e today? You will have to pay extra attention in how these are written to get less feedback as possible. |
Yes, I will add the e2e test, thanks for the sample. |
@elvisdorkenoo how is the e2e going? Do you think we review today? |
Yes thanks for the help, I did a push with en e2e test for report, you can take a look @latin-panda and @jkuester |
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.
Nice! I don't have further suggestions regarding logic. However I left some comments regarding format which should be quick to fix, please make sure that CI is fully green after you push the changes.
@jkuester can you please have a look? Thanks for your time.
webapp/tests/karma/ts/modules/messages/messages.component.spec.ts
Outdated
Show resolved
Hide resolved
webapp/tests/karma/ts/modules/messages/messages.component.spec.ts
Outdated
Show resolved
Hide resolved
webapp/tests/karma/ts/modules/messages/messages.component.spec.ts
Outdated
Show resolved
Hide resolved
webapp/tests/karma/ts/modules/messages/messages.component.spec.ts
Outdated
Show resolved
Hide resolved
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.
LGTM! Thank you!
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.
Everything here looks good!
Did we decide we did not need an e2e test for the message's breadcrumbs?
Update the levels displayed in breadcrumbs across the app
This request is to update how we handle breadcrumbs so that we show all levels except for the level the user themselves belongs to, the top-most level.
Summary of expected behavior here :
#5697
Code review checklist
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.