Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Calling Pagination Users
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  17 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Koziarski  
View profile  
 More options May 6 2007, 5:52 pm
From: "Michael Koziarski" <mich...@koziarski.com>
Date: Mon, 7 May 2007 09:52:21 +1200
Local: Sun, May 6 2007 5:52 pm
Subject: Calling Pagination Users
Hey guys,

As rails 2.0 approaches, pagination will be removed from rails core
and delegated to a plugin.    One of the reasons for this is that no
one on the core team uses pagination on a regular basis. Rather than
just create a plugin in our repository containing the old code, it
would be nice if there were a plugin maintained by someone passionate
about pagination, which can add cool new functionality, while
remaining backwards compatible with the old code, at least for a
while.

So if you're a pagination user,  are you using any pagination-related
plugins?  Are there any clear leaders in this space?

--
Cheers

Koz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Istvan Hoka  
View profile  
 More options May 7 2007, 2:40 am
From: Istvan Hoka <istvan.h...@gmail.com>
Date: Mon, 07 May 2007 09:40:01 +0300
Local: Mon, May 7 2007 2:40 am
Subject: Re: [Rails-core] Calling Pagination Users
Michael Koziarski wrote:
> So if you're a pagination user,  are you using any pagination-related
> plugins?  Are there any clear leaders in this space?

I've been using this one: http://codefluency.com/2007/3/27/paginator. It
is not Rails specific but integrates nicely. Comes as a gem.

--
Istvan Hoka


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hunter Hillegas  
View profile  
 More options May 7 2007, 2:51 am
From: Hunter Hillegas <li...@lastonepicked.com>
Date: Sun, 6 May 2007 23:51:14 -0700
Local: Mon, May 7 2007 2:51 am
Subject: Re: [Rails-core] Re: Calling Pagination Users
Is this a drop in replacement for Rails' pagination?

Recommended replacement?

On May 6, 2007, at 11:40 PM, Istvan Hoka wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Istvan Hoka  
View profile  
 More options May 7 2007, 3:08 am
From: Istvan Hoka <istvan.h...@gmail.com>
Date: Mon, 07 May 2007 10:08:24 +0300
Local: Mon, May 7 2007 3:08 am
Subject: Re: [Rails-core] Re: Calling Pagination Users
Hunter Hillegas wrote:
> Is this a drop in replacement for Rails' pagination?

> Recommended replacement?

No, this is not a drop in. For one, there are no view helpers, just the
pagination logic.

The main advantage of Paginator is that it is model agnostic: you can
paginate anything you want with it. All you need to know is the total
number of records.

It is the best one I have found, but there may be better alternatives
out there. I am also waiting to see what this thread turns out.

--
Istvan Hoka


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Sanheim  
View profile  
 More options May 7 2007, 5:16 am
From: "Rob Sanheim" <rsanh...@gmail.com>
Date: Mon, 7 May 2007 04:16:40 -0500
Local: Mon, May 7 2007 5:16 am
Subject: Re: [Rails-core] Calling Pagination Users
On 5/6/07, Michael Koziarski <mich...@koziarski.com> wrote:

I think will_paginate is good stuff.  Its simple and clean, and I'm
the support should be good since its from the err guys:

http://errtheblog.com/post/929

Its not a drop in replacement, but core pagination had too much magic anyways...

- rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mislav Marohnić  
View profile  
 More options May 8 2007, 4:53 am
From: "Mislav Marohnić" <mislav.maroh...@gmail.com>
Date: Tue, 8 May 2007 10:53:11 +0200
Local: Tues, May 8 2007 4:53 am
Subject: Re: [Rails-core] Re: Calling Pagination Users

On 5/7/07, Rob Sanheim <rsanh...@gmail.com> wrote:

> I think will_paginate is good stuff.  Its simple and clean, and I'm
> the support should be good since its from the err guys

I'd like now to turn your attention to a will_paginate rewrite I had made
just recently:

https://idonee.irb.hr/svn_mislav/public/rails/paginate/

Its not a drop in replacement, but core pagination had too much magic

> anyways...

It didn't have too much magic, it had too little. It also had too complex
API and internal structure. Also, like will_paginate, you always had more
than one instance variable to pass around for a single paginated collection.

In my rewrite I eliminated the need for this by keeping all information in a
single collection proxy instance. I also made it a bit more configurable and
smarter than will_paginate.

My plugin also supports the ActionController::Base#paginate instance method
and has unit tests. I have ported all core Pagination unit tests over to my
plugin and it passes them all:
https://idonee.irb.hr/svn_mislav/public/rails/paginate/test/finder_te...
https://idonee.irb.hr/svn_mislav/public/rails/paginate/test/paginatio...

You can checkout the plugin from SVN and run unit tests without putting it
inside an app. It will realize that and use rubygems instead. (BTW, uses
sqlite.)

I can mimic the original Pagination API further, but I don't know if that
makes sense. Re-implementing its API would mean re-creating its cruft. I
would rather work on more extensive test suite for the current functionality
and improve view helpers for link rendering.

So, this plugin is - for now - as close as we can get to original
Pagination. The question for all of you is: how close should we go? How much
are we ready to break?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dr. Ernie Prabhakar  
View profile  
 More options May 8 2007, 12:10 pm
From: "Dr. Ernie Prabhakar" <ernest.prabha...@gmail.com>
Date: Tue, 8 May 2007 09:10:45 -0700
Local: Tues, May 8 2007 12:10 pm
Subject: Re: [Rails-core] Re: Calling Pagination Users

Hi Mislav,

On May 8, 2007, at 1:53 AM, Mislav Marohnić wrote:

> So, this plugin is - for now - as close as we can get to original  
> Pagination. The question for all of you is: how close should we go?  
> How much are we ready to break?

Good work! I think the priorities should be:
         a) clean and maintainable implementation
        b) robust and extensible functionality, and
        c) compatibility with existing behavior
-- in that order!

As long as we're going to 2.0, we might as well cleanup what needs to  
be cleaned up, and break what we need to in order to save us grief  
down the road.

--Ernie P.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DHH  
View profile  
 More options May 8 2007, 5:56 pm
From: DHH <david.heineme...@gmail.com>
Date: Tue, 08 May 2007 21:56:54 -0000
Local: Tues, May 8 2007 5:56 pm
Subject: Re: Calling Pagination Users

> So, this plugin is - for now - as close as we can get to original
> Pagination. The question for all of you is: how close should we go? How much
> are we ready to break?

I think this is a two-step process. Step one is to just take exactly
what's currently in Rails and bottle that up as classic_pagination or
something like that. This will allow anyone using what currently is to
migrate to Rails 2. Then, step 2 would be to improve on what is with a
new plugin that can break backwards compatibility.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Koziarski  
View profile  
 More options May 8 2007, 6:17 pm
From: "Michael Koziarski" <mich...@koziarski.com>
Date: Wed, 9 May 2007 10:17:00 +1200
Subject: Re: [Rails-core] Re: Calling Pagination Users

> I think this is a two-step process. Step one is to just take exactly
> what's currently in Rails and bottle that up as classic_pagination or
> something like that. This will allow anyone using what currently is to
> migrate to Rails 2. Then, step 2 would be to improve on what is with a
> new plugin that can break backwards compatibility.

We can even make the install hook for classic_pagination print a
warning that this code is a dead end and you should consider upgrading
to something with a vibrant future.

--
Cheers

Koz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mislav Marohnić  
View profile  
 More options May 8 2007, 8:23 pm
From: "Mislav Marohnić" <mislav.maroh...@gmail.com>
Date: Wed, 9 May 2007 02:23:36 +0200
Local: Tues, May 8 2007 8:23 pm
Subject: Re: [Rails-core] Re: Calling Pagination Users

On 5/9/07, Michael Koziarski <mich...@koziarski.com> wrote:

> > I think this is a two-step process. Step one is to just take exactly
> > what's currently in Rails and bottle that up as classic_pagination or
> > something like that. This will allow anyone using what currently is to
> > migrate to Rails 2. Then, step 2 would be to improve on what is with a
> > new plugin that can break backwards compatibility.

> We can even make the install hook for classic_pagination print a
> warning that this code is a dead end and you should consider upgrading
> to something with a vibrant future.

Those are great ideas! Pagination could be easily extracted from core as-is.
(That's what I did with its unit tests before I refactored them.) Users
should be warned that it has poor test coverage and that it's not going to
be maintained. And as for "something with a vibrant future", errfree guys
have just given me access to their will_paginate repo after we agreed to
collaborate on making the next version of the plugin. We should quickly
bring it up to full test coverage and enhance the API even further! Because
there will be classic_pagination available I will simply drop support for
the legacy API. One thing less to worry about :)

-Mislav


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Wanstrath  
View profile  
 More options May 9 2007, 7:41 pm
From: "Chris Wanstrath" <ch...@ozmm.org>
Date: Wed, 9 May 2007 16:41:35 -0700
Local: Wed, May 9 2007 7:41 pm
Subject: Re: [Rails-core] Re: Calling Pagination Users
On 5/8/07, Mislav Marohnić <mislav.maroh...@gmail.com> wrote:

> Those are great ideas! Pagination could be easily extracted from core as-is.
> (That's what I did with its unit tests before I refactored them.) Users
> should be warned that it has poor test coverage and that it's not going to
> be maintained. And as for "something with a vibrant future", errfree guys
> have just given me access to their will_paginate repo after we agreed to
> collaborate on making the next version of the plugin. We should quickly
> bring it up to full test coverage and enhance the API even further! Because
> there will be classic_pagination available I will simply drop support for
> the legacy API. One thing less to worry about :)

Mislav started committing his kickass changes just now, adding tests
and a whole lot more documentation to will_paginate.  If anyone wants
to jump on board and offer suggestions / patches / complaints, the
Lighthouse project is perfect:

http://err.lighthouseapp.com/projects/466-plugins/overview

--
Chris Wanstrath
http://errfree.com // http://errtheblog.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Koziarski  
View profile  
 More options May 9 2007, 9:44 pm
From: "Michael Koziarski" <mich...@koziarski.com>
Date: Thu, 10 May 2007 13:44:29 +1200
Local: Wed, May 9 2007 9:44 pm
Subject: Re: [Rails-core] Re: Calling Pagination Users

> Mislav started committing his kickass changes just now, adding tests
> and a whole lot more documentation to will_paginate.  If anyone wants
> to jump on board and offer suggestions / patches / complaints, the
> Lighthouse project is perfect:

> http://err.lighthouseapp.com/projects/466-plugins/overview

Nice work guys, great to see pagination on track to being maintained
by passionate users!

if you're willing to also extract and host classic_pagination, it
would seem only fair that it reference will_paginate in the install.

--
Cheers

Koz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mislav Marohnić  
View profile  
 More options May 20 2007, 7:34 pm
From: "Mislav Marohnić" <mislav.maroh...@gmail.com>
Date: Mon, 21 May 2007 01:34:01 +0200
Local: Sun, May 20 2007 7:34 pm
Subject: Re: [Rails-core] Re: Calling Pagination Users

On 5/10/07, Michael Koziarski <mich...@koziarski.com> wrote:

> Nice work guys, great to see pagination on track to being maintained
> by passionate users!

> if you're willing to also extract and host classic_pagination, it
> would seem only fair that it reference will_paginate in the install.

Ticket #8157: http://dev.rubyonrails.org/ticket/8157

Pagination has just been extracted and
hosted<http://require.errtheblog.com/plugins/browser/classic_pagination>side
by side with
will_paginate <http://require.errtheblog.com/plugins/browser/will_paginate>.
Changeset 229 <http://require.errtheblog.com/plugins/changeset/229> in that
repository also fixes #8176 <http://dev.rubyonrails.org/ticket/8176>,
#7325<http://dev.rubyonrails.org/ticket/7325>,
#7028 <http://dev.rubyonrails.org/ticket/7028>,
#4113<http://dev.rubyonrails.org/ticket/4113>.
I marked a bunch of other patches wontfix because we're removing Pagination
anyway.

See the README for classic_pagination:
http://require.errtheblog.com/plugins/browser/classic_pagination/README


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mislav Marohnić  
View profile  
 More options May 21 2007, 7:45 pm
From: "Mislav Marohnić" <mislav.maroh...@gmail.com>
Date: Tue, 22 May 2007 01:45:53 +0200
Local: Mon, May 21 2007 7:45 pm
Subject: Re: [Rails-core] Re: Calling Pagination Users

On 5/21/07, Mislav Marohnić <mislav.maroh...@gmail.com> wrote:

I just noticed dynamic scaffold code uses pagination. For those who forgot,
dynamic scaffolding is also deprecated and pending for removal. Should I
update the Pagination removal patch to fix dynamic scaffolding (by manual
pagination) or should I just not care?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mislav Marohnić  
View profile  
 More options May 22 2007, 7:58 am
From: "Mislav Marohnić" <mislav.maroh...@gmail.com>
Date: Tue, 22 May 2007 13:58:11 +0200
Local: Tues, May 22 2007 7:58 am
Subject: Re: Calling Pagination Users

On 5/22/07, SydneyStephen <steve68...@hotmail.com> wrote:

> So what will replace pagination?

The original pagination is extracted to the "classic_pagination" plugin as I
stated above. You have the option to use other pagination systems or plugins
like "will_paginate" written by errtheblog guys and me.

And what will replace scaffold?

Dynamic scaffolding is also extracted to a plugin. It is removed from Rails
core because it is inflexible; scaffold generators are now preferred since
you can actually build on them.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mislav Marohnić  
View profile  
 More options May 25 2007, 5:05 am
From: "Mislav Marohnić" <mislav.maroh...@gmail.com>
Date: Fri, 25 May 2007 11:05:51 +0200
Local: Fri, May 25 2007 5:05 am
Subject: Re: [Rails-core] Re: Calling Pagination Users

On 5/10/07, Michael Koziarski <mich...@koziarski.com> wrote:

> Nice work guys, great to see pagination on track to being maintained
> by passionate users!

> if you're willing to also extract and host classic_pagination, it
> would seem only fair that it reference will_paginate in the install.

Extracted, hosted, improved ... everything has been done, but no comments or
response whatsoever. Can the core team finally review #8157? Thanks.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Koziarski  
View profile  
 More options May 25 2007, 10:46 pm
From: "Michael Koziarski" <mich...@koziarski.com>
Date: Sat, 26 May 2007 14:46:15 +1200
Local: Fri, May 25 2007 10:46 pm
Subject: Re: [Rails-core] Re: Calling Pagination Users

> Extracted, hosted, improved ... everything has been done, but no comments or
> response whatsoever. Can the core team finally review #8157? Thanks.

Sorry, it's been on my plate and I've been travelling.

The patch looks good for trunk,  could you add one for release which
deprecates pagination and points them at your plugin?

It's important that users  get a warning with the next 1.2.x release,
and that they can simply install the classic_pagination plugin to
avoid getting spammed.

--
Cheers

Koz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »