You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/05/01 21:35:19 UTC

[GitHub] [trafficcontrol] rawlinp opened a new pull request #3538: Minor versioning prototype

rawlinp opened a new pull request #3538: Minor versioning prototype
URL: https://github.com/apache/trafficcontrol/pull/3538
 
 
   This is a draft PR to illustrate my idea for handling TO API minor versioning.
   
   Essentially, requests that come in at a previous minor version will be "upgraded" into requests of the next latest versions until they are finally handled by one "main" handler that always handles requests at the latest minor version. The result is then passed back down the chain until the result is translated back into the minor version that the client originally requested.
   
   For POST requests, the "upgrade" process is simply just taking the specific minor version, embedding it into the next latest struct version, and passing it up. For PUT requests, the "upgrade" process would include reading the existing fields for the next latest minor version from the DB and passing it up to the next handler.
   
   What we end up with is a chain of "sub-handlers" that simply upgrade requests into the next latest minor version until the request is finally handled at the latest minor version -- the "main" handler -- then downgrade that result until the originally requested minor version is returned.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services