Closed michaelneale closed 1 month ago
Attention: Patch coverage is 93.33333%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 73.72%. Comparing base (
fb1f9aa
) to head (8bff058
).
i like this approach
ok, let me tighten it up to just have add - as per @jiyoontbd comment as that keeps it focussed, I like it.
@jiyoontbd PTAL again
hey @michaelneale !
ok, so after some discussion, i'd like to propose that we close this PR for now, and address the issue #310 once we hold some design discussions on how exactly one performs a DID update
operation.
the reason being is that even if we have addService()
implemented, this method would become tech debt quickly because it isn't considering how each did method handles updates.
the core issue here is that we're only mutating our own BearerDid
abstraction by using this method. however, adding service (or updating any part of a did) should have downstream actions that we need to consider for each did method (did:dht handles updates differently than did:jwk, for example)
i've written about this a bit more as an issue in web5-spec. let me know if you have any questions! https://github.com/TBD54566975/web5-spec/issues/157
makes sense to me @jiyoontbd! - will close this (maybe keep the branch around temporarily just in case).
For bug https://github.com/TBD54566975/web5-kt/issues/310
an alternative take on https://github.com/TBD54566975/web5-kt/pull/311 which adds a service more directly without taking an update object.