)]}'
{"jenkins/__init__.py":[{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"78dc00718448a62fc6433a656e5d233d3572a9f0","unresolved":false,"context_lines":[{"line_number":63,"context_line":"PLUGIN_INFO \u003d \u0027pluginManager/api/json?depth\u003d%(depth)s\u0027"},{"line_number":64,"context_line":"CRUMB_URL \u003d \u0027crumbIssuer/api/json\u0027"},{"line_number":65,"context_line":"JOBS_QUERY \u003d \u0027?tree\u003djobs[url,color,name,jobs]\u0027"},{"line_number":66,"context_line":"JOB_INFO \u003d \u0027job/%(name)s/api/json?depth\u003d%(depth)s\u0027"},{"line_number":67,"context_line":"JOB_NAME \u003d \u0027job/%(name)s/api/json?tree\u003dname\u0027"},{"line_number":68,"context_line":"Q_INFO \u003d \u0027queue/api/json?depth\u003d0\u0027"},{"line_number":69,"context_line":"CANCEL_QUEUE \u003d \u0027queue/item/%(number)s/cancelQueue\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_69dd8a14","line":66,"updated":"2014-11-10 20:54:33.000000000","message":"since the path is different for folders, would we need to refactor the methods that use JOB_INFO, JOB_NAME, CONFIG_JOB, DELETE_JOB, etc..?","commit_id":"8fb34f1b5670ddb07ac03213eca6f1efe911b509"},{"author":{"_account_id":1054,"name":"Darragh Bailey","email":"daragh.bailey@gmail.com","username":"dbailey-k"},"change_message_id":"3cee67234025befed8efa32ac35056a5f215a574","unresolved":false,"context_lines":[{"line_number":63,"context_line":"PLUGIN_INFO \u003d \u0027pluginManager/api/json?depth\u003d%(depth)s\u0027"},{"line_number":64,"context_line":"CRUMB_URL \u003d \u0027crumbIssuer/api/json\u0027"},{"line_number":65,"context_line":"JOBS_QUERY \u003d \u0027?tree\u003djobs[url,color,name,jobs]\u0027"},{"line_number":66,"context_line":"JOB_INFO \u003d \u0027job/%(name)s/api/json?depth\u003d%(depth)s\u0027"},{"line_number":67,"context_line":"JOB_NAME \u003d \u0027job/%(name)s/api/json?tree\u003dname\u0027"},{"line_number":68,"context_line":"Q_INFO \u003d \u0027queue/api/json?depth\u003d0\u0027"},{"line_number":69,"context_line":"CANCEL_QUEUE \u003d \u0027queue/item/%(number)s/cancelQueue\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_5fadd287","line":66,"in_reply_to":"5a890539_69dd8a14","updated":"2014-11-11 14:09:45.000000000","message":"Suspect so. Probably need to add a method to expand job names to a full name to include the folder when needed.\n\nCurrently favouring having python-jenkins translate between \u003cfolder\u003e/\u003cjob\u003e being sent from using code for jobs to \u0027\u003cfolder\u003e/job/\u003cjob\u003e\u0027 before substituting into the various place holders.\n\nSeems better in the case where Jenkins may have other containers besides the folder plugin and will need to decide how to convert in python-jenkins instead of requiring the caller to know the correct url.\n\nThoughts?","commit_id":"8fb34f1b5670ddb07ac03213eca6f1efe911b509"},{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"78dc00718448a62fc6433a656e5d233d3572a9f0","unresolved":false,"context_lines":[{"line_number":310,"context_line":"        This information includes job list and view information and can be"},{"line_number":311,"context_line":"        used to retreive information on items such as job folders."},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"        :param item: item to get information about on this Master"},{"line_number":314,"context_line":"        :returns: dictionary of information about Master or item, ``dict``"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"        Example::"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_8e171ca3","line":313,"updated":"2014-11-10 20:54:33.000000000","message":"what are the valid items?  maybe list them here?","commit_id":"8fb34f1b5670ddb07ac03213eca6f1efe911b509"},{"author":{"_account_id":1054,"name":"Darragh Bailey","email":"daragh.bailey@gmail.com","username":"dbailey-k"},"change_message_id":"3cee67234025befed8efa32ac35056a5f215a574","unresolved":false,"context_lines":[{"line_number":310,"context_line":"        This information includes job list and view information and can be"},{"line_number":311,"context_line":"        used to retreive information on items such as job folders."},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"        :param item: item to get information about on this Master"},{"line_number":314,"context_line":"        :returns: dictionary of information about Master or item, ``dict``"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"        Example::"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_bf65d646","line":313,"in_reply_to":"5a890539_8e171ca3","updated":"2014-11-11 14:09:45.000000000","message":"Right now it could be either a folder or a job, but presumably that\u0027s just because that\u0027s all we are aware of.\n\nTechnically you can apply this to views, views in folders, jobs, really just about anything in Jenkins you just want to get a summary info on.\n\nShould I suggest known items or simply reword the variables and doc to indicate that it allows providing a sub path to retrieve summary information about the given area in jenkins?","commit_id":"8fb34f1b5670ddb07ac03213eca6f1efe911b509"},{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"ea9b06de00e566e9b48da4c05ec5ef7fb327a1c0","unresolved":false,"context_lines":[{"line_number":310,"context_line":"        This information includes job list and view information and can be"},{"line_number":311,"context_line":"        used to retreive information on items such as job folders."},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"        :param item: item to get information about on this Master"},{"line_number":314,"context_line":"        :returns: dictionary of information about Master or item, ``dict``"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"        Example::"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_b0278cb5","line":313,"in_reply_to":"5a890539_bf65d646","updated":"2015-02-03 18:38:47.000000000","message":"I think providing a concrete list would make it unambigous. So something like.. \n\n:param items:\n   :items values: \n          * **view name***\n          * **folder name**\n          * **job name **\n\nAlso how about the query param?","commit_id":"8fb34f1b5670ddb07ac03213eca6f1efe911b509"},{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"ea9b06de00e566e9b48da4c05ec5ef7fb327a1c0","unresolved":false,"context_lines":[{"line_number":316,"context_line":"        Example::"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"            \u003e\u003e\u003e j \u003d Jenkins()"},{"line_number":319,"context_line":"            \u003e\u003e\u003e info \u003d j.get_info()"},{"line_number":320,"context_line":"            \u003e\u003e\u003e jobs \u003d info[\u0027jobs\u0027]"},{"line_number":321,"context_line":"            \u003e\u003e\u003e print(jobs[0])"},{"line_number":322,"context_line":"            {u\u0027url\u0027: u\u0027http://your_url_here/job/my_job/\u0027, u\u0027color\u0027: u\u0027blue\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_a7eaef0c","line":319,"updated":"2015-02-03 18:38:47.000000000","message":"should we maybe provide an example using the new params?","commit_id":"8fb34f1b5670ddb07ac03213eca6f1efe911b509"},{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"ea9b06de00e566e9b48da4c05ec5ef7fb327a1c0","unresolved":false,"context_lines":[{"line_number":324,"context_line":""},{"line_number":325,"context_line":"        \"\"\""},{"line_number":326,"context_line":"        if item:"},{"line_number":327,"context_line":"            url \u003d \"%s%s/%s\" % (self.server, item, INFO)"},{"line_number":328,"context_line":"        else:"},{"line_number":329,"context_line":"            url \u003d \"%s%s\" % (self.server, INFO)"},{"line_number":330,"context_line":"        if query:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_270d1f3f","line":327,"updated":"2015-02-03 18:38:47.000000000","message":"I think the correct URL is $server/job/$job_name/api/json but this will set the URL to $server/$job_name/api/json","commit_id":"8fb34f1b5670ddb07ac03213eca6f1efe911b509"},{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"78dc00718448a62fc6433a656e5d233d3572a9f0","unresolved":false,"context_lines":[{"line_number":464,"context_line":"                            path \u003d \u0027%s/job/%s/\u0027 % (root, job[\u0027name\u0027])"},{"line_number":465,"context_line":"                        else:"},{"line_number":466,"context_line":"                            path \u003d \u0027job/%s/\u0027 % job[\u0027name\u0027]"},{"line_number":467,"context_line":"                        jobs.append("},{"line_number":468,"context_line":"                            (lvl + 1, path,"},{"line_number":469,"context_line":"                             self.get_info(path,"},{"line_number":470,"context_line":"                                           query\u003dJOBS_QUERY)[\u0027jobs\u0027]))"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_291aa217","line":467,"updated":"2014-11-10 20:54:33.000000000","message":"shouldn\u0027t this be appending to jobs_list ?","commit_id":"8fb34f1b5670ddb07ac03213eca6f1efe911b509"},{"author":{"_account_id":1054,"name":"Darragh Bailey","email":"daragh.bailey@gmail.com","username":"dbailey-k"},"change_message_id":"3cee67234025befed8efa32ac35056a5f215a574","unresolved":false,"context_lines":[{"line_number":464,"context_line":"                            path \u003d \u0027%s/job/%s/\u0027 % (root, job[\u0027name\u0027])"},{"line_number":465,"context_line":"                        else:"},{"line_number":466,"context_line":"                            path \u003d \u0027job/%s/\u0027 % job[\u0027name\u0027]"},{"line_number":467,"context_line":"                        jobs.append("},{"line_number":468,"context_line":"                            (lvl + 1, path,"},{"line_number":469,"context_line":"                             self.get_info(path,"},{"line_number":470,"context_line":"                                           query\u003dJOBS_QUERY)[\u0027jobs\u0027]))"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_bf095697","line":467,"in_reply_to":"5a890539_291aa217","updated":"2014-11-11 14:09:45.000000000","message":"Need to evaluate whether any of the returned data contains nested folders first, hence modifying the list being enumerated instead.","commit_id":"8fb34f1b5670ddb07ac03213eca6f1efe911b509"}]}
