Skip to content
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

[!!!][FEATURE] Support multiple sitemaps to be located #336

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

eliashaeussler
Copy link
Owner

This PR changes the way how sitemaps are located in order to support multiple sitemaps being returned by sitemap providers. This is especially useful when using a robots.txt file with multiple Sitemap declarations. Prior to this change, only the first sitemap was respected. With this PR, all declared sitemaps are now returned.

⚠️ This is a breaking change as it changes the method signature in EliasHaeussler\Typo3Warming\Sitemap\Provider\Provider::get().

Related: #199

@eliashaeussler eliashaeussler added enhancement New feature or request breaking This introduces a breaking change labels Jul 21, 2023
@eliashaeussler eliashaeussler self-assigned this Jul 21, 2023
@eliashaeussler eliashaeussler force-pushed the feature/multiple-sitemaps branch from bb86699 to a613d03 Compare July 21, 2023 14:32
@codeclimate
Copy link

codeclimate bot commented Jul 21, 2023

Code Climate has analyzed commit 1f26c43 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 98.7% (50% is the threshold).

This pull request will bring the total coverage in the repository to 96.6% (0.0% change).

View more on Code Climate.

@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

Patch coverage: 98.75% and project coverage change: -0.03 ⚠️

Comparison is base (5714fe8) 96.68% compared to head (1f26c43) 96.66%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #336      +/-   ##
============================================
- Coverage     96.68%   96.66%   -0.03%     
- Complexity      333      340       +7     
============================================
  Files            41       41              
  Lines          1116     1139      +23     
============================================
+ Hits           1079     1101      +22     
- Misses           37       38       +1     
Impacted Files Coverage Δ
.../ContextMenu/ItemProviders/CacheWarmupProvider.php 96.62% <88.88%> (-0.99%) ⬇️
Classes/Cache/SitemapsCache.php 100.00% <100.00%> (ø)
Classes/Command/WarmupCommand.php 100.00% <100.00%> (ø)
Classes/Controller/FetchSitesController.php 95.45% <100.00%> (+0.10%) ⬆️
Classes/Service/CacheWarmupService.php 96.00% <100.00%> (ø)
Classes/Sitemap/Provider/DefaultProvider.php 100.00% <100.00%> (ø)
Classes/Sitemap/Provider/PageTypeProvider.php 100.00% <100.00%> (ø)
Classes/Sitemap/Provider/RobotsTxtProvider.php 100.00% <100.00%> (ø)
Classes/Sitemap/Provider/SiteProvider.php 100.00% <100.00%> (ø)
Classes/Sitemap/SitemapLocator.php 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@eliashaeussler eliashaeussler force-pushed the feature/multiple-sitemaps branch from a613d03 to 1f26c43 Compare July 21, 2023 16:02
@eliashaeussler eliashaeussler merged commit 784327c into main Jul 21, 2023
@eliashaeussler eliashaeussler deleted the feature/multiple-sitemaps branch July 21, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This introduces a breaking change enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant