-
Notifications
You must be signed in to change notification settings - Fork 104
Remove deprecated defs #89
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
Remove deprecated defs #89
Conversation
What’s the best means of requesting review for changes on this project? Feel bad always pinging @parkr and @alfredxing (and it seems that non-team members aren’t able to ping the @jekyll/archives team address 😞) |
/cc: @jekyll/archives |
It seems that @alfredxing is currently the only member of @jekyll/archives |
Hmm, this is probably because #58 was merged after #67... @paulrobertlloyd Have you tested this with incremental regeneration? I'm worried about the removal of this line, since as far as I know that's the only place |
@alfredxing Testing… good point! I’ve tested this change with my own site build and, going by the fact that I can tell if incremental regeneration is working as my rebuild time goes from ~30s to ~8s (!), removing these lines had no negative impact. In fact, your comment made me question whether I could also remove the Possible conclusion: making |
Please don't worry about my feelings -- I'm a total Ruby newbie! Just want the functionality. |
@paulrobertlloyd Can you quickly check if, with incremental regen enabled, editing the contents of a post also changes the archive page? The archive page would have to output |
@alfredxing I was a little concerned when you asked me to check against this original issue, that this might invalidate my conclusion. But no! Adding There should probably be some automated tests to validate this going forward, but not sure how you would (or even if you could) test for that. Can we merge this PR, or do we need to write tests for regeneration? If so, I’d need some help doing that. |
Any thoughts on the above @alfredxing? |
@paulrobertlloyd Sorry for the wait! I dove a bit deeper into why this was working, and it turns out that all archive pages are always regenerated. So that's good I guess! The reason for this is that Regenerator checks if the "source file" (based on the relative path of the Archive) actually exists in the filesystem—which it doesn't. I'll merge this in for now. If anyone has any issues, please let us know! @jekyllbot: merge +minor |
Reviewing the commit history of this plugin, it seems that somewhere between #67 and #58 being merged in, deprecated code that was removed was added back in again later.
The first merge, in which
Archive
became a subclass ofPage
, removed defs that were no longer required as part of this change. The merge that appears to reintroduce them is the one adding support for incremental rebuilds.Have I read this correctly? Can we delete some code?!