SmartBear / intellij-swaggerhub-release

3 stars 0 forks source link

How Does the Plugin Deal with Concurrent Updates? #7

Open sehand opened 3 years ago

sehand commented 3 years ago

I have a couple of questions related to concurrent updates that aren't issues, but more just looking for clarification.

  1. How does the plug-in work with multiple people making changes? "When a 'Sync to SwaggerHUB' is performed, is the entire local file copied up to SwaggerHUB or is there some intelligent diff/merge done that works seamlessly if there are no conflicts with other changes being done either in SwaggerHUB or another person syncing their copy via the plugin.
  2. How is the above impacted if we are using gitlab/github integrated with SwaggerHUB?
  3. How does the plugin work, in general, if we are using gitlab/github (we aren't currently, so I can't play around with it)?
emmett008 commented 3 years ago
  1. The entire file is saved to SwaggerHub when syncing.
  2. & 3. If you have an integration to GitLab/GitHub set up then you may sync from SwaggerHub as normal when required. This should have no effect on the way your integration works
oborovyk commented 3 years ago

Would be nice to have an option to enable automatic push to git on save (if integration is enabled). The current implementation provides a space for change drift and no rollback functionality in the scope of one API version. With "autosync" it would be possible to recover from concurrent overwrites

emmett008 commented 3 years ago

@oborovyk thanks for feedback, can definitely see how that would be useful. Will add it to our list of enhancements