Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI: Fixed URL of detailed graphs for jitter SLA probe #11984

Merged
merged 2 commits into from Sep 18, 2020

Conversation

pobradovic08
Copy link
Contributor

Fixed wrog/obsolete URL for jitter probes in SLAs overview page that should point to a page with multiple graphs for a single probe. URL was generated with 'tab' => "sla", and although there is a includes/html/pages/device/sla.inc.php page, there is no sla tab defined in DeviceController and there's no SlaController class.

Instead of making a new Controller class i moved the code from includes/html/pages/device/sla.inc.php to includes/html/pages/device/slas.inc.php and changed the link to point to slas tab. That way we also avoid the situation we have with ports and port tabs, where port is a hidden tab and there is no appropriate tab highlighted in UI when looking at single port data.

Other changes include setting the lower limit to 0 for SLA RTT graph and changing the line color and unit of lost packets on jitter graph.

DO NOT DELETE THE UNDERLYING TEXT

Please note

Please read this information carefully. You can run ./scripts/pre-commit.php to check your code before submitting.

  • Have you followed our code guidelines?
  • If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926
After you are done testing, you can remove the changes with ./scripts/github-remove. If there are schema changes, you can ask on discord how to revert.

blank lines at the start and end of control structure
@Jellyfrog Jellyfrog requested a review from murrant August 19, 2020 20:13
@murrant
Copy link
Member

murrant commented Aug 20, 2020

Looks fine to me, I didn't test it though. Ideally, the code gets moved to the SlasController and a new blade file.

@murrant murrant merged commit 736169d into librenms:master Sep 18, 2020
@murrant murrant added the WebUI label Sep 18, 2020
@murrant
Copy link
Member

murrant commented Sep 30, 2020

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/v1-68-release-changelog-september-2020/13525/1

@pobradovic08 pobradovic08 deleted the cisco-sla-jitter branch November 9, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants