GithubHelp home page GithubHelp logo

Comments (5)

dawehner avatar dawehner commented on September 15, 2024

... reported by Aspilicious

from views3ui.

merlinofchaos avatar merlinofchaos commented on September 15, 2024

No, the pager to do a limited number of items is different from the pager to do all items, partly because SQL doesn't allow us to do an offset with all items. So the 'some' pager isn't supposed to accept 0 as a limit.

from views3ui.

dawehner avatar dawehner commented on September 15, 2024

Okay this makes sense, but
shouldn't 0 then lead to "display all items" pager plugin?

from views3ui.

DavidRothstein avatar DavidRothstein commented on September 15, 2024

Since the "add new view wizard" functionality isn't supposed to hit all use cases but rather only the most common ones, it doesn't seem like a huge problem to me if you can't create a view with unlimited items per page from there - since you can always go in and configure it to do that later, right? I think it would be a bit counterintuitive to type "0" for unlimited on that screen (without any explanation) though I guess it doesn't hurt much to leave it as a backdoor option for people who already know about it.

Either way, if http://drupalcode.org/project/views.git/commit/246ee7a is the commit you're referring to, it looks like it has some mistakes:

  1. The wizard has two "items per page" selectors (one for the page, one for the block) but it looks like your commit removed validation from only one of them. They should be kept in sync.
  2. Even if we allow 0 as an option, we don't want to remove the validation altogether. It's still the case that it needs to be a non-negative integer, right? :) So in that case it should be replaced with a different validation function.

from views3ui.

dawehner avatar dawehner commented on September 15, 2024

Finally this was reverted/

It doesn't make sense to support such a uncommon use case in the wizard

from views3ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.