-
Notifications
You must be signed in to change notification settings - Fork 235
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
Suggestion to revert 7695cea and go for a more strict "all or nothing" approach #948
Comments
|
An extra thought - if there seems to be no practical way to detect a changelog as unparseable - perhaps an unofficial meta-key needs to be provided for those of us who have no intentions of following the current spec (for various reasons that can be sumarrized as "artistic freedom"). Or perhaps the parser can be told somehow "this is not a changelog I want you to parse" by having something at the end of the file or whatnot... Such an option also adequately resolve #941 and #920 for those of us who want the Changelog to be presented as-is to a potential user, without having a naïve heuristic walk all over it. Cheers |
|
I'd like to keep this simple, so I'm on board with @monken and the comment of his that is referenced in the ticket. I don't really want to start diffing to find the largest hunk. I think, if authors want their Changes to be parsed, they need to follow either one spec or a spec that allows for X various formats. What that spec is or should be, I can't say. Maybe you have a strict spec + a relaxed spec and you indicate in your META file which spec you are following. I'm actually not really sure what the problem is with following a basic spec. The Changes files just seem to be a series of bullet points with dates, but then I don't work on modules that have a lot of contributors. |
|
That's the thing - I don't want my Changes file to be parsed, but metacpan assumes I do. In either case - the stuff is at the bottom of the page, so it's not that big of a deal. I was just trying to help make the metacpan user-experience better, without sacrificing readability of the Change file for terminal users (that is not following a butt-ugly specification bestowed upon CPAN with zero discussion ;). The constructive thing at this point is for me to disclaim any stake in how the Changes of DBIC are rendered. I have no problem with any further changes, including reverting all the changes made by @omega. I am keeping the ticket open as a reminder that the current state of rendering of random changesets off CPAN as a whole is actually worse before @omega made his changes. Feel free to close. Cheers ;) |
|
@oalders, I really don't understand what you mean - you say you want to keep things simple, but then dismiss ribasushi's simple solution in favour of doing a full parse. Given the wide variety of changelog formats, using 'largest chunk of additions since the last release' is about the only thing that will ever cover the majority of cases - and is both simpler and substantially more reliable than the current "solution". If you have a concrete argument as to why the diff approach is inferior, I'm happy to hear it - but 'simplicity' isn't one given the diff approach is pretty much the simplest thing that can possibly work. |
|
@mst primarily I'm thinking of this kind of a diff: oalders/business-paypal-api@02b0463 Granted, this one would probably be OK because it's a wholesale change, but it would be much more than the last set of changes. We could try it and see how it plays out. |
|
@oalders any word on which way (if at all ;) this is going forward? |
|
@ribasushi I'm OK with trying your approach, but we need someone to do the actual work. I'm really tight for time right now. Not sure if @omega has been watching the ticket at all and has any thoughts? |
|
I have been watching, but been on vacation lately, so left my laptop alone as much as possible. I don't know when I'll have time to do a lot, but taking stuff out should be pretty easy I guess :) doing the diff suggestion I have no idea how to do, as you need both this release and previous release somehow, but if someone else has code for that bit I can always try to give it some style at least
|
|
FWIW http://frepan.64p.org/ uses the algorithm described in the OP i.e. take diff for the Changes file, then display as a plain text |
|
The parser has been improved (hopefully) by #1349, which makes the autodie example given in the first post render reasonably. |
|
Am closing. Please ping this issue if it needs to be re-opened. |
I figured I will collect all the pieces under one roof:
It started here: #897 / 7695cea
The problems that came out are things like #942 and
At this point I'd like to +1 this suggestion by @monken: #942 (comment), but really would recommend things go much further. Relevant irclog follows:
Furthermore I am including a relevant implementation-detail-rant from a different channel:
The text was updated successfully, but these errors were encountered: