Skip to content

Feature/extension methods#6

Merged
brandonhenricks merged 6 commits intomainfrom
feature/extension-methods
Jan 28, 2025
Merged

Feature/extension methods#6
brandonhenricks merged 6 commits intomainfrom
feature/extension-methods

Conversation

@brandonhenricks
Copy link
Owner

@brandonhenricks brandonhenricks commented Jan 28, 2025

  • Updates Builder with new extension methods.
  • Updated TypeExtensions to not return Empty Guids.
  • Update PageRepository to retrieve web page urls.
  • Web Page Url's are set as Absolute currently.
  • Added new unit tests.

Replaced conditional logic in ContentTypeRepository.cs and PageTypeRepository.cs with new extension methods: WithLinkedItemsAndWebPageData and WithLanguage. Added WithLanguage method to ContentItemQueryBuilderExtensions.cs. Added OrderByWebPageItemOrder and WithLinkedItemsAndWebPageData methods to ContentTypeParametersExtensions.cs. Updated using directives for CMS.DataEngine.
Introduce IWebPageUrlRetriever dependency to PageTypeRepository.
Add UpdateWebPageUrls method to update web page URLs.
Invoke UpdateWebPageUrls in various async methods.
Update using directives to include System.Collections.ObjectModel.
Updated copilot-instructions.md to fix a typo and add a new guideline for using the built-in API of Xperience By Kentico. Upgraded SonarAnalyzer.CSharp to 10.5.0.109200, coverlet.collector to 6.0.4, and NUnit.Analyzers to 4.6.0 in Directory.Packages.props. Removed redundant null check in BaseRepository.cs. Updated XperienceCommunity.DataRepository.csproj and XperienceCommunity.DataRepository.Tests.csproj to include specific assets for the updated packages. Ensured consistency in packages.lock.json for the updated package versions across different .NET versions.
Two new extension methods have been added to retrieve GUIDs from
collections of content item fields sources and web page fields
sources.

- In `IContentItemFieldsSourceExtensions.cs`, the method
  `GetContentItemGUIDs` retrieves content item GUIDs from a
  collection of `IContentItemFieldsSource` objects.
- In `IWebPageFieldsSourceExtensions.cs`, the method
  `GetWebPageItemGuids` retrieves web page item GUIDs from a
  collection of `IWebPageFieldsSource` objects.
@brandonhenricks brandonhenricks added the enhancement New feature or request label Jan 28, 2025
Modified PageTypeRepository.cs to set WebPageUrlPath to the
AbsoluteUrl of the webpage link instead of the RelativePath.
Updated XperienceCommunity.DataRepository.csproj to suppress
warning code S3267 during the build process.
Ensure GUIDs are non-empty in TypeExtensions for AssetRelatedItem and WebPageRelatedItem. Add unit tests in IContentItemFieldsSourceExtensionsTests and IWebPageFieldsSourceExtensionsTests. Update TypeExtensionsTests with new tests and properties. Add CMS.MediaLibrary using directive.
@brandonhenricks brandonhenricks merged commit 3232806 into main Jan 28, 2025
5 checks passed
@brandonhenricks brandonhenricks deleted the feature/extension-methods branch January 28, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant