-
Notifications
You must be signed in to change notification settings - Fork 0
Decorator to inject transfer button doesn't work in infinite editing and trigger GetById
multiple times
#189
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
Comments
GetById
@AndyButland unfortunately I don't have access to source code of Deploy, but does Deploy listen to Can you reproduce the issue with requests to |
I don't see any reference to |
@AndyButland I have deployed the changed for this specific Umbraco Cloud project to live environment and I don't see the 404 errors from content nodes opened in infinite editing or the I can invite you to the project if you want to have a look. The versions are mentioned at bottom of the description. I can reproduce the issue on two Umbraco Cloud projects, but not on with latest changes in |
From what I can tell the only difference on a content node between local, development and live environment on this Umbraco Cloud project, is that live environment doesn't have "Queue for transfer" action on content node. |
Sure, invite me to the project and I'll have a look. |
@AndyButland you should have received an invitation now. |
I think it happens here: This part won't work in infinite editing using It should also happen only on load - not each time the an app change happen happen. Let me know if I can help, but I know @mattbrailsford has worked a bit with the Angular decorators - otherwise I am sure the frontend team can assist. |
Actually not related to "Compare" or "Queue for transfer", but the injected "Transfer now" button. which isn't added to content editor in infinite editing. because it used Perhaps it can used
but not sure about it in this context. Altnatively something like this:
|
GetById
GetById
multiple times
This looks tricky to properly resolve. Within this function, both So I can't find a way to determine if I'm in "infinite" mode. If I could then, we could simply exit and not add the "Transfer Now" button. I think I can live with the "Transfer Now" button not appearing when content is in the infinite editor. It doesn't really work anyway as it's trying to open a dialog under the infinite editor, and is in any referring to the wrong item. So I'm thinking this change to ensure we don't try to add it if there's no id available.
Which would solve your problem. But there are still issues if you open up the content item say from the "Info" tab of another content item that has a relation with the first. There an |
@AndyButland it depends. Infine editing if often not the current node and Yes, the "Transfer now" button in infinite editing is not crucial. More important it doesn't include the double API request to |
Which "app button" are you referring to here? |
The content app button like Info, Content etc. |
It seems the I also found and older example here: https://our.umbraco.com/forum/umbraco-7/developing-umbraco-7-packages/53758-Catch-content-page-load-event-in-umbraco-704 |
Maybe an option could be to inject However I think the way the decorator is contructured in Deploy, it trigger multiple I tested with this for instance:
On content edit page On content edit page in infinite editing |
Instead of fetching content again using
Howeever shouldn't it also be possible to get |
I noticed some issues with content resource
GetById
is being called when clicking "Queue for transfer" menu action on a node, but I wonder it this somehow affect clicking the info app?Because each time I click the Info tab, I see a request to
GetById
but not in live environment, where "Queue for transfer" is not avaiable.I noticed this because I have a dashboard and opening the content node in infinite mode cause 404 not found error, because of
GetById=
with empty id.I moved the dashboard to CMS with latest changes in
contrib
branch, where I can't reproduce the issue.Clicking info app on content node when id is present in route:
Clicking info app on content node in infinite editing where id isn't present in route:
I can reproduce this on two projects:
Umbraco 12.2.0
Deploy 12.0.5
Umbraco 12.3.3
Deploy 12.0.5
This item has been added to our backlog AB#35631
The text was updated successfully, but these errors were encountered: