[ZBX-7979] No "Clear history and trends" button for web scenarios Created: 2014 Mar 21  Updated: 2017 May 30  Resolved: 2014 Apr 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.2.3rc1, 2.3.0
Fix Version/s: 2.3.0

Type: Incident report Priority: Trivial
Reporter: Pavels Jelisejevs (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: consistency, forms, frontend, webmonitoring
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

They have a "Clear history by selected" bulk action, but no "Clear history and trends" button in the configuration form.



 Comments   
Comment by Oleksii Zagorskyi [ 2014 Mar 22 ]

ZBXNEXT-340, heh

Comment by Krists Krigers (Inactive) [ 2014 Apr 14 ]

Committed in r44352.
Added new button "Clear history and trends" to scenarios form and added code to handle it.

(1) No new localization strings.

jelisejev CLOSED.

Comment by richlv [ 2014 Apr 14 ]

(2) delete_history_by_itemid goes into all history_* tables, even though for web scenarios we know which item is having which type (frontend/server creates them) - do we want to improve this ?

jelisejev Although a good idea, let's leave it as is for now: there are more pressing issues to deal with. CLOSED.

<richlv> split it out as ZBXNEXT-2261 (was not sure whether it's more of a bug or feature... decided that it's minor enough ), now indeed CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2014 Apr 14 ]

(3) A couple of coding style issues:

  1. instead of "isset($_REQUEST['del_history']" we use hasRequest();
  2. there's no need to use "&=" in this block, plain "=" will do fine.

kristsk RESOLVED in r44378.

jelisejev CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Apr 15 ]

TESTED.

Comment by Krists Krigers (Inactive) [ 2014 Apr 15 ]

Merged and committed to trunk in r44427.

Comment by Krists Krigers (Inactive) [ 2014 Apr 15 ]

(4) The new button has to be documented?

martins-v Updated:

RESOLVED.

<richlv> hmm, none of the screenshots seem to show the button - and we should mention it in text, too. we should also mention that clearing history & trends will make the server process the scenario again immediately

jelisejev Looks good now, CLOSED.

Comment by richlv [ 2014 Sep 24 ]

looks like two things were not properly done :

  • ZBX-8816 - history & trend clearing button shown for template web scenarios
  • ZBX-8817 - web scenrario history and trend clearing misses 3 items
Comment by richlv [ 2014 Oct 28 ]

'clear' does not appear at all in the docs. this will make it harder for users to find relevant information

Generated at Mon Apr 21 14:49:21 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.