Skip to main content

Module migrate_profile_keys

Module migrate_profile_keys 

Source

Re-exportsยง

use std::sync::Arc; ๐Ÿ”’
use ruma::UserId; ๐Ÿ”’
use ruma::profile::ProfileFieldName; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::info; ๐Ÿ”’
use tuwunel_core::info; ๐Ÿ”’
use tuwunel_core::result::NotFound; ๐Ÿ”’
use tuwunel_core::utils::ReadyExt; ๐Ÿ”’
use tuwunel_core::utils::TryReadyExt; ๐Ÿ”’
use tuwunel_core::utils::stream::TryBroadbandExt; ๐Ÿ”’
use tuwunel_core::utils::stream::TryExpect; ๐Ÿ”’
use tuwunel_core::warn; ๐Ÿ”’
use tuwunel_database::Json; ๐Ÿ”’
use tuwunel_database::Map; ๐Ÿ”’
use super::tally::Outcome; ๐Ÿ”’
use super::tally::Tally; ๐Ÿ”’
use crate::Services; ๐Ÿ”’
use crate::integrity::useridprofilekey_value::Finding; ๐Ÿ”’
use crate::integrity::useridprofilekey_value::classify; ๐Ÿ”’
use crate::integrity::useridprofilekey_value::scan; ๐Ÿ”’

Functionsยง

migrate_profile_keys ๐Ÿ”’
Relocates the per-user displayname and avatar_url out of their dedicated columns into the unified useridprofilekey_value store keyed by MSC4133 field name, where the profile service now reads them.
repair ๐Ÿ”’
Re-encodes or removes the value a finding names, as it stands now.