)]}'
{"doc/source/contributor/drivers_architecture.rst":[{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"707d801fa1e74a2d1b86d444a351b77056dc9aba","unresolved":false,"context_lines":[{"line_number":128,"context_line":"                  self,"},{"line_number":129,"context_line":"                  resource_suffix)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"  class FullSync(Resources):"},{"line_number":132,"context_line":"      # To Be called through, maintenance task, it contains almost the"},{"line_number":133,"context_line":"      # full sync module logic"},{"line_number":134,"context_line":"      def __call__(self, context):"},{"line_number":135,"context_line":"          # Process full sync"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"  class Recovery(Resources):"},{"line_number":138,"context_line":"      # To Be called through, maintenance task. It contains almost all the"},{"line_number":139,"context_line":"      # Recovery module logic"},{"line_number":140,"context_line":"      def __call__(self, context):"},{"line_number":141,"context_line":"          # Process for Recovery"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"  class Driver(BaseDriver):"}],"source_content_type":"text/x-rst","patch_set":1,"id":"1f485f77_c0b94815","line":141,"range":{"start_line":131,"start_character":0,"end_line":141,"end_character":32},"updated":"2017-11-16 12:00:07.000000000","message":"I\u0027m not sure why these two are necessary, we already have the full sync and recovery logic in their corresponding modules, what benefit do you see from adding these 2 classes?","commit_id":"fd2158b932df6b1db4097b9f0e0cf748c904f33c"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"19f86e8a8c5cbb66c4c49308de3161a0faedae52","unresolved":false,"context_lines":[{"line_number":128,"context_line":"                  self,"},{"line_number":129,"context_line":"                  resource_suffix)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"  class FullSync(Resources):"},{"line_number":132,"context_line":"      # To Be called through, maintenance task, it contains almost the"},{"line_number":133,"context_line":"      # full sync module logic"},{"line_number":134,"context_line":"      def __call__(self, context):"},{"line_number":135,"context_line":"          # Process full sync"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"  class Recovery(Resources):"},{"line_number":138,"context_line":"      # To Be called through, maintenance task. It contains almost all the"},{"line_number":139,"context_line":"      # Recovery module logic"},{"line_number":140,"context_line":"      def __call__(self, context):"},{"line_number":141,"context_line":"          # Process for Recovery"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"  class Driver(BaseDriver):"}],"source_content_type":"text/x-rst","patch_set":1,"id":"1f485f77_7196e440","line":141,"range":{"start_line":131,"start_character":0,"end_line":141,"end_character":32},"in_reply_to":"1f485f77_c0b94815","updated":"2017-11-16 13:43:02.000000000","message":"These are not necessary but makes code more maintainable and easy to understand. Now the scope of variables and methods is the whole module, if we move them to class, we restrict the scope. And bind data and methods processing them more closer to each other, where they belong.","commit_id":"fd2158b932df6b1db4097b9f0e0cf748c904f33c"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"54793d1511c6f0407b6152f2223844063c5ce291","unresolved":false,"context_lines":[{"line_number":111,"context_line":"  class ResourceBaseDriver(object):"},{"line_number":112,"context_line":"      ALL_RESOURCES \u003d {}"},{"line_number":113,"context_line":"      def __init__(self, plugin_type, *args, **kwargs):"},{"line_number":114,"context_line":"          super(ResourceBaseDriver, self).__init__(self, plugin_type, *args, **kwargs)"},{"line_number":115,"context_line":"          # All the common methods to be used by full sync and recovery"},{"line_number":116,"context_line":"          # specific to driver."},{"line_number":117,"context_line":"          for resource, resource_suffix in resources.items():"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_8870b474","line":114,"range":{"start_line":114,"start_character":57,"end_line":114,"end_character":70},"updated":"2017-11-21 10:58:44.000000000","message":"Pretty sure this could result in an error..","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"6afc1a81ef4a3fefe6a9d3246b71c84369f9db44","unresolved":false,"context_lines":[{"line_number":111,"context_line":"  class ResourceBaseDriver(object):"},{"line_number":112,"context_line":"      ALL_RESOURCES \u003d {}"},{"line_number":113,"context_line":"      def __init__(self, plugin_type, *args, **kwargs):"},{"line_number":114,"context_line":"          super(ResourceBaseDriver, self).__init__(self, plugin_type, *args, **kwargs)"},{"line_number":115,"context_line":"          # All the common methods to be used by full sync and recovery"},{"line_number":116,"context_line":"          # specific to driver."},{"line_number":117,"context_line":"          for resource, resource_suffix in resources.items():"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_a89ed804","line":114,"range":{"start_line":114,"start_character":57,"end_line":114,"end_character":70},"in_reply_to":"ff82abbf_8870b474","updated":"2017-11-22 06:25:38.000000000","message":"Done","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"54793d1511c6f0407b6152f2223844063c5ce291","unresolved":false,"context_lines":[{"line_number":116,"context_line":"          # specific to driver."},{"line_number":117,"context_line":"          for resource, resource_suffix in resources.items():"},{"line_number":118,"context_line":"              Resources.ALL_RESOURCES[resource] \u003d SyncResource("},{"line_number":119,"context_line":"                  self.plugin_type,"},{"line_number":120,"context_line":"                  self,"},{"line_number":121,"context_line":"                  resource_suffix)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_48514cd8","line":119,"range":{"start_line":119,"start_character":18,"end_line":119,"end_character":23},"updated":"2017-11-21 10:58:44.000000000","message":"Not needed?","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"6afc1a81ef4a3fefe6a9d3246b71c84369f9db44","unresolved":false,"context_lines":[{"line_number":116,"context_line":"          # specific to driver."},{"line_number":117,"context_line":"          for resource, resource_suffix in resources.items():"},{"line_number":118,"context_line":"              Resources.ALL_RESOURCES[resource] \u003d SyncResource("},{"line_number":119,"context_line":"                  self.plugin_type,"},{"line_number":120,"context_line":"                  self,"},{"line_number":121,"context_line":"                  resource_suffix)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_c8a31c4f","line":119,"range":{"start_line":119,"start_character":18,"end_line":119,"end_character":23},"in_reply_to":"ff82abbf_48514cd8","updated":"2017-11-22 06:25:38.000000000","message":"Done","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"54793d1511c6f0407b6152f2223844063c5ce291","unresolved":false,"context_lines":[{"line_number":128,"context_line":"          # default definition to be used, if get_resources method is not"},{"line_number":129,"context_line":"          # defined then this method gets called by full sync"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"      def get_resource_by_id(context, obj, plugin):"},{"line_number":132,"context_line":"          # Returns resource based on its id"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"      def get_nested_resource(context, plugin, nested_resource_id,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_e83620b5","line":131,"range":{"start_line":131,"start_character":6,"end_line":131,"end_character":51},"updated":"2017-11-21 10:58:44.000000000","message":"This is confusing since the difference from get_resource isn\u0027t clear.\n\nPerhaps this method is not necessary since the sub-class can either call base get_resource or implement it on it\u0027s own, or any combination of these approaches..","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"6afc1a81ef4a3fefe6a9d3246b71c84369f9db44","unresolved":false,"context_lines":[{"line_number":128,"context_line":"          # default definition to be used, if get_resources method is not"},{"line_number":129,"context_line":"          # defined then this method gets called by full sync"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"      def get_resource_by_id(context, obj, plugin):"},{"line_number":132,"context_line":"          # Returns resource based on its id"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"      def get_nested_resource(context, plugin, nested_resource_id,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_888514b0","line":131,"range":{"start_line":131,"start_character":6,"end_line":131,"end_character":51},"in_reply_to":"ff82abbf_e83620b5","updated":"2017-11-22 06:25:38.000000000","message":"Done","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"54793d1511c6f0407b6152f2223844063c5ce291","unresolved":false,"context_lines":[{"line_number":131,"context_line":"      def get_resource_by_id(context, obj, plugin):"},{"line_number":132,"context_line":"          # Returns resource based on its id"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"      def get_nested_resource(context, plugin, nested_resource_id,"},{"line_number":135,"context_line":"                              nesting_resource_id, method_name):"},{"line_number":136,"context_line":"          # Returns nested resources"},{"line_number":137,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_881e740a","line":134,"range":{"start_line":134,"start_character":30,"end_line":134,"end_character":37},"updated":"2017-11-21 10:58:44.000000000","message":"missing self?","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"54793d1511c6f0407b6152f2223844063c5ce291","unresolved":false,"context_lines":[{"line_number":137,"context_line":""},{"line_number":138,"context_line":"  file: networking_odl/journal/full_sync.py"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"  # Common methods can be used by other modules as well"},{"line_number":141,"context_line":"  #"},{"line_number":142,"context_line":"  # These methods can be used by both full sync and recovery, If we"},{"line_number":143,"context_line":"  # don\u0027t want to create classes then these methods can be put"},{"line_number":144,"context_line":"  # either in ResourceBaseDriver class or may be a journal_util.py file"},{"line_number":145,"context_line":"  # can be created and used from that file. I am not sure putting them"},{"line_number":146,"context_line":"  # in plugin will be a good idea."},{"line_number":147,"context_line":"  def get_method_name_by_resource_suffix(method_suffix):"},{"line_number":148,"context_line":"      # Returns method name given resource suffix"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"  def _get_method(plugin, method_name):"},{"line_number":151,"context_line":"      # Returns method for a specific plugin"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"  # This class will make sure to contain all full sync related method"},{"line_number":154,"context_line":"  # fully packed at one place. If extra function like above are moved"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_c8823c50","line":151,"range":{"start_line":140,"start_character":2,"end_line":151,"end_character":44},"updated":"2017-11-21 10:58:44.000000000","message":"These methods seem to be misplaced, I think they make sense to be in the new base class.\n\nIIUC only the drivers should be accessing these methods, full sync and recovery wont be directly accessing them but rather get_resource/s.","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"54793d1511c6f0407b6152f2223844063c5ce291","unresolved":false,"context_lines":[{"line_number":153,"context_line":"  # This class will make sure to contain all full sync related method"},{"line_number":154,"context_line":"  # fully packed at one place. If extra function like above are moved"},{"line_number":155,"context_line":"  # from this module then this class should be used."},{"line_number":156,"context_line":"  class FullSync(object):"},{"line_number":157,"context_line":"      # To Be called through, maintenance task, it contains almost the"},{"line_number":158,"context_line":"      # full sync module logic"},{"line_number":159,"context_line":"      def __call__(self, context):"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_e8e86017","line":156,"range":{"start_line":156,"start_character":2,"end_line":156,"end_character":25},"updated":"2017-11-21 10:58:44.000000000","message":"I don\u0027t see the benefit of having this as a class, if you have a good reason please explain.","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"54793d1511c6f0407b6152f2223844063c5ce291","unresolved":false,"context_lines":[{"line_number":177,"context_line":""},{"line_number":178,"context_line":"  file: networking_odl/journal/recovery.py"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"  class Recovery(object):"},{"line_number":181,"context_line":"      # To Be called through, maintenance task. It contains almost all the"},{"line_number":182,"context_line":"      # Recovery module logic"},{"line_number":183,"context_line":"      def __call__(self, context):"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_08eee421","line":180,"range":{"start_line":180,"start_character":2,"end_line":180,"end_character":25},"updated":"2017-11-21 10:58:44.000000000","message":"Ditto","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"6afc1a81ef4a3fefe6a9d3246b71c84369f9db44","unresolved":false,"context_lines":[{"line_number":177,"context_line":""},{"line_number":178,"context_line":"  file: networking_odl/journal/recovery.py"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"  class Recovery(object):"},{"line_number":181,"context_line":"      # To Be called through, maintenance task. It contains almost all the"},{"line_number":182,"context_line":"      # Recovery module logic"},{"line_number":183,"context_line":"      def __call__(self, context):"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_488f0ccc","line":180,"range":{"start_line":180,"start_character":2,"end_line":180,"end_character":25},"in_reply_to":"ff82abbf_08eee421","updated":"2017-11-22 06:25:38.000000000","message":"Done","commit_id":"dd0d47dcb4fb57696e9410c8f672ee505d905913"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"35556eb3e847c2626e84fd38ea760b0c2de16552","unresolved":false,"context_lines":[{"line_number":114,"context_line":"          super(ResourceBaseDriver, self).__init__(*args, **kwargs)"},{"line_number":115,"context_line":"          # All the common methods to be used by full sync and recovery"},{"line_number":116,"context_line":"          # specific to driver."},{"line_number":117,"context_line":"          for resource, resource_suffix in resources.items():"},{"line_number":118,"context_line":"              Resources.ALL_RESOURCES[resource] \u003d SyncResource("},{"line_number":119,"context_line":"                  plugin_type,"},{"line_number":120,"context_line":"                  self,"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff82abbf_6cfd3239","line":117,"range":{"start_line":117,"start_character":43,"end_line":117,"end_character":52},"updated":"2017-11-21 22:22:07.000000000","message":"resources needs to be added to argument to __init__().","commit_id":"0e44554b84ccf4c2035473a0e2cff41d10481cf8"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"6afc1a81ef4a3fefe6a9d3246b71c84369f9db44","unresolved":false,"context_lines":[{"line_number":114,"context_line":"          super(ResourceBaseDriver, self).__init__(*args, **kwargs)"},{"line_number":115,"context_line":"          # All the common methods to be used by full sync and recovery"},{"line_number":116,"context_line":"          # specific to driver."},{"line_number":117,"context_line":"          for resource, resource_suffix in resources.items():"},{"line_number":118,"context_line":"              Resources.ALL_RESOURCES[resource] \u003d SyncResource("},{"line_number":119,"context_line":"                  plugin_type,"},{"line_number":120,"context_line":"                  self,"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff82abbf_a984815f","line":117,"range":{"start_line":117,"start_character":43,"end_line":117,"end_character":52},"in_reply_to":"ff82abbf_6cfd3239","updated":"2017-11-22 06:25:38.000000000","message":"resources can be accessed through self.","commit_id":"0e44554b84ccf4c2035473a0e2cff41d10481cf8"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"35556eb3e847c2626e84fd38ea760b0c2de16552","unresolved":false,"context_lines":[{"line_number":120,"context_line":"                  self,"},{"line_number":121,"context_line":"                  resource_suffix)"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"      def get_resource(self, resource_type, resource_id):"},{"line_number":124,"context_line":"          # default definition to be used, if get_resource method is not"},{"line_number":125,"context_line":"          # defined then this method gets called by recovery"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff82abbf_671c6b6a","line":123,"range":{"start_line":123,"start_character":10,"end_line":123,"end_character":14},"updated":"2017-11-21 22:22:07.000000000","message":"I may be too concerned.\n\nthe contract between neutron server and plugin is \u0027get_\u003cresource name\u003e\u0027 for \u003cresource name\u003e.\ncontract between plugin and driver is also \"get_\u003cresource name\u003e\".\nSo we may want to avoid such method name just in case.\n\nIt\u0027s quite unlikely that neutron will introduces \"resource\" as neutron resource name in future though.","commit_id":"0e44554b84ccf4c2035473a0e2cff41d10481cf8"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"6afc1a81ef4a3fefe6a9d3246b71c84369f9db44","unresolved":false,"context_lines":[{"line_number":120,"context_line":"                  self,"},{"line_number":121,"context_line":"                  resource_suffix)"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"      def get_resource(self, resource_type, resource_id):"},{"line_number":124,"context_line":"          # default definition to be used, if get_resource method is not"},{"line_number":125,"context_line":"          # defined then this method gets called by recovery"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff82abbf_299871be","line":123,"range":{"start_line":123,"start_character":10,"end_line":123,"end_character":14},"in_reply_to":"ff82abbf_671c6b6a","updated":"2017-11-22 06:25:38.000000000","message":"What do you think, about \"get_resources_for_full_sync\" and get_resource_for_recovery?","commit_id":"0e44554b84ccf4c2035473a0e2cff41d10481cf8"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"35556eb3e847c2626e84fd38ea760b0c2de16552","unresolved":false,"context_lines":[{"line_number":128,"context_line":"          # default definition to be used, if get_resources method is not"},{"line_number":129,"context_line":"          # defined then this method gets called by full sync"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"      def get_method_name_by_resource_suffix(method_suffix):"},{"line_number":132,"context_line":"          # Returns method name given resource suffix"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"      def _get_method(plugin, method_name):"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff82abbf_cc69de25","line":131,"range":{"start_line":131,"start_character":0,"end_line":131,"end_character":60},"updated":"2017-11-21 22:22:07.000000000","message":"@staticmethod?","commit_id":"0e44554b84ccf4c2035473a0e2cff41d10481cf8"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"35556eb3e847c2626e84fd38ea760b0c2de16552","unresolved":false,"context_lines":[{"line_number":131,"context_line":"      def get_method_name_by_resource_suffix(method_suffix):"},{"line_number":132,"context_line":"          # Returns method name given resource suffix"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"      def _get_method(plugin, method_name):"},{"line_number":135,"context_line":"          # Returns method for a specific plugin"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"  file: networking_odl/\u003cdriver-name\u003e/\u003cdriver-file\u003e.py"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff82abbf_6c769209","line":134,"range":{"start_line":134,"start_character":0,"end_line":134,"end_character":43},"updated":"2017-11-21 22:22:07.000000000","message":"@staticmethod?","commit_id":"0e44554b84ccf4c2035473a0e2cff41d10481cf8"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"35556eb3e847c2626e84fd38ea760b0c2de16552","unresolved":false,"context_lines":[{"line_number":128,"context_line":"          # default definition to be used, if get_resources method is not"},{"line_number":129,"context_line":"          # defined then this method gets called by full sync"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"      def get_method_name_by_resource_suffix(method_suffix):"},{"line_number":132,"context_line":"          # Returns method name given resource suffix"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"      def _get_method(plugin, method_name):"},{"line_number":135,"context_line":"          # Returns method for a specific plugin"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"  file: networking_odl/\u003cdriver-name\u003e/\u003cdriver-file\u003e.py"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff82abbf_cc731ee7","line":135,"range":{"start_line":131,"start_character":0,"end_line":135,"end_character":48},"updated":"2017-11-21 22:22:07.000000000","message":"You have several helper methods.\nthey can be static method of this base class or direct function in this module.\nAt least we should have them consistently.\n\none possibility is, define this base class as only interface, and then define a subclass which have actual implementations and helper methods.","commit_id":"0e44554b84ccf4c2035473a0e2cff41d10481cf8"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"35556eb3e847c2626e84fd38ea760b0c2de16552","unresolved":false,"context_lines":[{"line_number":144,"context_line":"      }"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"      def __init__(self, *args, **kwargs):"},{"line_number":147,"context_line":"          super(XXXXDriver, self)(plugin_type, *args, **kwargs)"},{"line_number":148,"context_line":"          # driver specific things"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"      def get_resources(self, resource_type):"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff82abbf_ccaebe2d","line":147,"range":{"start_line":147,"start_character":46,"end_line":147,"end_character":47},"updated":"2017-11-21 22:22:07.000000000","message":"RESOURCES,","commit_id":"0e44554b84ccf4c2035473a0e2cff41d10481cf8"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"6afc1a81ef4a3fefe6a9d3246b71c84369f9db44","unresolved":false,"context_lines":[{"line_number":144,"context_line":"      }"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"      def __init__(self, *args, **kwargs):"},{"line_number":147,"context_line":"          super(XXXXDriver, self)(plugin_type, *args, **kwargs)"},{"line_number":148,"context_line":"          # driver specific things"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"      def get_resources(self, resource_type):"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff82abbf_09e24d30","line":147,"range":{"start_line":147,"start_character":46,"end_line":147,"end_character":47},"in_reply_to":"ff82abbf_ccaebe2d","updated":"2017-11-22 06:25:38.000000000","message":"not required.","commit_id":"0e44554b84ccf4c2035473a0e2cff41d10481cf8"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"afa5a6173edc50a506acd874ed347145749c134b","unresolved":false,"context_lines":[{"line_number":159,"context_line":"          super(XXXXDriver, self)(plugin_type, *args, **kwargs)"},{"line_number":160,"context_line":"          # driver specific things"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"      def get_resources(self, resource_type):"},{"line_number":163,"context_line":"          # returns resource for full sync"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"      def get_resource(self, resource_type):"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ff82abbf_1129a499","line":162,"range":{"start_line":162,"start_character":10,"end_line":162,"end_character":23},"updated":"2017-11-28 01:28:55.000000000","message":"get_resources_for_full_sync?\nthis doesn\u0027t match with the base class definition.","commit_id":"c857152f1771ceebf6530cb56c0169c710c3fcd5"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"f83a21200c319ad90e8e951d33367b7a5ce7bb0b","unresolved":false,"context_lines":[{"line_number":159,"context_line":"          super(XXXXDriver, self)(plugin_type, *args, **kwargs)"},{"line_number":160,"context_line":"          # driver specific things"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"      def get_resources(self, resource_type):"},{"line_number":163,"context_line":"          # returns resource for full sync"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"      def get_resource(self, resource_type):"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ff82abbf_fc289497","line":162,"range":{"start_line":162,"start_character":10,"end_line":162,"end_character":23},"in_reply_to":"ff82abbf_1129a499","updated":"2017-11-28 04:55:56.000000000","message":"Done","commit_id":"c857152f1771ceebf6530cb56c0169c710c3fcd5"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"afa5a6173edc50a506acd874ed347145749c134b","unresolved":false,"context_lines":[{"line_number":162,"context_line":"      def get_resources(self, resource_type):"},{"line_number":163,"context_line":"          # returns resource for full sync"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"      def get_resource(self, resource_type):"},{"line_number":166,"context_line":"          # returns resource for recovery"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ff82abbf_b11b187f","line":165,"range":{"start_line":165,"start_character":10,"end_line":165,"end_character":22},"updated":"2017-11-28 01:28:55.000000000","message":"ditto.","commit_id":"c857152f1771ceebf6530cb56c0169c710c3fcd5"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"f83a21200c319ad90e8e951d33367b7a5ce7bb0b","unresolved":false,"context_lines":[{"line_number":162,"context_line":"      def get_resources(self, resource_type):"},{"line_number":163,"context_line":"          # returns resource for full sync"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"      def get_resource(self, resource_type):"},{"line_number":166,"context_line":"          # returns resource for recovery"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ff82abbf_9c1b887f","line":165,"range":{"start_line":165,"start_character":10,"end_line":165,"end_character":22},"in_reply_to":"ff82abbf_b11b187f","updated":"2017-11-28 04:55:56.000000000","message":"Done","commit_id":"c857152f1771ceebf6530cb56c0169c710c3fcd5"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"89bc169e3e8544aea8978a132c9df71d8b290d4b","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"  class SyncResource(object):"},{"line_number":102,"context_line":"      def __init__(self, plugin_type, driver, resource_suffix):"},{"line_number":103,"context_line":"          self._plugin_type \u003d plugin_type"},{"line_number":104,"context_line":"          self.driver \u003d driver"},{"line_number":105,"context_line":"          self.resource_suffix \u003d resource_suffix"},{"line_number":106,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"ff82abbf_d16a4b18","line":103,"range":{"start_line":103,"start_character":0,"end_line":103,"end_character":41},"updated":"2017-11-28 15:17:33.000000000","message":"Why save plugin type?\n\nShouldn\u0027t the driver itself already know which plugin to use, and possibly hold a copy of, in the case it needs to fetch one or multiple resources?","commit_id":"7a60a4070fd1d772a689809254fb8dfc7b0a0883"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"a29d4956c3dc13fae61cbf0b811643c8021c4b6f","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"  class SyncResource(object):"},{"line_number":102,"context_line":"      def __init__(self, plugin_type, driver, resource_suffix):"},{"line_number":103,"context_line":"          self._plugin_type \u003d plugin_type"},{"line_number":104,"context_line":"          self.driver \u003d driver"},{"line_number":105,"context_line":"          self.resource_suffix \u003d resource_suffix"},{"line_number":106,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"ff82abbf_139bc517","line":103,"range":{"start_line":103,"start_character":0,"end_line":103,"end_character":41},"in_reply_to":"ff82abbf_d16a4b18","updated":"2017-11-29 04:59:01.000000000","message":"\u003e Why save plugin type?\n\nWe need to fetch data from database using plugin type.\n\n\u003e Shouldn\u0027t the driver itself already know which plugin to use, and possibly hold a copy of, in the case it needs to fetch one or multiple resources?\n\nyes, will update it.","commit_id":"7a60a4070fd1d772a689809254fb8dfc7b0a0883"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"13a5172a50075293233d33dd77a43045ee5410ab","unresolved":false,"context_lines":[{"line_number":91,"context_line":"Full Sync \u0026 Recovery"},{"line_number":92,"context_line":"--------------------"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"A class has to be defined for Full Sync, which contains information specific"},{"line_number":95,"context_line":"to full sync"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":".. code:: python"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_6962600c","line":95,"range":{"start_line":94,"start_character":0,"end_line":95,"end_character":12},"updated":"2017-11-29 07:27:13.000000000","message":"Is this info correct? It seems unrelated to the code examples below..","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0c33e0d235471a432f21ff9652cd940887d2fd4b","unresolved":false,"context_lines":[{"line_number":91,"context_line":"Full Sync \u0026 Recovery"},{"line_number":92,"context_line":"--------------------"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"A class has to be defined for Full Sync, which contains information specific"},{"line_number":95,"context_line":"to full sync"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":".. code:: python"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_4df88c7b","line":95,"range":{"start_line":94,"start_character":0,"end_line":95,"end_character":12},"in_reply_to":"ff82abbf_6962600c","updated":"2017-12-01 03:34:49.000000000","message":"Done","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"ca78c7365748e86ef065b9b65d81692b5f7179ed","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"  ALL_RESOURCES \u003d {}"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"  @six.add_metaclass(abc.ABCMeta)"},{"line_number":104,"context_line":"  class NetworkingODLBaseDriver(object):"},{"line_number":105,"context_line":"      @abc.abstractmethod"},{"line_number":106,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"},{"line_number":107,"context_line":"          pass"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"      @abc.abstractmethod"},{"line_number":110,"context_line":"      def get_resources_for_full_sync(self, resource_type):"},{"line_number":111,"context_line":"          pass"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"  class ResourceBaseDriver(NetworkingODLBaseDriver):"},{"line_number":114,"context_line":"      def __init__(self, plugin_type, *args, **kwargs):"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_c6891675","line":111,"range":{"start_line":103,"start_character":1,"end_line":111,"end_character":14},"updated":"2017-11-29 08:42:26.000000000","message":"Why do you need to have this class? It can be directly added into ResourceBaseDriver without a need to add more \"complexity\".","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"1504feb734f8916c95f3c513c2bf3b0c1621f39f","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"  ALL_RESOURCES \u003d {}"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"  @six.add_metaclass(abc.ABCMeta)"},{"line_number":104,"context_line":"  class NetworkingODLBaseDriver(object):"},{"line_number":105,"context_line":"      @abc.abstractmethod"},{"line_number":106,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"},{"line_number":107,"context_line":"          pass"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"      @abc.abstractmethod"},{"line_number":110,"context_line":"      def get_resources_for_full_sync(self, resource_type):"},{"line_number":111,"context_line":"          pass"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"  class ResourceBaseDriver(NetworkingODLBaseDriver):"},{"line_number":114,"context_line":"      def __init__(self, plugin_type, *args, **kwargs):"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df87a7cf_32d8fa51","line":111,"range":{"start_line":103,"start_character":1,"end_line":111,"end_character":14},"in_reply_to":"ff82abbf_2d73c84f","updated":"2017-12-04 08:55:32.000000000","message":"You don\u0027t need this class to allow that. You just put them in  ResourceBaseDriver and the class that inherits from that one just overloads the methods.\n\nI really don\u0027t see the value of this.","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0c33e0d235471a432f21ff9652cd940887d2fd4b","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"  ALL_RESOURCES \u003d {}"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"  @six.add_metaclass(abc.ABCMeta)"},{"line_number":104,"context_line":"  class NetworkingODLBaseDriver(object):"},{"line_number":105,"context_line":"      @abc.abstractmethod"},{"line_number":106,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"},{"line_number":107,"context_line":"          pass"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"      @abc.abstractmethod"},{"line_number":110,"context_line":"      def get_resources_for_full_sync(self, resource_type):"},{"line_number":111,"context_line":"          pass"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"  class ResourceBaseDriver(NetworkingODLBaseDriver):"},{"line_number":114,"context_line":"      def __init__(self, plugin_type, *args, **kwargs):"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_2d73c84f","line":111,"range":{"start_line":103,"start_character":1,"end_line":111,"end_character":14},"in_reply_to":"ff82abbf_c6891675","updated":"2017-12-01 03:34:49.000000000","message":"Got this comment from Isaku. I think, it will be helpful if two driver need the same method for full sync but different from default one.","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"ca78c7365748e86ef065b9b65d81692b5f7179ed","unresolved":false,"context_lines":[{"line_number":120,"context_line":"          # Only driver is enough for all the information. Driver has"},{"line_number":121,"context_line":"          # plugin_type for fetching the information from db and resource"},{"line_number":122,"context_line":"          # suffix is available through driver.RESOURCES."},{"line_number":123,"context_line":"          for resource, resource_suffix in self.RESOURCES.items():"},{"line_number":124,"context_line":"              ALL_RESOURCES[resource] \u003d self"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_a6d41249","line":123,"range":{"start_line":123,"start_character":48,"end_line":123,"end_character":57},"updated":"2017-11-29 08:42:26.000000000","message":"You need to add this either as a class or an object attribute. But accessing an attribute that depends on that the class is extended by a child class is just wrong.\n\n\nAlso, document what RESOURCES is and what it is for.","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"0493e537bd0b9625474243697048bdb67da03e48","unresolved":false,"context_lines":[{"line_number":120,"context_line":"          # Only driver is enough for all the information. Driver has"},{"line_number":121,"context_line":"          # plugin_type for fetching the information from db and resource"},{"line_number":122,"context_line":"          # suffix is available through driver.RESOURCES."},{"line_number":123,"context_line":"          for resource, resource_suffix in self.RESOURCES.items():"},{"line_number":124,"context_line":"              ALL_RESOURCES[resource] \u003d self"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_69125d64","line":123,"range":{"start_line":123,"start_character":48,"end_line":123,"end_character":57},"in_reply_to":"ff82abbf_092f1188","updated":"2017-11-29 09:27:06.000000000","message":"No I mean a parameter he sends to init, then he can define it wherever he wants on the sub-class under whatever name he chooses (if it\u0027s even necessary), but here it will be referenced properly.\nSounds like the simplest way to achieve the goal here..","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"a25b75501a4d58633cc0585abf9e59bc7144b66f","unresolved":false,"context_lines":[{"line_number":120,"context_line":"          # Only driver is enough for all the information. Driver has"},{"line_number":121,"context_line":"          # plugin_type for fetching the information from db and resource"},{"line_number":122,"context_line":"          # suffix is available through driver.RESOURCES."},{"line_number":123,"context_line":"          for resource, resource_suffix in self.RESOURCES.items():"},{"line_number":124,"context_line":"              ALL_RESOURCES[resource] \u003d self"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_092f1188","line":123,"range":{"start_line":123,"start_character":48,"end_line":123,"end_character":57},"in_reply_to":"ff82abbf_26d32206","updated":"2017-11-29 09:03:43.000000000","message":"I understands that he wants the child class to have RESOURCES be defined for the class where it defines the resources that it handles. If that\u0027s the case it is not really a parameter, as it won\u0027t change from one object to the other.","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0c33e0d235471a432f21ff9652cd940887d2fd4b","unresolved":false,"context_lines":[{"line_number":120,"context_line":"          # Only driver is enough for all the information. Driver has"},{"line_number":121,"context_line":"          # plugin_type for fetching the information from db and resource"},{"line_number":122,"context_line":"          # suffix is available through driver.RESOURCES."},{"line_number":123,"context_line":"          for resource, resource_suffix in self.RESOURCES.items():"},{"line_number":124,"context_line":"              ALL_RESOURCES[resource] \u003d self"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_ad9cb85d","line":123,"range":{"start_line":123,"start_character":48,"end_line":123,"end_character":57},"in_reply_to":"ff82abbf_55f7ea8b","updated":"2017-12-01 03:34:49.000000000","message":"+1 agree with Michel","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"a40a62c025f43f5cc2e380a8e0970d5251c41b34","unresolved":false,"context_lines":[{"line_number":120,"context_line":"          # Only driver is enough for all the information. Driver has"},{"line_number":121,"context_line":"          # plugin_type for fetching the information from db and resource"},{"line_number":122,"context_line":"          # suffix is available through driver.RESOURCES."},{"line_number":123,"context_line":"          for resource, resource_suffix in self.RESOURCES.items():"},{"line_number":124,"context_line":"              ALL_RESOURCES[resource] \u003d self"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_55f7ea8b","line":123,"range":{"start_line":123,"start_character":48,"end_line":123,"end_character":57},"in_reply_to":"ff82abbf_69125d64","updated":"2017-11-29 11:53:53.000000000","message":"yes, yes, I understood what you meant. But that means that everytime you want to instantiate this class you need to send those parameters or you\u0027ll have to put a default parameter for that parameter.\n\nIt\u0027s a design choice whether to do it with a parameter or an attribute. I\u0027m okey either way.","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"91e3c345cfc7249975d720a5a865826d9e9fbef7","unresolved":false,"context_lines":[{"line_number":120,"context_line":"          # Only driver is enough for all the information. Driver has"},{"line_number":121,"context_line":"          # plugin_type for fetching the information from db and resource"},{"line_number":122,"context_line":"          # suffix is available through driver.RESOURCES."},{"line_number":123,"context_line":"          for resource, resource_suffix in self.RESOURCES.items():"},{"line_number":124,"context_line":"              ALL_RESOURCES[resource] \u003d self"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_26d32206","line":123,"range":{"start_line":123,"start_character":48,"end_line":123,"end_character":57},"in_reply_to":"ff82abbf_a6d41249","updated":"2017-11-29 08:50:01.000000000","message":"Why not a parameter then?","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"1504feb734f8916c95f3c513c2bf3b0c1621f39f","unresolved":false,"context_lines":[{"line_number":120,"context_line":"          # Only driver is enough for all the information. Driver has"},{"line_number":121,"context_line":"          # plugin_type for fetching the information from db and resource"},{"line_number":122,"context_line":"          # suffix is available through driver.RESOURCES."},{"line_number":123,"context_line":"          for resource, resource_suffix in self.RESOURCES.items():"},{"line_number":124,"context_line":"              ALL_RESOURCES[resource] \u003d self"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df87a7cf_52f01eca","line":123,"range":{"start_line":123,"start_character":48,"end_line":123,"end_character":57},"in_reply_to":"ff82abbf_ad9cb85d","updated":"2017-12-04 08:55:32.000000000","message":"Even more so, if you agree with me this comment still stands. Please re-read it and make the changes accordingly (add an empty RESOURCES dictionary.","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"13a5172a50075293233d33dd77a43045ee5410ab","unresolved":false,"context_lines":[{"line_number":142,"context_line":"  file: networking_odl/\u003cdriver-name\u003e/\u003cdriver-file\u003e.py"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"  class XXXXDriver(ResourceBaseDriver, XXXXDriverBase):"},{"line_number":145,"context_line":"      # Can live outside class"},{"line_number":146,"context_line":"      RESOURCES \u003d {"},{"line_number":147,"context_line":"          odl_const.XXXX: odl_const.XXXY,"},{"line_number":148,"context_line":"          odl_const.XXXY: odl_const.XXYY"},{"line_number":149,"context_line":"      }"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"      def __init__(self, *args, **kwargs):"},{"line_number":152,"context_line":"          super(XXXXDriver, self)(plugin_type, *args, **kwargs)"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_09371401","line":149,"range":{"start_line":145,"start_character":6,"end_line":149,"end_character":7},"updated":"2017-11-29 07:27:13.000000000","message":"Not sure what\u0027s this suppose to explain in the docs..","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0c33e0d235471a432f21ff9652cd940887d2fd4b","unresolved":false,"context_lines":[{"line_number":142,"context_line":"  file: networking_odl/\u003cdriver-name\u003e/\u003cdriver-file\u003e.py"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"  class XXXXDriver(ResourceBaseDriver, XXXXDriverBase):"},{"line_number":145,"context_line":"      # Can live outside class"},{"line_number":146,"context_line":"      RESOURCES \u003d {"},{"line_number":147,"context_line":"          odl_const.XXXX: odl_const.XXXY,"},{"line_number":148,"context_line":"          odl_const.XXXY: odl_const.XXYY"},{"line_number":149,"context_line":"      }"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"      def __init__(self, *args, **kwargs):"},{"line_number":152,"context_line":"          super(XXXXDriver, self)(plugin_type, *args, **kwargs)"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_adea78a9","line":149,"range":{"start_line":145,"start_character":6,"end_line":149,"end_character":7},"in_reply_to":"ff82abbf_09371401","updated":"2017-12-01 03:34:49.000000000","message":"The purpose is to tell the reader that all the resources this driver is supporting has to be defined at this location. It is expected by the base class. L123 expects.","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"13a5172a50075293233d33dd77a43045ee5410ab","unresolved":false,"context_lines":[{"line_number":152,"context_line":"          super(XXXXDriver, self)(plugin_type, *args, **kwargs)"},{"line_number":153,"context_line":"          # driver specific things"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"      def get_resources_for_full_sync(self, resource_type):"},{"line_number":156,"context_line":"          # returns resource for full sync"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"},{"line_number":159,"context_line":"          # returns resource for recovery"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_292d38a7","line":159,"range":{"start_line":155,"start_character":5,"end_line":159,"end_character":41},"updated":"2017-11-29 07:27:13.000000000","message":"Probably should mention these are optional to implement, in order to provide a different fetching mechanism.","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0c33e0d235471a432f21ff9652cd940887d2fd4b","unresolved":false,"context_lines":[{"line_number":152,"context_line":"          super(XXXXDriver, self)(plugin_type, *args, **kwargs)"},{"line_number":153,"context_line":"          # driver specific things"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"      def get_resources_for_full_sync(self, resource_type):"},{"line_number":156,"context_line":"          # returns resource for full sync"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"      def get_resource_for_recovery(self, resource_type, resource_id):"},{"line_number":159,"context_line":"          # returns resource for recovery"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff82abbf_ad035873","line":159,"range":{"start_line":155,"start_character":5,"end_line":159,"end_character":41},"in_reply_to":"ff82abbf_292d38a7","updated":"2017-12-01 03:34:49.000000000","message":"Done","commit_id":"f4a38ae65442dcc2c71a85cba043f68980f78f7b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"1504feb734f8916c95f3c513c2bf3b0c1621f39f","unresolved":false,"context_lines":[{"line_number":139,"context_line":"  file: networking_odl/\u003cdriver-name\u003e/\u003cdriver-file\u003e.py"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"  class XXXXDriver(ResourceBaseDriver, XXXXDriverBase):"},{"line_number":142,"context_line":"      # Can live outside class"},{"line_number":143,"context_line":"      RESOURCES \u003d {"},{"line_number":144,"context_line":"          odl_const.XXXX: odl_const.XXXY,"},{"line_number":145,"context_line":"          odl_const.XXXY: odl_const.XXYY"}],"source_content_type":"text/x-rst","patch_set":7,"id":"df87a7cf_d2aaee83","line":142,"range":{"start_line":142,"start_character":6,"end_line":142,"end_character":30},"updated":"2017-12-04 08:55:32.000000000","message":"What is this supposed to say here?","commit_id":"4bde9879a266d2c1be82be8d4e2e1ab66288d21b"}]}
