-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Ensure both content and media support fetching entities by ids array of Guid and Udi #9465
Ensure both content and media support fetching entities by ids array of Guid and Udi #9465
Conversation
It would also be great to support this in |
@nul800sebastiaan I just tried based on an Umbraco v8.13.1 project to include |
Am I missing something? This PR is still open so yeah, it won't have the changes you made. :) |
@nul800sebastiaan yeah this PR enhancd a bit around GetByIds via Udi's ... however this file should be safe to include :) From what I can find this was added a long time ago It is however very similar to the ContentService extensions here: |
@nul800sebastiaan I think this is one of the fra missing parts to access by Guid and Udi.. and furthermore it would allow to access more content and media. |
@nul800sebastiaan I appreciate many new PR's are reviewed and merged, but it seems many older PR's are a bit forgotten? There are still a handful PR from last year hacktoberfest that hasn't been reviewed. Maybe some ser not relevant now and could be closed, there's a better way now or it makes sense to merge? Maybe PR's should have a label based on the complexity or priority? E.g. some are a minor typo, localization or styling change, while other are regarding performance, security, new feauture which may contains hundreds or thousands of changes. |
Hiya @bjarnef! We wanted to thank you for your work and let you know that we have spent some time reviewing the contribution and have decided that we are going to close this one. While reviewing this PR, the team left the following additional note:
We appreciate that you have worked hard to build and document this contribution to create the changes you want to see but given the status of Umbraco 8, moving into LTS and Umbraco 9 being ready and stable and packed with new features, we are working through the open PRs and deciding which are a good fit for the last version 8 minor and which are not. If you'd like to know a little more about this process, please check out this blog post, explaining how we came to the decisions we have made here. We'd like to reassure you though that the CMS team, along with some special guests, took the time to assess each PR that is being closed and decided how to proceed - whilst the message you're receiving is automatic, the work behind it was done by the people that make up the CMS team, along with community members. If there are specifics around this PR that you'd like explained that are not covered by the article, please let us know. All the best to you, our wonderful contributor. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Not sure which file is missing from the commit 😄 It wouldn't cause breaking change if the resource was used, but probably if developer had requests directly to these controller methods or used angular interceptors is expected a It should be simple enough the update this to still use @nul800sebastiaan do we still want this (without breaking changes in v8) or only v9? |
v9 is where we'll focus from now on. We're trying to wrap up v8.18 and had to make choices on what would still make it in there. I didn't look at this one specifically, but yes, this would definitely be great for v9! |
Prerequisites
If there's an existing issue for this PR then this fixes #9460
Description
This PR makes it possible for
contentResource
andmediaResource
to fetch entities byint[]
,Guid[]
andUdi[]
likeentityResource
.I noticed we have a
GetByIds(this IContentService contentService, IEnumerable<Udi> ids)
inContentServiceExtensions
to extendContentService
withGetByIds(IEnumerable<Udi> ids)
without changing the interface as it would a breaking change. Similar method exists for media, but it wasn't included in the project. It is now.I have changed
getByIds
incontentResource
andmediaResource
to POST request similar togetByIds
inentityResource
.Here is an example fetching entities using
Guid[]
andgetByIds
in the three different services.In have added the dashboard as a zip-file to test with:
MyDashboard.zip