Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Use the Provided Endpoint w/ entry selections for given Breadcrumb #979

Closed
metas-rc opened this issue Jul 4, 2017 · 12 comments
Closed

Use the Provided Endpoint w/ entry selections for given Breadcrumb #979

metas-rc opened this issue Jul 4, 2017 · 12 comments

Comments

@metas-rc
Copy link
Member

metas-rc commented Jul 4, 2017

Type of issue

Bug

Current behavior

Endpoint provided by the API is not used.

Expected behavior

It shall be used so we don't have to modify the frontend in future, if we want to modify the breadcrumb logic.

Steps to reproduce

@metas-rc metas-rc added this to the Backlog milestone Jul 4, 2017
@metas-rc metas-rc changed the title Use the Provide Endpoint w/ entry selections for given Breadcrumb Use the Provided Endpoint w/ entry selections for given Breadcrumb Jul 4, 2017
@teosarca
Copy link
Member

teosarca commented Jul 5, 2017

@metas-ts
Copy link
Member

metas-ts commented Jul 7, 2017

it's now rolled out on our IT instance, but not yet integrated into master

@metas-lc
Copy link

metas-lc commented Jul 7, 2017

IT (not master)
go to a window (e.g. Product) and select the breadcrumb. See inspection => only the nodes from the breadcrumb menu are shown OK

metas-ts added a commit that referenced this issue Jul 7, 2017
#979 Use the Provided Endpoint w/ entry selections for given Breadcrumb
metas-ts added a commit to metasfresh/metasfresh that referenced this issue Jul 7, 2017
[#979](metasfresh/metasfresh-webui-frontend-legacy#979) Use the Provided Endpoint w/ entry selections for given Breadcrumb
@metas-lc metas-lc closed this as completed Jul 7, 2017
@metas-lc metas-lc reopened this Jul 11, 2017
@metas-lc
Copy link

metas-lc commented Jul 11, 2017

breadcrumb

found this issue. That breadcrumb should only go back to sales orders (back to gridview)

@metas-mk
Copy link
Member

error belongs to this issue #1008
task chat started there. please move both when solved.

@teosarca
Copy link
Member

and more, when the grid view is loaded the breadcrumb endpoint is called for each menu item.
That's not efficient at all because might be that user will never click on those items.

image

@cadavre
Copy link
Contributor

cadavre commented Jul 12, 2017

Also #1009 is caused by this change.

wiadev added a commit that referenced this issue Jul 13, 2017
@wiadev
Copy link
Contributor

wiadev commented Jul 13, 2017

getWindowBreadcrumb called twice in two different components. These calls are chronologically very close each to other and simply first requests are not resolved at a moment, thus results not cached. And after this is fires second time. This doesn't happens every single refresh, but happens pretty often.
fixes are in dev-979

@metas-rc
Copy link
Member Author

Results of IT

Tested on webui.

Opened the window Product from the Whole Tree.

When I opened it, the breadcrumb for Product Management was already loaded, and displayed in the inspection. => NOK

image pasted at 2017-7-14 17-02

When I clicked on the Product Management, nothing appeared in inspection => NOK

image

Please, check Teo's comment above:

and more, when the grid view is loaded the breadcrumb endpoint is called for each menu item.
That's not efficient at all because might be that user will never click on those items.

@wiadev
Copy link
Contributor

wiadev commented Jul 18, 2017

Probably this could be optimized even further.

We have type=group for breacrumb path request. Which means that those items have dropdown, while type=window means that no dropdown items are defined, so no need even to try to load empty list of sub-items.

But for dropdowns (e.g. type=group) we must send request to get sub-items.
Yes, it could be attached to click event, but obviously it will add some small delay (for me now it shows some 75-150 msecs) and then rendering of menu.

metas-ts added a commit that referenced this issue Jul 18, 2017
Optimized breadcrumb handling #979
metas-ts pushed a commit that referenced this issue Jul 18, 2017
(cherry picked from commit 668efa2)
@metas-ts
Copy link
Member

cherry-picked commit 668efa2 into the release branch

@metas-lc metas-lc self-assigned this Jul 18, 2017
@metas-lc
Copy link

metas-lc commented Jul 18, 2017

IT

  1. breadcrumbMenu appears only when you select the breadcrumb for menu (e.g. Product management) OK
  2. breadcrumb for "go to default document list" goes back to gridview (or if you are already there only refresh) OK
  3. when you select the breadcrumb for menu (e.g. Product management) you can see a small delay until it gets populated. Have to check if i shall create a new task and how it should work

breadcrumb
Edit: it's OK for now. Closing the issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants