Upgrade Dependencies + Clean up Groups #350
No reviewers
Labels
No Label
applications
BLOCKED
bug
design
duplicate
enhancement
fixed?
funding-needed
help wanted
infrastructure
invalid
payments
qubes
question
ready-for-implementation
refactor
spam
tapir-server
testing
tor
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch#350
Loading…
Reference in New Issue
No description provided.
Delete Branch "upgrade"
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?
Upgrade Dependencies + Disable Inline Invites pending UI Designto Upgrade Dependencies + Clean up GroupsDrone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch/77
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch/79
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/81
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/83
@ -12,9 +13,11 @@ import (
// may fill that usecase better
func WaitGetPeer(app app2.Application, name string) peer.CwtchPeer {
this function... seems.. not great, and is only used by app/servermon? do we just want to remove that?
See below for my comment on App/Name and Profile.
@ -467,4 +434,3 @@
group := cp.Profile.GetGroup(groupid)
defer cp.mutex.Unlock()
if group == nil {
return errors.New("invalid group id")
need an unlock before return
There is an unlock 2 lines down...
not inside the if group == nil { return
that error would leave it locked no?
Ah good catch!
@ -617,1 +576,4 @@
}
if key == attr.GetLocalScope("name") {
return cp.Profile.Name, true
wait, why this? why not using the attribute map like all others?
do you have a paired override for setAttribute? which also we prolly shouldn't do? I thougt we were just gonna delete Profile.Name
this code will use default to set attribute first..this is a fallback for the case where we create a profile (which is prior to InitForEvents) and then immediately try to look it up (like in the integration test)...we don't yet have any way to alert the storage engine to save name as an attribute.
At some point we should reconcile this - probably by removing Name from profile, and any reference in App(Client/Server) - but that is a bigger change that touches a lot more of the integration test and app so I felt this was a good compromise that removes the troublesome APIs while preserving the speciality of Name until we have the time to redo Application to not rely on it.
ah i see, I missed its a fall through if we didnt get the attribute which we check first!
yeah the UI has all that code around name getting and falling back to onion but yeah putting it here is prolly wrong. ok thats fine
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/85
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/87