huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
237 stars 79 forks source link

Move Sync login logic only if LastChanges has items #6873

Closed RafaPolit closed 3 months ago

RafaPolit commented 3 months ago

Currently, Sync process logs in once per cycle, independent of finding changes or not.

Ideally, this should be more evolved and actually only log-in if the changes affect the child instance (and could even keep the cookie to avoid new login), but, for the time being, we can move this logic further down the stream to avoid logging in more than once per second.

txau commented 3 months ago

related: https://github.com/huridocs/Internal-Issues/issues/118 https://github.com/huridocs/uwazi/issues/6158