Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Activity (RSS)

Monday, March 09 2009
will_paginate v3.0 ("agnostic") was updated by Mislav at 5:28 PM
 
5 of 6 tickets remain in this milestone
release v2.3.8 for Rails 2.3 http://g... was committed by Mislav Marohnić at 2:11 PM
Rails 2.3 compat: query parameter par... was committed by Kamal Fariz Mahyuddin at 2:11 PM
simplify manifest generation code by ... was committed by Mislav Marohnić at 2:11 PM
simplify manifest generation code by ... was committed by Mislav Marohnić at 2:11 PM
Tuesday, March 03 2009
264 Incorrect counts when using rails 2.3 :having option and scopes was updated
  • Mislav
    • State changed from new to open
    by Mislav at 7:10 PM

    That's a good explanation. I will look into it

  • Blane Dabney
    Blane Dabney created the ticket at 7:07 PM

    I'm using rails 2.3 and have a named_scope that uses the :having option to filter results based on joined aggregate data. When using will_paginate with this, th...

Thursday, February 26 2009
237 paginate_by_sql fails when using Oracle and the jdbc driver. was updated
  • Mislav
    Mislav commented at 6:50 PM

    Not fixed yet. Looking into it

Tuesday, February 24 2009
237 paginate_by_sql fails when using Oracle and the jdbc driver. was updated
  • dave smylie
    dave smylie commented at 10:26 PM

    Not sure if this has been fixed in git, but bug still exists in the current gem version (2.3.7)

    I'm using the oracleenhanced adaptor, which falls into this unle...

Thursday, February 12 2009
263 wrong count results was updated
Wednesday, February 11 2009
263 wrong count results was updated
  • friofool
    friofool commented at 9:22 PM

    will_paginate : mislav-will_paginate-2.3.6

    rails : 2.2.2

    and my request :

    conditions = "inner join mod_icom_prods as mip on (mifo.mod_icom_prod_id = mip.id)"

    co...

  • Mislav
    Mislav commented at 7:23 PM

    I don't think there is a bug - both find and count use the built-in ActiveRecord methods.

    You haven't given me enough information. First tell me the will_pagina...

  • friofool
    friofool created the ticket at 6:35 PM

    hi,

    this is my log :

    SQL (3.1ms) SELECT count(*) AS count_all, mifo.mod_icom_option_id,mip.id AS mifo_mod_icom_option_id_mip_id FROM mod_icom_files_options as m...

Tuesday, February 10 2009
release 2.3.7 http://github.com/misla... was committed by Mislav Marohnić at 11:19 PM
Removed all unnecessary &block variab... was committed by Darrick Wiebe at 11:19 PM
Friday, February 06 2009
255 paginate very slow on large queries with :group was updated
  • Mislav
    Mislav commented at 1:32 AM

    You may be right.

    But still, little can be done from will_paginate. Maybe you guys should open a Rails ticket? On the other hand, the internal implementation of...

  • Sebastian
    Sebastian commented at 12:12 AM

    I*m sorry. But I think this is absolutly wrong, and will return wrong results.

    When you group something by a specific value, and then count without the group op...

Thursday, February 05 2009
120 Association with finder_sql raises TypeError was updated
  • Eric Mill
    Eric Mill commented at 7:33 PM

    Dimitri and Adam - those are awesome solutions, thank you. I was in the same situation.

    Mislav, this would be an awesome thing to build into WillPaginate.

Friday, January 30 2009
262 Behavior of view helper is incorrect if URL includes "@" was updated
  • Anton Ageev
    Anton Ageev commented at 8:17 AM

    Thanks. It works fine.

Thursday, January 29 2009
262 Behavior of view helper is incorrect if URL includes "@" was updated
  • Mislav
    Mislav commented at 8:26 PM

    Ouch. Then how about

    
    WillPaginate::LinkRenderer.class_eval do
      protected
    
      def url_for(page)
        url_params = {}
        # page links should preserve GET ...
  • Anton Ageev
    Anton Ageev commented at 3:58 PM

    The monkeypatch brokes all page links. I get "/blogs/@Andrex" instead of "/blogs/@Andres/pages/(\d+)" for any page.

  • Mislav
    • State changed from resolved to open
    by Mislav at 12:03 PM

    On the other hand, lets rather leave this ticket open.

  • Mislav
    • State changed from new to resolved
    by Mislav at 11:58 AM

    That is because of the internal "optimization" when generating URLs.

    You can either use will_paginate 3.0 (not yet released, find it in the "agnostic" branch) o...

  • Anton Ageev
    Anton Ageev created the ticket at 8:10 AM

    Given: * Rails 2.1.2 * will_paginate 2.3.6

    config/routes.rb:

    
    ActionController::Routing::Routes.draw do |map|
      RE_USER_LOGIN = /[^\/]+/
    
      map.with_option...
Sunday, January 18 2009
261 has_many through uniq generates invalid sql was updated
  • Mislav
    • State changed from new to open
    by Mislav at 8:15 PM

    Thanks, I'll look into this

Friday, January 16 2009
261 has_many through uniq generates invalid sql was updated
  • Chad Jolly
    Chad Jolly commented at 8:57 PM

    oops, here's the right diff.

  • Chad Jolly
    Chad Jolly created the ticket at 8:51 PM
    
    has_many :uniq_replies, :source => :replies, :through => :topics, :uniq => true
    

    pagination generates invalid sql.

    from test/console

    
    >> Project.first.uniq_...
260 incorrect set of records returned when using order on a field with little var... was updated
move "The importance of SQL's ORDER B... was committed by Mislav Marohnić at 12:10 PM
Thursday, January 15 2009
260 incorrect set of records returned when using order on a field with little var... was updated
  • ReggieB
    ReggieB commented at 6:05 PM

    That just says you need an ORDER BY clause, whereas in fact you need more than that - you need an ORDER BY clause that uniquely identifies and orders each recor...

  • Mislav
    Mislav commented at 5:28 PM

    I think what is there in the docs now is quite fine:

    Without the ORDER BY clause, databases aren‘t required to do consistent ordering when performing SELECT qu...

  • ReggieB
    ReggieB commented at 4:04 PM

    My argument would be that it isn't the user who has chosen to flip the data back and forth. It is the way will_paginate processes the data that makes this an is...

  • Mislav
    • State changed from new to invalid
    by Mislav at 2:31 PM

    What you said there --

    This works fine if the field you are sorting on is unique for each record, but falls down if you have a lot of records with the same fie...

Wednesday, January 14 2009
260 incorrect set of records returned when using order on a field with little var... was created
  • ReggieB
    ReggieB created the ticket at 7:33 PM

    I think I have found a bug this time :o) . However, it may be a MS SQL only error as I haven't tested the problem with MySQL.

    I have a table of "support cases" ...

259 Ignores page :params in merb was updated
  • Mislav
    Mislav commented at 12:38 AM

    Thanks for reviewing. I think we have to use string key "page" instead of symbol because otherwise the page parameter could get duplicated -- see #256

Tuesday, January 13 2009
259 Ignores page :params in merb was updated
  • Jamie Wilson
    Jamie Wilson commented at 9:03 PM

    I took what you sent and made a couple of little tweaks. This seems to work better for me:

    
    WillPaginate::ViewHelpers::LinkRenderer.class_eval do
     protected
    ...
Monday, January 12 2009
259 Ignores page :params in merb was updated
  • Mislav
    Mislav commented at 11:48 PM

    Can you try out something like this, see if it's OK?

    
    WillPaginate::ViewHelpers::LinkRenderer.class_eval do
      protected
      
      def default_url_params
        {}...
  • Jamie Wilson
    Jamie Wilson created the ticket at 9:46 PM

    Using the agnostic branch. Trying to pass in explicit url params, which seem to be ignored when using will_paginate under merb.

    I think doing something like

    
    ...
Total rdoc love. Point out that this ... was committed by Mislav Marohnić at 5:42 AM
refactored LinkRenderer#symbolized_up... was committed by Mislav Marohnić at 5:42 AM
Sunday, January 11 2009
split spec runner tasks into rake spe... was committed by Mislav Marohnić at 7:22 PM
use dchelimsky-rspec ~> 1.1.11 gem ht... was committed by Mislav Marohnić at 7:22 PM
ruby 1.9 -- explicitly require 'activ... was committed by Mislav Marohnić at 7:22 PM
move a spec that requires the databas... was committed by Mislav Marohnić at 7:22 PM
Saturday, January 10 2009
Make WillPaginate::Deprecation.warn o... was committed by Dejan Simic at 11:56 PM
Friday, January 09 2009
update manifest. fix "rake manifest" ... was committed by Mislav Marohnić at 12:37 AM
delete stuff in examples/ as they're ... was committed by Mislav Marohnić at 12:32 AM
Add Sequel support. Extended Sequel::... was committed by Mislav Marohnić at 12:32 AM
move what were previously will_pagina... was committed by Mislav Marohnić at 12:29 AM
Thursday, January 08 2009
257 order by not working with joined tables was updated
  • Mislav
    • State changed from new to invalid
    by Mislav at 3:33 PM

    Glad you solved your problem :) Closing