Menu

#4 Implement API by Bugzilla version

open
nobody
None
5
2018-02-02
2018-01-21
Tsahi Asher
No

Some Bugzilla APIs have changed between versions, so we need to know which version of bugzilla we are working with. Either accept the version in the Server constructor, or make an API call to version once, to get the version. Properties like Bug.Priority34 shouldn't happen. If a call is made to an API which is not supported in the current Bugzilla version, a NotSupportedException should be thrown.

Discussion

  • Tsahi Asher

    Tsahi Asher - 2018-01-29

    also, the current XML-RPC API we use is deprecated, and is replaced with a new REST API, which is itself expected to be replaced with a new set of REST API (aka V2).

    So we need to be able to easily support all these APIs, with a singel external interface. I'm thinking in the direction of dependency injection here.

     
  • Tsahi Asher

    Tsahi Asher - 2018-02-02

    better yet, a Factory pattern. the factory will accept the version, and/or some other parameter, and return an implementation of some interface which will represent all implementations. not sure about how it will look like though.

     

Log in to post a comment.

MongoDB Logo MongoDB