)]}'
{"specs/newton/add-pagination-support-for-aodh.rst":[{"author":{"_account_id":9526,"name":"Zi Lian Ji","email":"jizilian@cn.ibm.com","username":"jizilian"},"change_message_id":"47901e2373c73e094449c03c721dfe5162341889","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/aodh/+spec/support-pagination"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This BP proposed to add pagination support for Aodh. User can use this"},{"line_number":14,"context_line":"feature to set limit, marker and sort when they query their alarm and"},{"line_number":15,"context_line":"alarm history."},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba0121b8_ed7091a6","line":13,"range":{"start_line":13,"start_character":8,"end_line":13,"end_character":19},"updated":"2016-03-31 08:20:35.000000000","message":"s/proposed to/is proposed to","commit_id":"a78e72cc7457016ffbd9331ad7893c48f1941b12"},{"author":{"_account_id":9526,"name":"Zi Lian Ji","email":"jizilian@cn.ibm.com","username":"jizilian"},"change_message_id":"47901e2373c73e094449c03c721dfe5162341889","unresolved":false,"context_lines":[{"line_number":19,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Currently when list alarm and alarm history, all the existed alarm and"},{"line_number":22,"context_line":"history will return at one time, and it is really not user friendly for"},{"line_number":23,"context_line":"users."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba0121b8_b8a7f5bb","line":22,"range":{"start_line":22,"start_character":8,"end_line":22,"end_character":19},"updated":"2016-03-31 08:20:35.000000000","message":"be return","commit_id":"a78e72cc7457016ffbd9331ad7893c48f1941b12"},{"author":{"_account_id":9526,"name":"Zi Lian Ji","email":"jizilian@cn.ibm.com","username":"jizilian"},"change_message_id":"47901e2373c73e094449c03c721dfe5162341889","unresolved":false,"context_lines":[{"line_number":19,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Currently when list alarm and alarm history, all the existed alarm and"},{"line_number":22,"context_line":"history will return at one time, and it is really not user friendly for"},{"line_number":23,"context_line":"users."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Proposed change"},{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba0121b8_58a5f99f","line":23,"range":{"start_line":22,"start_character":37,"end_line":23,"end_character":6},"updated":"2016-03-31 08:20:35.000000000","message":"it is not friendly to users.","commit_id":"a78e72cc7457016ffbd9331ad7893c48f1941b12"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2c425a242b207fcf7cbe18156ffd4ab867171b9b","unresolved":false,"context_lines":[{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Allow Aodh user to use  the general pagination mechanism with the help of"},{"line_number":28,"context_line":"`limit`, `marker`, `sort_key`, `sort_dir` optional parameters to list alarm"},{"line_number":29,"context_line":"and alarm history."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"* **sort_key**: Key used to determine sort order"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_2d956986","line":28,"updated":"2016-03-31 07:45:45.000000000","message":"I would prefer just limit/marker/sort with \u0027sort\u0027 embeding key and dir, so we will have uri like:\n\n/v2/alarms?limit\u003d10\u0026marker\u003d\u003cuuid\u003e\u0026sort\u003dname:asc\u0026sort\u003dproject_id:desc\n\nSome example can be found in Gnocchi that uses oslo.db helper:\n\nhttps://github.com/openstack/gnocchi/blob/master/gnocchi/indexer/sqlalchemy.py#L652-L677\nhttps://github.com/openstack/gnocchi/blob/master/gnocchi/rest/__init__.py#L217-L238","commit_id":"ed52ae07ca73926e3d10758562f598890d232f9a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2c425a242b207fcf7cbe18156ffd4ab867171b9b","unresolved":false,"context_lines":[{"line_number":33,"context_line":"* **sort_dir**: Direction for with the associated sort key (\"asc\" or \"desc\")"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"* **marker**: The last alarm ID of the previous page. Displays list of"},{"line_number":36,"context_line":"  migrations after \"marker\"."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* **limit**: Maximum number of migrations to display. If limit \u003d\u003d -1,"},{"line_number":39,"context_line":"  all migrations will be displayed."}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_4ddffd68","line":36,"updated":"2016-03-31 07:45:45.000000000","message":"s/migrations/alarms","commit_id":"ed52ae07ca73926e3d10758562f598890d232f9a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2c425a242b207fcf7cbe18156ffd4ab867171b9b","unresolved":false,"context_lines":[{"line_number":36,"context_line":"  migrations after \"marker\"."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* **limit**: Maximum number of migrations to display. If limit \u003d\u003d -1,"},{"line_number":39,"context_line":"  all migrations will be displayed."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Alternatives"},{"line_number":42,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_6de2c130","line":39,"updated":"2016-03-31 07:45:45.000000000","message":"s/migrations/alarms","commit_id":"ed52ae07ca73926e3d10758562f598890d232f9a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"27b5199de595f10901d7577615952158892fe2b9","unresolved":false,"context_lines":[{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Allow Aodh user to use  the general pagination mechanism with the help of"},{"line_number":28,"context_line":"`limit`, `marker`, `sort_key`, `sort_dir` optional parameters to list alarm"},{"line_number":29,"context_line":"and alarm history."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"* **sort_key**: Key used to determine sort order"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba0121b8_cd066dcd","line":28,"updated":"2016-03-31 07:47:07.000000000","message":"I would prefer just limit/marker/sort with \u0027sort\u0027 embeding key and dir, so we will have uri like:\n/v2/alarms?limit\u003d10\u0026marker\u003d\u003cuuid\u003e\u0026sort\u003dname:asc\u0026sort\u003dproject_id:desc\nSome example can be found in Gnocchi that uses oslo.db helper:\nhttps://github.com/openstack/gnocchi/blob/master/gnocchi/indexer/sqlalchemy.py#L652-L677\nhttps://github.com/openstack/gnocchi/blob/master/gnocchi/rest/__init__.py#L217-L238","commit_id":"ecd7220f9f5aa9b4779668731b0bf2055fb55054"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"27b5199de595f10901d7577615952158892fe2b9","unresolved":false,"context_lines":[{"line_number":33,"context_line":"* **sort_dir**: Direction for with the associated sort key (\"asc\" or \"desc\")"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"* **marker**: The last alarm ID of the previous page. Displays list of"},{"line_number":36,"context_line":"  migrations after \"marker\"."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* **limit**: Maximum number of migrations to display. If limit \u003d\u003d -1,"},{"line_number":39,"context_line":"  all migrations will be displayed."}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba0121b8_0d0d05e8","line":36,"updated":"2016-03-31 07:47:07.000000000","message":"s/migrations/alarms","commit_id":"ecd7220f9f5aa9b4779668731b0bf2055fb55054"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"27b5199de595f10901d7577615952158892fe2b9","unresolved":false,"context_lines":[{"line_number":36,"context_line":"  migrations after \"marker\"."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* **limit**: Maximum number of migrations to display. If limit \u003d\u003d -1,"},{"line_number":39,"context_line":"  all migrations will be displayed."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Alternatives"},{"line_number":42,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba0121b8_ad0b39d5","line":39,"updated":"2016-03-31 07:47:07.000000000","message":"s/migrations/alarms","commit_id":"ecd7220f9f5aa9b4779668731b0bf2055fb55054"}]}
