Add Signed Fetch Statistics #312
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#312
Loading…
Reference in a new issue
No description provided.
Delete branch "luna/akkoma:http-signature-statistics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #304.
Notes:
has_request_signatures: true -> false
state transition: I think that is a higher level thing (resetting instance state on new instance actor key) which is separate from the changes relevant to this one.in the main this looks good!
a few little bits to touch up, but otherwise seems ok to me - the error message is the main thing i'm concerned with
@ -44,2 +44,4 @@
end
end
def set_request_signatures(url_or_host), do: Instance.set_request_signatures(url_or_host)
you could probably use a
defdelegate set_request_signatures(url_or_host), to: Instance
here@ -81,0 +104,4 @@
:noop
any ->
Logger.warn("expected request signature cache to run, got #{any}")
this is a nitpick, but this error message is a bit hard to parse
perhaps you want something like
expected request signature cache to return a boolean, instead got ...
?@ -124,0 +127,4 @@
host = "domain.com"
{:ok, instance} = Instances.set_request_signatures(host)
assert instance.has_request_signatures
maybe you want to check that the expected value is cached here as well
works for me, thanks a lot!