osctrl icon indicating copy to clipboard operation
osctrl copied to clipboard

Inconsistency for active nodes in API & UI

Open peterbogdan opened this issue 1 year ago • 0 comments

Hello

I see there are some inconsistency in Active nodes when getting them using the API:

{api}/api/v1//nodes/{env}/active/

Looking at the code it is querying for the field updated_at: https://github.com/jmpsec/osctrl/blob/main/nodes/nodes.go#L241

Maybe we can use the helper function from here to have better results: https://github.com/jmpsec/osctrl/blob/main/nodes/utils.go#L9

peterbogdan avatar Aug 07 '24 12:08 peterbogdan