-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Allow Configurable Converters on CSV #8858
Conversation
The build failures are for |
@MichaelCordingley The tests are failing because you forgot to add commas after the parameters. |
Oh. Wow. Dumb mistake of the day. Hold on a sec. |
734bbf9
to
b394f21
Compare
@ashmaroli There we go. I also had to move a few things around to make the linter happy. |
I'm going to make a few more edits to make this more extensible. |
@ashmaroli I see some PRs that have been sitting for multiple years here and my own has sat for a month already. Do you know if this project is accepting PRs? I've attempted to contribute to enough projects where the PRs sit unremarked for years until I finally just close them, only to then receive a message from the maintainers surprised that I closed it. |
@MichaelCordingley Yes, this project is open to contributions.
|
@ashmaroli Awesome. Thanks! And for this PR, I'm wide open to altering my approach. The big thing is just to be able to have numeric values from data files. |
@ashmaroli How long does it typically take for a PR to receive consideration? |
@MichaelCordingley Apologies for letting this go stale. Okay, this PR definitely needs some test coverage. The existing implementation and the proposed implementation appears to be going in very different directions (even though it may not be so in reality). Jekyll already has a concept of converters. For a maintainer / contributor stumbling across this implementation at a future date is going to end up confused. These methods are going to be called for every |
ce0f298
to
7346b59
Compare
@ashmaroli Updated. |
Thanks for making the changes. |
7346b59
to
4322d7d
Compare
All fixed up. |
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.
Sounds good. Might be good to include some documentation as well.
I don't mind documenting, once I know for sure it's going in and in what form. |
@MichaelCordingley Please elaborate. |
I don't want to write documentation and then not have the PR merged or write documentation only to have to tweak some details. It sounds like we're basically there. |
This already has an approval from one of the maintainers. Documentation is necessary for every enhancement or feature so end-users know how to use the new feature. |
Fantastic. |
Looks like it should be somewhere in https://github.com/jekyll/jekyll/tree/master/docs/_docs, so I'll author against there unless I hear otherwise from you. |
Yes, to the same branch. Information related to data files in Jekyll is principally accessed at https://jekyllrb.com/docs/datafiles/. Improve that page with info related to this PR at an appropriate location. |
81eb8f4
to
97f424e
Compare
Documented. |
Also rebased and force pushed to clean up the history. |
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.
Nice! Thanks for adding docs. Two comments.
Lets the user specify which converters to pass to `CSV`, defaulting to `nil` if not present in config. This is specifically so that numeric values in a CSV file can be parsed as something other than strings.
97f424e
to
0a5643f
Compare
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.
Requires some amendments to the documentation.
Plus, you need to fix our check-spelling
action failures.
P.S. Don't bother squashing / rebasing. We squash commits during merge.
Co-authored-by: Ashwin Maroli <ashmaroli@users.noreply.github.com>
Co-authored-by: Ashwin Maroli <ashmaroli@users.noreply.github.com>
It looks like it's taking issue with the link to the Ruby docs.
|
I think that gets everything. 🤞 |
Thanks @MichaelCordingley |
MichaelCordingley: Allow Configurable Converters on CSV (#8858) Merge pull request 8858
This is a 🙋 feature or enhancement.
Summary
Lets the user specify which converters to pass to
CSV
, defaulting tonil
if not present in config. This is specifically so that numeric values in a CSV file can be parsed as something other than strings.