You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(api, ssh): implement Bulk Writes in DeviceSetOnline
The `DeviceClaims` now includes a `Tenant` attribute. The `AuthDevice`
will utilize these attribute to populate the `X-Tenant-ID`. Furthermore,
the `/ssh/connection` endpoint has been updated to recognize and utilize
these headers for identifying the device's tenant.
Additionaly `DeviceSetOnline` method will now use bulk writes instead of
single operations. This change should improve performance and reduce
MongoDB I/O needs since the method is exclusively used in the
`api:heartbeat` queue, which processes a list of devices to set as
online. As this method's sole purpose is to set devices as online, it
will no longer accept a boolean parameter to set a device as offline.
Instead, a new method called `DeviceSetOffline` has been added.
0 commit comments