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

fix: consider i18n structure when building path regex #6937

Merged
merged 1 commit into from Oct 11, 2023

Conversation

demshy
Copy link
Member

@demshy demshy commented Oct 11, 2023

Fix issue #6913 that was caused by #6898

Summary

The issue appeared when we added some filtering to prevent hitting Github gateway rate limits on large projects. When filtering by locale path in order to load only default locale for lists, we failed to consider all three possible i18n structures when building the regex.
This fix will create an appropriate path for folder structure and leave the path as is for single file structure.

Test plan

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)

@netlify
Copy link

netlify bot commented Oct 11, 2023

Deploy Preview for cms-demo ready!

Name Link
🔨 Latest commit 1465ce6
🔍 Latest deploy log https://app.netlify.com/sites/cms-demo/deploys/652659ff8477cc0008c10145
😎 Deploy Preview https://deploy-preview-6937--cms-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Oct 11, 2023
@demshy demshy changed the title fix: consider i18n strucutre when determining regex ruleString for gi… fix: consider i18n structure when building path regex Oct 11, 2023
@demshy demshy merged commit 1aac51d into master Oct 11, 2023
20 checks passed
@demshy demshy deleted the fix/i18n-folder-strucure-regex branch October 11, 2023 09:19
martinjagodic pushed a commit to geotrev/netlify-cms that referenced this pull request Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants