Re: [Mailman-Developers] Handling additions to REST API in client side

2017-12-29 Thread Barry Warsaw
On Dec 28, 2017, at 19:50, Abhilash Raj wrote: > PATCH won't fail when running partial updates, but it won't silently drop the > attributes that it doesn't support. So from client side, there is no real way > to > understand when to include that attribute which was added in a later version. Yes

Re: [Mailman-Developers] Handling additions to REST API in client side

2017-12-29 Thread Stephen J. Turnbull
Simon Hanna writes: > Up until now I was under the impression that the clients > (Postorius/Hyperkitty) always require the latest version of core. We don't require that the client be Postorius or Hyperkitty though. While in one sense we're not responsible for what third party clients do *at al

Re: [Mailman-Developers] Handling additions to REST API in client side

2017-12-29 Thread Simon Hanna
On 12/28/2017 06:19 PM, Mark Sapiro wrote: On 12/28/2017 08:33 AM, Simon Hanna wrote: * New keys (and values) can be added anytime This would make things like exposing new stuff easy. Clients that don't know about a field can just ignore it. But that doesn't address the original issue which

Re: [Mailman-Developers] Handling additions to REST API in client side

2017-12-28 Thread Stephen J. Turnbull
Abhilash Raj writes: > How bad do you think would it be for Core to silently drop extra > attributes and only use the ones that it needs? I have no idea what the semantics of that would be. You'd need to come up with rules about semantics of adding attributes that guarantee this works as expec

Re: [Mailman-Developers] Handling additions to REST API in client side

2017-12-28 Thread Mark Sapiro
On 12/28/2017 04:50 PM, Abhilash Raj wrote: > > How bad do you think would it be for Core to silently drop extra attributes > and > only use the ones that it needs? The problem with that approach is it leads to "I set it in Postorius but it didn't take effect" kinds of issues. -- Mark Sapiro

Re: [Mailman-Developers] Handling additions to REST API in client side

2017-12-28 Thread Abhilash Raj
On Thu, 2017-12-28 at 15:25 -0500, Barry Warsaw wrote: > Abhilash Raj wrote: > > > Core's REST API is versioned and any change that break backwards- > > compatibility > > cause the version to bump so that clients can take care of that. > > The 3.1 version bump happened because there was no backwa

Re: [Mailman-Developers] Handling additions to REST API in client side

2017-12-28 Thread Barry Warsaw
Abhilash Raj wrote: > Core's REST API is versioned and any change that break backwards-compatibility > cause the version to bump so that clients can take care of that. The 3.1 version bump happened because there was no backward compatible way to handle the UUID as int vs hex string change require

Re: [Mailman-Developers] Handling additions to REST API in client side

2017-12-28 Thread Mark Sapiro
On 12/28/2017 08:33 AM, Simon Hanna wrote: > * New keys (and values) can be added anytime > > This would make things like exposing new stuff easy. Clients that don't > know about a field can just ignore it. But that doesn't address the original issue which is that when a new key/value is added

Re: [Mailman-Developers] Handling additions to REST API in client side

2017-12-28 Thread Simon Hanna
On 12/27/2017 09:49 AM, Abhilash Raj wrote: Hi All, Core's REST API is versioned and any change that break backwards-compatibility cause the version to bump so that clients can take care of that. However, one question that I have been thinking about recently is how to handle additions to REST A