Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Morbus Iff’s picture

The extra %2C in the URL seems to be the issue. This one works fine:

http://drupal.org/commitlog/commit/5608/8d1eb79bad880d423e7eb588b1379500...

Morbus Iff’s picture

Looks like the 5608 is being number-formatted with commas.

achton’s picture

I have observed this with Google Reader as well. Which RSS client have you tested this in?

Morbus Iff’s picture

Feed reader is irrelevant. The generated RSS source is wrong.

sense-design’s picture

confirming this, the "comma" should not be there, e.g.

wrong:
http://drupal.org/commitlog/commit/4,378/2373353be7501e8e3900804523b9738...

should be:
http://drupal.org/commitlog/commit/4378/2373353be7501e8e3900804523b97384...

Feed is pulled via Drupal core aggregator module

tr33m4n’s picture

This is still an issue, any updates?

tr33m4n’s picture

This is ridiculous, this has been an issue for over a year now!

sense-design’s picture

Yes and it should be a small fix

Dave Reid’s picture

Project: Drupal.org site moderators » Version Control API
Version: » 6.x-2.x-dev
Component: Broken link » Commit Log

Looks like the actual problem here is in the versioncontrol.module, which contains the commit log views and RSS feeds.

The URL for the commit is constructed here, which comes from the repo_id column in views, which is defined in versioncontrol.views.inc to use the views_handler_field_numeric handler. This Views handler by default outputs a comma to format the number, so it looks like we just need to disable that in the default commitlog Views here, re-export them, and provide it as a patch.

Dave Reid’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Status: Active » Needs review
FileSize
3.23 KB

Here's the patch to fix this in the current D7 View exports. There were some additional changes just by re-saving the View, but I didn't include them. Will provide a D6 patch shortly.

Dave Reid’s picture

Here is the patch against 6.x-2.x.

Status: Needs review » Needs work

The last submitted patch, versioncontrol-rss-feed-for-git-1772300-10.patch, failed testing.

Dave Reid’s picture

Status: Needs work » Needs review

FYI I filed a D8 core issue (#2085361: Provide a field handler for serial columns that do not have decimal or separator formatting) with a corresponding Views 7.x-3.x issue (https://drupal.org/node/2085365) that would have helped this because we need a simple handler for the repo_id field.

sense-design’s picture

Thanks Dave

marvil07’s picture

@Dave Reid: Thanks for providing the patches and creating the related issues!

The patches looks good, but sadly it will not solve drupal.org problem, since drupal.org use a different set of versioncontrol view sets defined in other places like drupalorg project.

Before adding the patch to versioncontrol, I will review if repo_id view field is used on other urls generated from views.

For D8, in general sounds like a good idea to have a separate simpler field than numeric.
For D7, maybe is a little late to add a feature, so I will start with the workaround suggested on the patches.
For D6, definitely the workaround is fine.

  • Commit d6df95b on 7.x-1.x authored by Dave Reid, committed by marvil07:
    Issue #1772300 by Dave Reid: Do not use separator on repo_id view field.
    

  • Commit 7a5e3c2 on 6.x-2.x authored by Dave Reid, committed by marvil07:
    Issue #1772300 by Dave Reid: Do not use separator on repo_id view field.
    
marvil07’s picture

Issue summary: View changes
Status: Needs review » Fixed

Sorry for the late response, patches added to d7 and d6, also opened follow ups for vc_project and drupalorg:

drumm’s picture

Deployed on Drupal.org.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Perignon’s picture

Status: Closed (fixed) » Needs work
Related issues: +#2373389: RSS Feed of User Commits have invalid links

Reopening this ticket as it is not fixed on D.O

See added related issue filed in the D.O infrastructure queue.

The %2C is still in the link causing broken links.

marvil07’s picture

Status: Needs work » Closed (fixed)

See comment 18

Perignon’s picture

Ok. Just trying to find where the beanstalk ends in this.