-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Support extensions with multiple parts for gitlab (i.e. en.md) #1478
Support extensions with multiple parts for gitlab (i.e. en.md) #1478
Conversation
Deploy preview for netlify-cms-www ready! Built with commit c90b647 |
Deploy preview for netlify-cms-www ready! Built with commit bba97b2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, just looks like a typo in the code.
this.fetchFiles(files.filter(file => fileExtension(file.name) === extension)) | ||
this.fetchFiles(files.filter(files => | ||
files.filter(file => file.name.endsWith('.' + extension)) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole block should be changed to:
this.fetchFiles(
files.filter(file => file.name.endsWith('.' + extension))
)
(there was a duplicate files.filter(files =>
on the first line of the new code)
Deploy preview for cms-demo ready! Built with commit bba97b2 |
Changes done. |
@Nic128 I'll try to get this merged later today or tomorrow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! The fileExtension
helper import can be removed now, but other than that, 👍.
There are more places that use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the change needs made on line 82 as well (a new function since GitLab has pagination).
Done. |
Is there more to do for this PR? |
So sorry, I've been pretty much offline for the last 2 weeks. I'll try to review ASAP. @erquhart Maybe we can get this in the next patch release if possible? |
@Nic128 Released in v1.9.4. |
- Summary
Fixes #1462. See discussion there for context.
- Test plan
I ported the exact fix from #1123 to gitlab.
- Description for the changelog
Support extensions with multiple parts for gitlab (i.e. en.md)
- A picture of a cute animal (not mandatory but encouraged)