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

Do not infer file format if collection specified. #795

Merged
merged 1 commit into from
Dec 6, 2017

Conversation

tech4him1
Copy link
Contributor

@tech4him1 tech4him1 commented Nov 10, 2017

- Summary

Before, we always tried to infer a file's format, even if it was
explicitly specified in the collection's config. This commit makes it so
that we always use the format from the config if it is specified, and
only if it is not set do we try to infer it from the file extension.

Fixes #763.

NOTE: Please review this fairly intensely -- I really don't want to break anything (don't think you are either).

- Test plan

Used CMS /example, as well as test case in the related issue.

- Description for the changelog

Do not infer file format if collection specified.

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

@tech4him1 tech4him1 changed the title WIP: Do not infer file format if collection specified. Do not infer file format if collection specified. Nov 18, 2017
Copy link
Contributor

@erquhart erquhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm with this, let's just release in 0.8.0 to be safe. Going to "request changes" to block until then.

@tech4him1
Copy link
Contributor Author

Sounds good, it really is a breaking change by definition.

Before, we always tried to infer a file's format, even if it was
explicitly specified in the collection's config. This commit makes it so
that we always use the format from the config if it is specified, and
only if it is not set do we try to infer it from the file extension.
@erquhart erquhart merged commit 0e51cff into master Dec 6, 2017
@erquhart erquhart deleted the 763-format-override branch December 6, 2017 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Folder-type collections with custom file extensions break if they are non-markdown.
2 participants