[ZBX-3366] sorting changes what data is returned Created: 2011 Jan 02 Updated: 2017 May 30 Resolved: 2011 Dec 27 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 1.9.1 (alpha) |
Fix Version/s: | 1.9.8 (beta), 2.0.0 |
Type: | Incident report | Priority: | Blocker |
Reporter: | richlv | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | api, usability | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
a specific case - graphs. quite likely the same for all other objects as well. not only being counterintuitive (non-output-controlling options suddenly changing output), this also results in lots of extra data sent over the wire, increasing overhead. |
Comments |
Comment by nelsonab [ 2011 Jan 02 ] |
This is a very important point. Those who use the API live and die by the documentation and by the API acting in a consistent manner. Most users of the API don't know Zabbix's inner workings. To me it makes sense why adding a sort field would add one more data field to the output. After all for the sort to work inside Zabbix you have to add that field to the columns in the SQL call which is the basis for all API output. However I think Richlv is right, output should explicitly be controlled by the output parameter, not implicitly like it is now. I also think this should work across all API calls. I think when you make a call and do not explicitly state what fields to output you should always get a set of default fields. This default list must be published in the documentation. If it is decided not to go this route, then there needs to be a consistent way across all API calls to remove a field from output, and the documentation needs to be updated to denote parameters which can affect output. I think it would be a lot easier to make the output parameter explicit. |
Comment by Eduards Samersovs (Inactive) [ 2011 Nov 23 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3366 |
Comment by Eduards Samersovs (Inactive) [ 2011 Nov 28 ] |
trunk revision 23561 |
Comment by Oleksii Zagorskyi [ 2011 Dec 01 ] |
(4) Broken rev 23561 <Eduard> RESOLVED <zalex> It happened for "Plain text" screen elements. Dev branch tested. Problem is gone. <Eduard> RESOLVED |
Comment by Eduards Samersovs (Inactive) [ 2011 Dec 01 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3366 |
Comment by Oleksii Zagorskyi [ 2011 Dec 01 ] |
(5) The table "profiles" in my trunk DB contains some previous values related to sorting settings for current user. Configuration -> Discovery
Configuration -> Maintenance
After clicking to the column's header to perform new sorting the errors are gone. Main question - will these errors are visible for users first time after upgrade from 1.8? Possible solution: need to add this SQL statement to the upgrade patches: <Eduard> RESOLVED <richlv> it should be listed here what solution was actually used. digging in a bunch of diffs is not good enough <Eduard> We add SQL statement to the upgrade patches. <richlv> i... might have been used to a different way to communicate and explain <zalex> I support Rich, in general he is absolutely right. We have many examples where some minor (from a first look) changes/features are not documented but afterward we have noticeable problems with the our own understanding in "how it works/should work, etc". <Eduard> As I told previously we added SQL statement to the upgrade patches. This patches removes user sorting settings for all pages. It's very simple, so I don't know what can say more.. <richlv> after some additional discussion, my interpretation of user-visible effect added at http://www.zabbix.com/documentation/2.0/manual/installation/upgrade_notes - please, review <Eduard> CLOSED, thanks! |
Comment by Oleksii Zagorskyi [ 2011 Dec 01 ] |
(6) After rev 23561 in the Configuration menu we lost possibility to sort by: Is it ok? <Eduard> Yes, we decided to remove this sorting |
Comment by Eduards Samersovs (Inactive) [ 2011 Dec 09 ] |
trunk revision 23902 |
Comment by richlv [ 2011 Dec 10 ] |
see (5) <Eduard> RESOLVED |