Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #2873] new cgi params for pagination: "limit" and "start" #326

Closed
icinga-migration opened this issue Jul 20, 2012 · 11 comments

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/2873

Created by mfriedrich on 2012-07-20 10:08:25 +00:00

Assignee: croft
Status: Resolved (closed on 2012-10-03 16:08:44 +00:00)
Target Version: 1.8
Last Update: 2012-10-03 16:08:44 +00:00 (in Redmine)


available in

  • status.cgi for host & service status
  • config.cgi
  • extinfo.cgi for scheduling queue, comments and downtimes
  • history.cgi
  • notifications.cgi
  • showlog.cgi

more info in #2725


Relations:

@icinga-migration
Copy link
Author

Updated by croft on 2012-08-29 20:14:27 +00:00

  • Assigned to set to croft
  • Done % changed from 0 to 40

Added new option result_limit to configcgi.xml.

@icinga-migration
Copy link
Author

Updated by ricardo on 2012-08-31 06:48:45 +00:00

And option "archive" dosn't exists anymore.

@icinga-migration
Copy link
Author

Updated by croft on 2012-09-04 13:45:17 +00:00

Hi,
limit=50 - 50 results per page
start=2 - start on page 2

http://localhost/icinga/cgi-bin/status.cgi?host=all&servicestatustypes=29&limit=20&start=2

Right?

Kind Regards,
Lara

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2012-09-04 13:56:11 +00:00

no, start = resultcounter. 2 means start on the second item. this will possibly screw up the paging ability, if $resultcount % $limit != $start, but there's no proper fix for that yet.

@icinga-migration
Copy link
Author

Updated by croft on 2012-09-04 14:18:35 +00:00

ok, thx.
then the example above is totaler Quatsch ;)

@icinga-migration
Copy link
Author

Updated by croft on 2012-09-04 14:23:06 +00:00

the cgiparam "limit" already exists....and was only avail. in the summary.cgi, default value= 25, is this obsolet?

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2012-09-25 13:16:22 +00:00

nope, that is still valid, but with a different purpose.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2012-09-26 17:28:22 +00:00

  • Status changed from New to Assigned
  • Assigned to changed from croft to ricardo

@Ricardo_B please elaborate on that. thanks.

@icinga-migration
Copy link
Author

Updated by ricardo on 2012-10-01 12:38:15 +00:00

the limit in summary.cgi stayed the same. summary.cgi doesn't have pagination. but the meaning is pretty similar.

@icinga-migration
Copy link
Author

Updated by croft on 2012-10-01 14:59:32 +00:00

  • Assigned to changed from ricardo to croft
  • Done % changed from 40 to 90

ok, thanks.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2012-10-03 16:08:44 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 90 to 100

thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant