)]}'
{"doc/specs/in-progress/improve_scenario_output_format.rst":[{"author":{"_account_id":8491,"name":"Illia Khudoshyn","email":"ikhudoshyn@mirantis.com","username":"ikhudoshyn"},"change_message_id":"20c48cb5a69a4acb01114fc413beff659c80a8d4","unresolved":false,"context_lines":[{"line_number":28,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"At first, let\u0027s clarify types of desired output."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Output divides on two main types: additive and complete."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"*Additive output* requires processing and representation for the whole"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a740942_cfcc396c","line":31,"updated":"2015-12-14 16:26:42.000000000","message":"Output is divided into two..","commit_id":"2384fbeb47e5ddab055313c6a88ea6f1b2fd2766"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"ca58cde56f163984da3118b04e68eb4af8a038a6","unresolved":false,"context_lines":[{"line_number":28,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"At first, let\u0027s clarify types of desired output."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Output divides on two main types: additive and complete."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"*Additive output* requires processing and representation for the whole"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a7e1126_ae4ca99e","line":31,"in_reply_to":"7a740942_cfcc396c","updated":"2015-12-18 16:47:02.000000000","message":"Will do","commit_id":"2384fbeb47e5ddab055313c6a88ea6f1b2fd2766"},{"author":{"_account_id":8491,"name":"Illia Khudoshyn","email":"ikhudoshyn@mirantis.com","username":"ikhudoshyn"},"change_message_id":"20c48cb5a69a4acb01114fc413beff659c80a8d4","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"*Complete output* data is completely created by iteration and does not require"},{"line_number":40,"context_line":"extra processing. It is related to this specific iteration only."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Currently scenario can just return a single dict with int values - this is an"},{"line_number":43,"context_line":"additive data only, and it is stored in iteration results according to"},{"line_number":44,"context_line":"this schema:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a740942_ef233503","line":41,"updated":"2015-12-14 16:26:42.000000000","message":"this is an additive -\u003e it is additive (no \u0027an\u0027 is needed)","commit_id":"2384fbeb47e5ddab055313c6a88ea6f1b2fd2766"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"ca58cde56f163984da3118b04e68eb4af8a038a6","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"*Complete output* data is completely created by iteration and does not require"},{"line_number":40,"context_line":"extra processing. It is related to this specific iteration only."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Currently scenario can just return a single dict with int values - this is an"},{"line_number":43,"context_line":"additive data only, and it is stored in iteration results according to"},{"line_number":44,"context_line":"this schema:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a7e1126_6e42416a","line":41,"in_reply_to":"7a740942_ef233503","updated":"2015-12-18 16:47:02.000000000","message":"Will do","commit_id":"2384fbeb47e5ddab055313c6a88ea6f1b2fd2766"},{"author":{"_account_id":8491,"name":"Illia Khudoshyn","email":"ikhudoshyn@mirantis.com","username":"ikhudoshyn"},"change_message_id":"20c48cb5a69a4acb01114fc413beff659c80a8d4","unresolved":false,"context_lines":[{"line_number":116,"context_line":"               \"items\": [[\u003cstr key\u003e, \u003cfloat value\u003e], ...]  # Additive data"},{"line_number":117,"context_line":"              },"},{"line_number":118,"context_line":"              {\"error\": \"Items can not be determined\"},  # Failure"},{"line_number":119,"context_line":"              ...  # More data if required"},{"line_number":120,"context_line":"          ],"},{"line_number":121,"context_line":"          \"complete\": ["},{"line_number":122,"context_line":"              # Complete data from this specific iteration."}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a740942_81ffe500","line":119,"updated":"2015-12-14 16:26:42.000000000","message":"I could see some issues here: \n1. each iteration result (both additive and complete) contains list of dicts. It is not clear how these dicts should match their counterparts in other iterations (when we aggregate them). \nLooks like some kind of \u0027source_id\u0027 is needed here.\n2. In the sample above there are two dicts with different structure. Looks like\nwe expect different processing for them, so it would be nice to see exact rules for it and schemas that can be recognized.\n3. We probably need some generic ounput structure that will fit both our current and possible future needs, but hardcoded keys \u0027chart\u0027 and \u0027widget\u0027 make me think that we only plan to support these two kinds of data.\nMay be we could have special key like \u0027data_type\u0027 ?\n4. In this proposal iteration results seem to define how they should be visualized, i.e. we see \u0027chart\u0027 in result dict. But I believe this should not happen. Results should contain enough data but not dictate how to process it.","commit_id":"2384fbeb47e5ddab055313c6a88ea6f1b2fd2766"},{"author":{"_account_id":8491,"name":"Illia Khudoshyn","email":"ikhudoshyn@mirantis.com","username":"ikhudoshyn"},"change_message_id":"bd6307e74030374110f3aebe5ff6d8a6a233c1a7","unresolved":false,"context_lines":[{"line_number":116,"context_line":"               \"items\": [[\u003cstr key\u003e, \u003cfloat value\u003e], ...]  # Additive data"},{"line_number":117,"context_line":"              },"},{"line_number":118,"context_line":"              {\"error\": \"Items can not be determined\"},  # Failure"},{"line_number":119,"context_line":"              ...  # More data if required"},{"line_number":120,"context_line":"          ],"},{"line_number":121,"context_line":"          \"complete\": ["},{"line_number":122,"context_line":"              # Complete data from this specific iteration."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a7e1126_c90a198a","line":119,"in_reply_to":"3a7e1126_8ed44dbd","updated":"2015-12-21 11:33:01.000000000","message":"Thanks for explanation. I missed the fact that \u0027chart\u0027 relates to a Rally entity, not to a HTML or JS entity. Now everything looks clear.","commit_id":"2384fbeb47e5ddab055313c6a88ea6f1b2fd2766"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"ca58cde56f163984da3118b04e68eb4af8a038a6","unresolved":false,"context_lines":[{"line_number":116,"context_line":"               \"items\": [[\u003cstr key\u003e, \u003cfloat value\u003e], ...]  # Additive data"},{"line_number":117,"context_line":"              },"},{"line_number":118,"context_line":"              {\"error\": \"Items can not be determined\"},  # Failure"},{"line_number":119,"context_line":"              ...  # More data if required"},{"line_number":120,"context_line":"          ],"},{"line_number":121,"context_line":"          \"complete\": ["},{"line_number":122,"context_line":"              # Complete data from this specific iteration."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a7e1126_8ed44dbd","line":119,"in_reply_to":"7a740942_81ffe500","updated":"2015-12-18 16:47:02.000000000","message":"1) For additive data errors we aggregate these errors in exactly the same way as this is done for already implemented iterations errors - and dict position is actually iteration number. Details about displaying and aggregarion is given below in this spec - L219, L267-277\n\nFor complete data errors everything is extremely simple - there is no aggregation at all and displaying is super simple - just show error message instead of chart (see L329-332)\n\n2) The processing is simple and is teh same as already implemented for iteration errors - this is single `if\u0027 statement (like https://goo.gl/y6WUD1). And schema change is trivial (extra `anyOf\u0027).\n\n3) Key `chart\u0027 is about processing, and we process scenarios only by charts.Chart subclasses. So we definitely should process scenario data (including output), and we definitely use onlu Chart subclasses for that. So we have to add a `chart\u0027 key for that, this is mandatory key since additive is custom and we can not know which Chart to choose to process it (in opposite to other scenario data which is already known).\n\nKey `widget\u0027 is only about HTML report, and AFIK we do not expect to have another reports, I can not even imagine what alternative reports are possible.\nWe do not use `chart\u0027 key for complete data because this data already processed (we do not use Chart instances), but anyway, we need to display this data (just remind you that each Chart has property WIDGET so additive data get `widget\u0027 automatically), so we use `widget\u0027 instead of `chart\u0027 here.\n\nI do not think we should make the schema overcomplicated.\n\n4. As described in (1), we *have to* mention name of Chart class which will process the data because output data is custom and we do not know how to process it, so we expect that data tells us the name of Chart subclass.","commit_id":"2384fbeb47e5ddab055313c6a88ea6f1b2fd2766"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"4d266660bfd0c8f4f8a8f7dcfb35afd9e9584442","unresolved":false,"context_lines":[{"line_number":173,"context_line":"             self._output \u003d {\"additive\": [], \"complete\": []}"},{"line_number":174,"context_line":"         for name, data in (\"additive\", additive), (\"complete\", complete):"},{"line_number":175,"context_line":"             if data:"},{"line_number":176,"context_line":"                 schema \u003d getattr(objects.task,"},{"line_number":177,"context_line":"                                  \"%s_OUTPUT_SCHEMA\" % name.upper())"},{"line_number":178,"context_line":"                 try:"},{"line_number":179,"context_line":"                     jsonschema.validate(data, schema)"}],"source_content_type":"text/x-rst","patch_set":2,"id":"fa69d971_8d3fef24","line":176,"updated":"2015-12-30 10:59:28.000000000","message":"Current proposal [1] validates output data in runner, so maybe there is no reason to add this extra validation here?\n\n[1] https://review.openstack.org/#/c/254261/","commit_id":"2384fbeb47e5ddab055313c6a88ea6f1b2fd2766"}]}
