Closed (fixed)
Project:
Version Control API
Version:
6.x-2.x-dev
Component:
Commit Log
Priority:
Critical
Category:
Feature request
Assigned:
Reporter:
Created:
13 Jan 2011 at 00:52 UTC
Updated:
15 Apr 2014 at 22:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mikey_p commentedI suppose this is going to significantly complicate things since each view_set will have to implement these. As for now this is currently blocked on #1024960: Need view for individual commit message since each item in the RSS should probably link to the individual commit view.
Comment #2
mikey_p commentedComment #3
mikey_p commented#1024960: Need view for individual commit message is in now.
Comment #4
eliza411 commentedTesting Issue #1042574: No RSS feeds on commit views
Comment #5
marvil07 commentedOk, I tried to start this, but it is no so really close to be finished.
Please take a look to FIXMEs and TODOs in the patch :-)
Comment #6
marvil07 commentedLet's iterate over this again.
Comment #7
marvil07 commentedHere a patch that actually works for commitlog_global_commit.
To implement this, I had to use a fake path on feed display,and then overwrite it on run-time(I end up there after asking merlinofchaos).
So, this still needs some work, but the basic case is working! :-)
What's new:
PS: Please note that as mentioned by mikey_p this need to be done for each view set. I am excluding individual commit view since I do not see any use of one-item/non-changeable rss feed. We also need to change views on other projects that are using views_set feature to overwrite behaviour: aka change versioncontrol_project views. (git backend only changes individual commit, so not change required there)
Comment #8
marvil07 commentedOk, this took me a while, but I have a re-viewable patch now!
What's new:
What needs to be done before committing this:
Comment #9
marvil07 commentedI just realized that this is a deployment blocker, so marking as it as mentioned on #1042574-3: No RSS feeds on commit views
Comment #10
marvil07 commented\o/, it was easier than I though, thanks to hefox for helping me with the last bit!
Comment #11
marvil07 commentedI am working on the related issue at versioncontrol_project #1056568: Provide rss on commitlog views
Comment #12
sdboyer commentedSee the comments in the other issue
Comment #13
marvil07 commentedBringing back and answering the comment on #1056568-3: Provide rss on commitlog views (here is the main patch, the one on the other issue is just a follow-up after this will be applied, so responding here)
Not really, that queries are now executed by the views render method on the rss plugin. And I see what is the problem, I am not using fields on the plugin, so I am rendering the individual commit view for ech operation at render level, that's the problem.
But, that should not be modifying the default display, only the feed display. If that's not the case please confirm it.
Mmm.. I am looking the right feed as output for feed display, so maybe you need to clear views cache or something like that?
Please take a look to the menu callback changes. There you can see why. In summary:
Comment #14
marvil07 commentedThis patch avoid the design problem I had done in the last patch by rendering by hand a individual commit view on each row :-/
BTW the row plugin has become really a generic plugin, but there is not one like that on views AFAIK.
What is missing here:
Comment #15
marvil07 commentedOk, finally the review-able version!
What's new here:
Naturally, now we need to update the patch for versioncontrol_project.
Comment #16
marvil07 commentedHard code-freeze left this out.
Comment #17
andypostI see no drupal_add_feed() for node/{project-node}/commits
Also I'd like to note that we need some solution for redirecting from old-style URLs like http://drupal.org/cvs?rss=true&nid=3060&branch=HEAD - probably we need to update all out subscriptions in all out aggregators ... hard work but I see no other way
Comment #18
marvil07 commentedYep, that's because those views are on versioncontrol_project, see #1056568: Provide rss on commitlog views for the patch that do that.
That should be handled on #780342: Handle linkrot from CVS commit browser.
Comment #19
marvil07 commentedRe-roll, after #1066160: Group entity loading in views handlers this is not applying fine.
Comment #20
damienmckennaThis is a dependency of #1072762: Change for git.
Comment #21
gregglesSubscribe.
Comment #22
marvil07 commentedsdboyer: It would be great to receive your review here.
Comment #23
sdboyer commentedPretty close here.
Is this the standard way of doing things? Seems like views/the display should take care of it. Is it not because of the wonky way we're directly rendering the view?
Nit:
Just 'All commit messages' or 'All commits' would be more consistent with what we've got elsewhere.
Nit:
It feels to me like needing this option points to poor architecture on our part. I'm not really in a Views mindset while writing this, though...
Could you point me to the reference implementation you used for this so I can compare?
Overall, very nearly ready to go in. As with the other patch, I'd like this pushed into a topic branch. If you have the full local commit history and could push that up (rather than just a single squashed commit), that would be handy.
Powered by Dreditor.
Comment #24
marvil07 commentedI think so, I actually asked for it on #drupal-views for suggestions.
WFM, it's not that bad ;-)
Sure, it's actually the only one rss row plugin on views ;-)
So, I think it has been so much time and so many changes, that at some point I just used one of the patches, so I do not have history anymore. Anyway I like independent commits but only when they are stable, if not it's a complete pain to use git bisect, so that's why I think it's ok for this patch to get in as one commit.
Attaching ta patch with the nitpick changed.
Comment #25
webchickSubscriiiiiibe.
Comment #26
sumitk commentedsubscribing
Comment #27
rwohlebsubscribe
Comment #28
tobiasbThere are feeds example for drupal project http://drupalcode.org/project/drupal.git/rss , 8.x Branch http://drupalcode.org/project/drupal.git/rss/refs/heads/8.x.
Comment #29
wim leersSubscribing.
Comment #30
marvil07 commentedYep, gitweb produces feeds, but the issue here is about getting drupal side feeds for commits, getting the data from versioncontrol information.
Comment #31
marvil07 commentedtagging
Comment #32
mrfelton commentedsubscribing
Comment #33
marvil07 commentedSo, I think this is mature enough, so after re-checking it on top of current 6.x-2.x I am pushing this, so one release blocker left :-)
I know
12 files changed, 1745 insertions(+), 77 deletions(-)is a lot for one commit, but as explained before, this patch comes from CVS times, and it has changed too much from the beginning, and after the change of remotes (from my old-manual-cvsimport-git-repo to the shiny d.o migrated CVS one) I lost track of the branch. So I hope to not do this again, now on git times(tm).Comment #34
andypostSo where are this feeds could be found now?
EDIT http://drupal.org/node/3060/commits still has no feeds attached
Comment #35
marvil07 commented@andypost: fixed does not mean deployed on d.o :-/
Comment #36
gregglesWe can tag for that.
Comment #37
johnnycastrup commentedsubscribing
Comment #38
sdboyer commentedAfter some ugliness with another drupal.org deployment earlier this week, I'm holding off on deploying new vcapi stuff for a few more days.
Comment #40
cweagansDid this ever get deployed? This is a blocker for getting http://drupal.org/project/activitystream_drupalcode working again.
Comment #41
gregglesIf it still has this tag then it's not deployed.
Comment #42
marvil07 commentedChanging state again. AFAIK(see drumm comment) that tag is independent from the issue status.
Comment #43
glass.dimly commentedhey all,
I'm interested in seeing this issue committed. What needs to happen to see this move forward? Anything I can test or do?
Peace,
Jeremy
Comment #44
damienmckennaThis is still unavailable, e.g. there's no indication on http://drupal.org/node/943786/commits or http://drupal.org/user/108450/track/code of an RSS feed being available.
Comment #45
marvil07 commentedAs mentioned on comment 35:
and on comment 42:
Comment #46
marvil07 commentedIt has just been deployed!
Comment #47
cweagansOf interest to this thread: #1703452: Provide argument titles on provided default views.