Review details endpoint
@mattrighetti asked me to give a second review of the details endpoint and on closer look I found a few issues:
I would remove all the joins. I think maybe to provide the network weights we could either query the latest network_status_entry_weights at the time of the server status (https://gitlab.torproject.org/tpo/network-health/metrics/metrics-sql-tables/-/blob/main/network_status_tables.sql?ref_type=heads#L70) or make a query to VM proxied, up to the server status time (we have both the weight and the fraction calculated from consensuses https://gitlab.torproject.org/tpo/network-health/metrics/descriptorParser/-/blob/main/METRICS.md?ref_type=heads#from-consensuses).
For both relay and bridge what do we need from the server descriptor? I could add that directly into the status so we don't have to make a join query.