oncall-engine/grafana-plugin
Michael Derynck f79445fbcb
Fix pagination behavior when page # exceeds search results (#4817)
# What this PR does
Change pagination to return last available page if the page number
exceeds the pages available instead of returning 404. This came up from
if the user is on a page other than the first and they enter a search
and the number of search results are smaller than what would be needed
to reach the current page number it would give a blank page and 404.

## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.

---------

Co-authored-by: Rares Mardare <rares.mardare@grafana.com>
2024-08-19 13:59:01 +00:00
..
.config Migrate react-router to v6 (#4703) 2024-07-26 10:36:20 +00:00
e2e-tests New OnCall plugin initialization process (#4657) 2024-08-16 16:43:52 +00:00
pkg New OnCall plugin initialization process (#4657) 2024-08-16 16:43:52 +00:00
src Fix pagination behavior when page # exceeds search results (#4817) 2024-08-19 13:59:01 +00:00
tools Merge dev to main (#54) 2022-06-13 16:39:58 -06:00
.dockerignore move ms teams related models, containers, components etc to oncall (#3594) 2024-01-08 10:50:19 +00:00
.eslintignore generate types, create http client and add exemplary usage (#3384) 2023-11-29 05:16:13 +00:00
.eslintrc.js Feature: Use ui extension hooks where available (#4765) 2024-08-13 10:18:20 +00:00
.gitignore Fix frontend unit tests (#4045) 2024-03-12 12:21:53 +00:00
.nvmrc Chore: update the .nvmrc (#4766) 2024-07-31 13:59:16 +00:00
.prettierrc.js Migrate from grafana-toolkit to grafana plugin tools (#3837) 2024-02-21 07:49:10 -07:00
.stylelintrc add selector-max-type stylelint rule 2022-11-02 11:44:42 +00:00
Dockerfile.dev bump nodejs version to latest stable (#4678) 2024-07-16 11:16:23 +00:00
go.mod New OnCall plugin initialization process (#4657) 2024-08-16 16:43:52 +00:00
go.sum New OnCall plugin initialization process (#4657) 2024-08-16 16:43:52 +00:00
jest.config.js fix tests and types generator (#4746) 2024-07-26 15:59:55 +00:00
jest.setup.ts Cleanup error logs on frontend unit test run (#4167) 2024-04-17 11:05:11 +00:00
knip.json Configure knip and remove dead code (#3999) 2024-03-06 08:06:03 +00:00
LICENSE World, meet OnCall! 2022-06-03 08:09:47 -06:00
Magefile.go New OnCall plugin initialization process (#4657) 2024-08-16 16:43:52 +00:00
package.json remove engine field (#4841) 2024-08-16 20:25:53 +00:00
playwright.config.ts Configure cross plugin e2e tests (#4222) 2024-04-25 06:25:59 +00:00
plopfile.js Merge dev to main (#54) 2022-06-13 16:39:58 -06:00
README.md move some grafana-plugin/README contents (#3525) 2023-12-08 10:30:01 -05:00
tsconfig.json Migrate from grafana-toolkit to grafana plugin tools (#3837) 2024-02-21 07:49:10 -07:00
webpack.config.ts New OnCall plugin initialization process (#4657) 2024-08-16 16:43:52 +00:00
yarn.lock Bump axios from 1.6.7 to 1.7.4 in /grafana-plugin (#4816) 2024-08-14 12:59:33 +00:00

Grafana OnCall

Developer-Friendly Alert Management with Brilliant Slack Integration

  • Connect monitoring systems
  • Collect and analyze data
  • On-call rotation
  • Automatic escalation
  • Never miss alerts with calls and SMS

Documentation