GNOME Bugzilla – Bug 722421
Make PersonaStore.trust_level abstract
Last modified: 2018-09-21 16:08:16 UTC
Setting the trust_level using folks_persona_store_set_trust_level of an EDS persona store does not work. Looking on the EDS persona store source code I found that this class overwrite the trust_level on the function "_update_trust_level" based on some of the store capabilities.
Created attachment 266551 [details] [review] fix it using auto_trust_level property This is a basic fix for it which uses a new EDS Persona store property "auto_trust_level" where you can disable/enable the auto trust level.
As discussed on IRC, this is the wrong approach to prevent folks to link things: anti-links should be used instead. However, the trust-level API isn’t great, and the documentation didn’t mention that the setter method is basically internal API, and shouldn’t be called by clients. I’m appropriating this bug and turning it into a request to make the PersonaStore.trust_level property abstract when we next break API. Then backends can implement it how they like, and there will be no public setter.
Created attachment 266586 [details] [review] core: Document that PersonaStore.trust_level must not be set by clients It’s effectively internal API, and is only exposed publicly due to me foolishly not making it abstract when first implementing it.
Pushed some documentation improvements, but the API rework still needs to be done (when we next break API). Attachment 266586 [details] pushed as c505430 - core: Document that PersonaStore.trust_level must not be set by clients
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/folks/issues/88.