The UserAPI server has no concept of a "current manifest generation", so it should not be recording the corresponding metric. Authoritative here is, well, the Authority, which is where I'm moving the gauge.
The other reason why we're calling GetManifests in a SetManifest call is that we need to get hold of the CA instance. This is going to change with a future PR for RFC004, when the CA will be returned by SetManifest directly. This is also when I'm going to add tests for Authority.
The UserAPI server has no concept of a "current manifest generation", so it should not be recording the corresponding metric. Authoritative here is, well, the
Authority
, which is where I'm moving the gauge.The other reason why we're calling
GetManifests
in aSetManifest
call is that we need to get hold of the CA instance. This is going to change with a future PR for RFC004, when the CA will be returned bySetManifest
directly. This is also when I'm going to add tests forAuthority
.