Closed jmalloc closed 7 years ago
Perhaps Revision.Clear(ctx, ns)
as far as a method name.
If you go with (a) I can't see this being used a lot. The use case we had in mind was clearing authentication data for long-running websocket connections, which is a case where we'd probably always want to use frozen attributes for (at least) IP addresses.
It would be nice not to be forced into a trade-off.
In that particular case I would expect those IP addresses to be in a different namespace (rinq.httpd
), as they are not auth related.
Yeah, I guess that works.
This is a session operation that sets all attributes in a given namespace to the empty string. This is an "update-like" operation insofar as revision-based optimistic locking must be applied as it is for
Update()
orDestroy()
.We will have to make a decision about how to handle frozen attributes, some options are:
My inclination is quite strongly towards (a), as it honours the existing semantics of
Update()
./cc @ezzatron