BlueGit

ict rusty-teams

fix(sidebar): match the team layout to Graph team ids so teamsOrder applies

- CSA team layout keyed by thread id, Graph teams by group id: the sidebar join never matched, so teams fell back to name order and hidden teams showed
- read teamSiteInformation.groupId from CSA, store the layout by group id
- map teamsOrder thread ids to group ids before sorting
- fixture test with masked real CSA + teamsOrder payloads against the order Teams web shows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-10-17 · 6 weeks ago

Hash
2142bda3e0e38d69aa47df9c6e2cf4b49368d998
Parent
3a26cce4
4 files changed +387 −3
crates/chatsvc/src/pins/mod.rs +1 −1
@@ -11,7 +11,7 @@ use session::Session;
11 11 pub use folders::{Folder, FolderKind, Folders};
12 12 pub use pinbar::PinnedMessage;
13 13 pub use state::{PinnedChannels, PinnedChats};
14 pub use teams::{ChannelLayout, ChannelTab, TeamLayout};
14 pub use teams::{ChannelLayout, ChannelTab, TeamLayout, parse_team_layout};
15 15 pub use transport::{CSA_RESOURCE, CSA_SCOPE, CsaTransport, SessionTransport};
16 16
17 17 pub const DEFAULT_REGION: &str = "emea";
@@ -11,7 +11,7 @@ use session::Session;
11pub use folders::{Folder, FolderKind, Folders};
11pub use folders::{Folder, FolderKind, Folders};
12pub use pinbar::PinnedMessage;
12pub use pinbar::PinnedMessage;
13pub use state::{PinnedChannels, PinnedChats};
13pub use state::{PinnedChannels, PinnedChats};
14pub use teams::{ChannelLayout, ChannelTab, TeamLayout};
14pub use teams::{ChannelLayout, ChannelTab, TeamLayout, parse_team_layout};
15pub use transport::{CSA_RESOURCE, CSA_SCOPE, CsaTransport, SessionTransport};
15pub use transport::{CSA_RESOURCE, CSA_SCOPE, CsaTransport, SessionTransport};
16
16
17pub const DEFAULT_REGION: &str = "emea";
17pub const DEFAULT_REGION: &str = "emea";
crates/chatsvc/src/pins/teams.rs +17 −0
@@ -33,6 +33,7 @@ pub struct ChannelLayout {
33 33 #[derive(Debug, Clone, PartialEq, Eq)]
34 34 pub struct TeamLayout {
35 35 pub team_id: String,
36 pub group_id: Option<String>,
36 37 pub hidden: bool,
37 38 pub channels: Vec<ChannelLayout>,
38 39 }
@@ -142,6 +143,11 @@ fn parse_team(team: &Value) -> Option<TeamLayout> {
142 143 .unwrap_or_default();
143 144 Some(TeamLayout {
144 145 team_id: team.get("id")?.as_str()?.to_owned(),
146 group_id: team
147 .get("teamSiteInformation")
148 .and_then(|site| site.get("groupId"))
149 .and_then(Value::as_str)
150 .map(str::to_owned),
145 151 hidden: flag(team, "isFavorite") == Some(false),
146 152 channels,
147 153 })
@@ -172,6 +178,17 @@ mod tests {
172 178 assert!(!layout[2].channels[0].hidden);
173 179 }
174 180
181 #[test]
182 fn reads_the_group_id_the_graph_team_id_uses() {
183 let body = json!({"teams": [
184 {"id": "19:a@thread.skype", "teamSiteInformation": {"groupId": "group-a"}, "channels": []},
185 {"id": "19:b@thread.tacv2", "channels": []}
186 ]});
187 let layout = parse_team_layout(&body).unwrap();
188 assert_eq!(layout[0].group_id.as_deref(), Some("group-a"));
189 assert_eq!(layout[1].group_id, None);
190 }
191
175 192 #[test]
176 193 fn keeps_the_service_order_and_reads_hidden_flags() {
177 194 let body = json!({"teams": [
@@ -33,6 +33,7 @@ pub struct ChannelLayout {
33#[derive(Debug, Clone, PartialEq, Eq)]
33#[derive(Debug, Clone, PartialEq, Eq)]
34pub struct TeamLayout {
34pub struct TeamLayout {
35 pub team_id: String,
35 pub team_id: String,
36 pub group_id: Option<String>,
36 pub hidden: bool,
37 pub hidden: bool,
37 pub channels: Vec<ChannelLayout>,
38 pub channels: Vec<ChannelLayout>,
38}
39}
@@ -142,6 +143,11 @@ fn parse_team(team: &Value) -> Option<TeamLayout> {
142 .unwrap_or_default();
143 .unwrap_or_default();
143 Some(TeamLayout {
144 Some(TeamLayout {
144 team_id: team.get("id")?.as_str()?.to_owned(),
145 team_id: team.get("id")?.as_str()?.to_owned(),
146 group_id: team
147 .get("teamSiteInformation")
148 .and_then(|site| site.get("groupId"))
149 .and_then(Value::as_str)
150 .map(str::to_owned),
145 hidden: flag(team, "isFavorite") == Some(false),
151 hidden: flag(team, "isFavorite") == Some(false),
146 channels,
152 channels,
147 })
153 })
@@ -172,6 +178,17 @@ mod tests {
172 assert!(!layout[2].channels[0].hidden);
178 assert!(!layout[2].channels[0].hidden);
173 }
179 }
174
180
181 #[test]
182 fn reads_the_group_id_the_graph_team_id_uses() {
183 let body = json!({"teams": [
184 {"id": "19:a@thread.skype", "teamSiteInformation": {"groupId": "group-a"}, "channels": []},
185 {"id": "19:b@thread.tacv2", "channels": []}
186 ]});
187 let layout = parse_team_layout(&body).unwrap();
188 assert_eq!(layout[0].group_id.as_deref(), Some("group-a"));
189 assert_eq!(layout[1].group_id, None);
190 }
191
175 #[test]
192 #[test]
176 fn keeps_the_service_order_and_reads_hidden_flags() {
193 fn keeps_the_service_order_and_reads_hidden_flags() {
177 let body = json!({"teams": [
194 let body = json!({"teams": [
crates/core/src/folders.rs +84 −2
@@ -96,6 +96,7 @@ pub struct ChatsvcFolderSource {
96 96 channel_settings: ChannelSettings,
97 97 properties: Mutex<Option<Value>>,
98 98 skin_tone: Mutex<Option<u8>>,
99 group_ids: Mutex<HashMap<String, String>>,
99 100 }
100 101
101 102 impl ChatsvcFolderSource {
@@ -106,6 +107,7 @@ impl ChatsvcFolderSource {
106 107 channel_settings: ChannelSettings::new(session),
107 108 properties: Mutex::new(None),
108 109 skin_tone: Mutex::new(None),
110 group_ids: Mutex::new(HashMap::new()),
109 111 }
110 112 }
111 113 }
@@ -122,6 +124,7 @@ impl FolderSource for ChatsvcFolderSource {
122 124 fn team_layout(&self) -> BoxFuture<'_, Result<Vec<TeamLayoutRecord>>> {
123 125 Box::pin(async {
124 126 let layout = self.pins.team_layout().await?;
127 *self.group_ids.lock().unwrap() = group_ids_by_thread(&layout);
125 128 let unknown: Vec<String> = layout
126 129 .iter()
127 130 .flat_map(|team| &team.channels)
@@ -168,7 +171,16 @@ impl FolderSource for ChatsvcFolderSource {
168 171 Some(properties) => properties,
169 172 None => self.settings.properties().await?,
170 173 };
171 Ok(parse_teams_order(&properties))
174 let known = self.group_ids.lock().unwrap().clone();
175 let group_ids = if known.is_empty() {
176 group_ids_by_thread(&self.pins.team_layout().await?)
177 } else {
178 known
179 };
180 Ok(order_by_group_id(
181 parse_teams_order(&properties),
182 &group_ids,
183 ))
172 184 })
173 185 }
174 186
@@ -262,6 +274,26 @@ fn stored_team_order(teams: &[store::SidebarTeam]) -> Vec<(String, i64)> {
262 274 .collect()
263 275 }
264 276
277 fn group_ids_by_thread(layout: &[chatsvc::TeamLayout]) -> HashMap<String, String> {
278 layout
279 .iter()
280 .filter_map(|team| Some((team.team_id.clone(), team.group_id.clone()?)))
281 .collect()
282 }
283
284 fn order_by_group_id(
285 order: Vec<(String, i64)>,
286 group_ids: &HashMap<String, String>,
287 ) -> Vec<(String, i64)> {
288 order
289 .into_iter()
290 .map(|(team_id, position)| match group_ids.get(&team_id) {
291 Some(group_id) => (group_id.clone(), position),
292 None => (team_id, position),
293 })
294 .collect()
295 }
296
265 297 fn sort_teams_by_order(teams: &mut [TeamLayoutRecord], order: &[(String, i64)]) {
266 298 let positions: HashMap<&str, i64> = order
267 299 .iter()
@@ -318,7 +350,7 @@ fn layout_record(
318 350 fallback: &HashMap<String, ChannelNotifications>,
319 351 ) -> TeamLayoutRecord {
320 352 TeamLayoutRecord {
321 team_id: team.team_id,
353 team_id: team.group_id.unwrap_or(team.team_id),
322 354 hidden: team.hidden,
323 355 channels: team
324 356 .channels
@@ -595,6 +627,56 @@ mod tests {
595 627 assert_eq!(team_ids(&teams), ["a", "b", "x", "y", "z"]);
596 628 }
597 629
630 #[test]
631 fn real_payloads_give_the_team_order_teams_web_shows() {
632 let fixture: Value =
633 serde_json::from_str(include_str!("../tests/fixtures/team_order.json")).unwrap();
634 let layout = chatsvc::pins::parse_team_layout(&fixture["csaTeams"]).unwrap();
635 let group_ids = group_ids_by_thread(&layout);
636 let order = order_by_group_id(parse_teams_order(&fixture["userProperties"]), &group_ids);
637 let mut records: Vec<TeamLayoutRecord> = layout
638 .into_iter()
639 .map(|team| layout_record(team, &HashMap::new()))
640 .collect();
641 sort_teams_by_order(&mut records, &order);
642 let store = Store::open_in_memory().unwrap();
643 let names: HashMap<String, String> = fixture["csaTeams"]["teams"]
644 .as_array()
645 .unwrap()
646 .iter()
647 .map(|team| {
648 let group_id = team["teamSiteInformation"]["groupId"].as_str().unwrap();
649 let name = team["displayName"].as_str().unwrap();
650 (group_id.to_owned(), name.to_owned())
651 })
652 .collect();
653 let graph_teams: Vec<store::TeamRecord> = names
654 .iter()
655 .map(|(group_id, name)| store::TeamRecord {
656 id: group_id.clone(),
657 name: name.clone(),
658 })
659 .collect();
660 store.upsert_teams(&graph_teams).unwrap();
661 store.replace_team_layout(&records).unwrap();
662
663 let shown: Vec<String> = store
664 .sidebar()
665 .unwrap()
666 .teams
667 .into_iter()
668 .filter(|team| !team.hidden)
669 .map(|team| team.team.id)
670 .collect();
671 let expected: Vec<String> = fixture["teamsWebShownTeams"]
672 .as_array()
673 .unwrap()
674 .iter()
675 .map(|team| team["groupId"].as_str().unwrap().to_owned())
676 .collect();
677 assert_eq!(shown, expected);
678 }
679
598 680 #[test]
599 681 fn an_empty_order_keeps_the_server_order() {
600 682 let mut teams = vec![team("c"), team("a"), team("b")];
@@ -96,6 +96,7 @@ pub struct ChatsvcFolderSource {
96 channel_settings: ChannelSettings,
96 channel_settings: ChannelSettings,
97 properties: Mutex<Option<Value>>,
97 properties: Mutex<Option<Value>>,
98 skin_tone: Mutex<Option<u8>>,
98 skin_tone: Mutex<Option<u8>>,
99 group_ids: Mutex<HashMap<String, String>>,
99}
100}
100
101
101impl ChatsvcFolderSource {
102impl ChatsvcFolderSource {
@@ -106,6 +107,7 @@ impl ChatsvcFolderSource {
106 channel_settings: ChannelSettings::new(session),
107 channel_settings: ChannelSettings::new(session),
107 properties: Mutex::new(None),
108 properties: Mutex::new(None),
108 skin_tone: Mutex::new(None),
109 skin_tone: Mutex::new(None),
110 group_ids: Mutex::new(HashMap::new()),
109 }
111 }
110 }
112 }
111}
113}
@@ -122,6 +124,7 @@ impl FolderSource for ChatsvcFolderSource {
122 fn team_layout(&self) -> BoxFuture<'_, Result<Vec<TeamLayoutRecord>>> {
124 fn team_layout(&self) -> BoxFuture<'_, Result<Vec<TeamLayoutRecord>>> {
123 Box::pin(async {
125 Box::pin(async {
124 let layout = self.pins.team_layout().await?;
126 let layout = self.pins.team_layout().await?;
127 *self.group_ids.lock().unwrap() = group_ids_by_thread(&layout);
125 let unknown: Vec<String> = layout
128 let unknown: Vec<String> = layout
126 .iter()
129 .iter()
127 .flat_map(|team| &team.channels)
130 .flat_map(|team| &team.channels)
@@ -168,7 +171,16 @@ impl FolderSource for ChatsvcFolderSource {
168 Some(properties) => properties,
171 Some(properties) => properties,
169 None => self.settings.properties().await?,
172 None => self.settings.properties().await?,
170 };
173 };
171 Ok(parse_teams_order(&properties))
174 let known = self.group_ids.lock().unwrap().clone();
175 let group_ids = if known.is_empty() {
176 group_ids_by_thread(&self.pins.team_layout().await?)
177 } else {
178 known
179 };
180 Ok(order_by_group_id(
181 parse_teams_order(&properties),
182 &group_ids,
183 ))
172 })
184 })
173 }
185 }
174
186
@@ -262,6 +274,26 @@ fn stored_team_order(teams: &[store::SidebarTeam]) -> Vec<(String, i64)> {
262 .collect()
274 .collect()
263}
275}
264
276
277fn group_ids_by_thread(layout: &[chatsvc::TeamLayout]) -> HashMap<String, String> {
278 layout
279 .iter()
280 .filter_map(|team| Some((team.team_id.clone(), team.group_id.clone()?)))
281 .collect()
282}
283
284fn order_by_group_id(
285 order: Vec<(String, i64)>,
286 group_ids: &HashMap<String, String>,
287) -> Vec<(String, i64)> {
288 order
289 .into_iter()
290 .map(|(team_id, position)| match group_ids.get(&team_id) {
291 Some(group_id) => (group_id.clone(), position),
292 None => (team_id, position),
293 })
294 .collect()
295}
296
265fn sort_teams_by_order(teams: &mut [TeamLayoutRecord], order: &[(String, i64)]) {
297fn sort_teams_by_order(teams: &mut [TeamLayoutRecord], order: &[(String, i64)]) {
266 let positions: HashMap<&str, i64> = order
298 let positions: HashMap<&str, i64> = order
267 .iter()
299 .iter()
@@ -318,7 +350,7 @@ fn layout_record(
318 fallback: &HashMap<String, ChannelNotifications>,
350 fallback: &HashMap<String, ChannelNotifications>,
319) -> TeamLayoutRecord {
351) -> TeamLayoutRecord {
320 TeamLayoutRecord {
352 TeamLayoutRecord {
321 team_id: team.team_id,
353 team_id: team.group_id.unwrap_or(team.team_id),
322 hidden: team.hidden,
354 hidden: team.hidden,
323 channels: team
355 channels: team
324 .channels
356 .channels
@@ -595,6 +627,56 @@ mod tests {
595 assert_eq!(team_ids(&teams), ["a", "b", "x", "y", "z"]);
627 assert_eq!(team_ids(&teams), ["a", "b", "x", "y", "z"]);
596 }
628 }
597
629
630 #[test]
631 fn real_payloads_give_the_team_order_teams_web_shows() {
632 let fixture: Value =
633 serde_json::from_str(include_str!("../tests/fixtures/team_order.json")).unwrap();
634 let layout = chatsvc::pins::parse_team_layout(&fixture["csaTeams"]).unwrap();
635 let group_ids = group_ids_by_thread(&layout);
636 let order = order_by_group_id(parse_teams_order(&fixture["userProperties"]), &group_ids);
637 let mut records: Vec<TeamLayoutRecord> = layout
638 .into_iter()
639 .map(|team| layout_record(team, &HashMap::new()))
640 .collect();
641 sort_teams_by_order(&mut records, &order);
642 let store = Store::open_in_memory().unwrap();
643 let names: HashMap<String, String> = fixture["csaTeams"]["teams"]
644 .as_array()
645 .unwrap()
646 .iter()
647 .map(|team| {
648 let group_id = team["teamSiteInformation"]["groupId"].as_str().unwrap();
649 let name = team["displayName"].as_str().unwrap();
650 (group_id.to_owned(), name.to_owned())
651 })
652 .collect();
653 let graph_teams: Vec<store::TeamRecord> = names
654 .iter()
655 .map(|(group_id, name)| store::TeamRecord {
656 id: group_id.clone(),
657 name: name.clone(),
658 })
659 .collect();
660 store.upsert_teams(&graph_teams).unwrap();
661 store.replace_team_layout(&records).unwrap();
662
663 let shown: Vec<String> = store
664 .sidebar()
665 .unwrap()
666 .teams
667 .into_iter()
668 .filter(|team| !team.hidden)
669 .map(|team| team.team.id)
670 .collect();
671 let expected: Vec<String> = fixture["teamsWebShownTeams"]
672 .as_array()
673 .unwrap()
674 .iter()
675 .map(|team| team["groupId"].as_str().unwrap().to_owned())
676 .collect();
677 assert_eq!(shown, expected);
678 }
679
598 #[test]
680 #[test]
599 fn an_empty_order_keeps_the_server_order() {
681 fn an_empty_order_keeps_the_server_order() {
600 let mut teams = vec![team("c"), team("a"), team("b")];
682 let mut teams = vec![team("c"), team("a"), team("b")];
crates/core/tests/fixtures/team_order.json added +285 −0
@@ -0,0 +1,285 @@
1 {
2 "csaTeams": {
3 "teams": [
4 {
5 "id": "19:dc35d4548a076206775f4c84275fc134@thread.skype",
6 "displayName": "Team 01",
7 "isFavorite": true,
8 "isDeleted": false,
9 "isGeneralChannelFavorite": true,
10 "teamSiteInformation": {
11 "groupId": "030ff571-c3fa-e972-24ae-94728f85de5c"
12 },
13 "channels": [
14 {
15 "id": "19:dc35d4548a076206775f4c84275fc134@thread.skype",
16 "isGeneral": true,
17 "isFavorite": true
18 }
19 ]
20 },
21 {
22 "id": "19:0db84568b64b1740a9aa89a8dfae4ef3@thread.tacv2",
23 "displayName": "Team 02",
24 "isFavorite": true,
25 "isDeleted": false,
26 "isGeneralChannelFavorite": true,
27 "teamSiteInformation": {
28 "groupId": "44f04fc8-9c02-0b1f-cc76-4e2032969633"
29 },
30 "channels": [
31 {
32 "id": "19:0db84568b64b1740a9aa89a8dfae4ef3@thread.tacv2",
33 "isGeneral": true,
34 "isFavorite": true
35 }
36 ]
37 },
38 {
39 "id": "19:75f1eddce9a4745b16a4cc2cf86c9a48@thread.skype",
40 "displayName": "Team 03",
41 "isFavorite": true,
42 "isDeleted": false,
43 "isGeneralChannelFavorite": true,
44 "teamSiteInformation": {
45 "groupId": "8f7e00e3-8b45-a817-006e-c71e71d788a4"
46 },
47 "channels": [
48 {
49 "id": "19:75f1eddce9a4745b16a4cc2cf86c9a48@thread.skype",
50 "isGeneral": true,
51 "isFavorite": true
52 }
53 ]
54 },
55 {
56 "id": "19:f51aaf0926aea7d37b3b1b795531abe0@thread.skype",
57 "displayName": "Team 04",
58 "isFavorite": true,
59 "isDeleted": false,
60 "isGeneralChannelFavorite": true,
61 "teamSiteInformation": {
62 "groupId": "a670b1e5-955b-d48d-b816-142d02ccf8df"
63 },
64 "channels": [
65 {
66 "id": "19:f51aaf0926aea7d37b3b1b795531abe0@thread.skype",
67 "isGeneral": true,
68 "isFavorite": true
69 }
70 ]
71 },
72 {
73 "id": "19:6f8ffb0c7835ab1d83fa476d4962a033@thread.tacv2",
74 "displayName": "Team 05",
75 "isFavorite": true,
76 "isDeleted": false,
77 "isGeneralChannelFavorite": true,
78 "teamSiteInformation": {
79 "groupId": "f733f4ea-b4cd-185d-9f3d-40425275a36d"
80 },
81 "channels": [
82 {
83 "id": "19:6f8ffb0c7835ab1d83fa476d4962a033@thread.tacv2",
84 "isGeneral": true,
85 "isFavorite": true
86 }
87 ]
88 },
89 {
90 "id": "19:de516a22deb12d09ede0f69a57ca4e13@thread.skype",
91 "displayName": "Team 06",
92 "isFavorite": true,
93 "isDeleted": false,
94 "isGeneralChannelFavorite": true,
95 "teamSiteInformation": {
96 "groupId": "6436151b-9bce-b593-8924-62fa1b684318"
97 },
98 "channels": [
99 {
100 "id": "19:de516a22deb12d09ede0f69a57ca4e13@thread.skype",
101 "isGeneral": true,
102 "isFavorite": true
103 }
104 ]
105 },
106 {
107 "id": "19:def2e9f97717cd2fba41ba87555d7c63@thread.tacv2",
108 "displayName": "Team 07",
109 "isFavorite": true,
110 "isDeleted": false,
111 "isGeneralChannelFavorite": true,
112 "teamSiteInformation": {
113 "groupId": "15474fa0-1e6b-099f-aaed-97b4343022bf"
114 },
115 "channels": [
116 {
117 "id": "19:def2e9f97717cd2fba41ba87555d7c63@thread.tacv2",
118 "isGeneral": true,
119 "isFavorite": true
120 }
121 ]
122 },
123 {
124 "id": "19:1daab460cb790063a6ee222674093594@thread.tacv2",
125 "displayName": "Team 08",
126 "isFavorite": true,
127 "isDeleted": false,
128 "isGeneralChannelFavorite": false,
129 "teamSiteInformation": {
130 "groupId": "f8528bec-6107-689e-4786-a1bffaab4b58"
131 },
132 "channels": [
133 {
134 "id": "19:1daab460cb790063a6ee222674093594@thread.tacv2",
135 "isGeneral": true,
136 "isFavorite": true
137 }
138 ]
139 },
140 {
141 "id": "19:04c7499a69cade0bc479267881eed5dc@thread.tacv2",
142 "displayName": "Team 09",
143 "isFavorite": true,
144 "isDeleted": false,
145 "isGeneralChannelFavorite": false,
146 "teamSiteInformation": {
147 "groupId": "c887f3c7-966f-58b8-f7df-66478f478793"
148 },
149 "channels": [
150 {
151 "id": "19:04c7499a69cade0bc479267881eed5dc@thread.tacv2",
152 "isGeneral": true,
153 "isFavorite": true
154 }
155 ]
156 },
157 {
158 "id": "19:55ef6fb187169de1622ed6e42010ea34@thread.skype",
159 "displayName": "Team 10",
160 "isFavorite": false,
161 "isDeleted": false,
162 "isGeneralChannelFavorite": false,
163 "teamSiteInformation": {
164 "groupId": "48c9a895-cf8f-8c24-c9d6-f61e24ac4745"
165 },
166 "channels": [
167 {
168 "id": "19:55ef6fb187169de1622ed6e42010ea34@thread.skype",
169 "isGeneral": true,
170 "isFavorite": true
171 }
172 ]
173 },
174 {
175 "id": "19:0c110f42185bf611d6fe52a34c16ad23@thread.tacv2",
176 "displayName": "Team 11",
177 "isFavorite": false,
178 "isDeleted": false,
179 "isGeneralChannelFavorite": false,
180 "teamSiteInformation": {
181 "groupId": "948db8b9-8c5d-cf13-3125-b117683558db"
182 },
183 "channels": [
184 {
185 "id": "19:0c110f42185bf611d6fe52a34c16ad23@thread.tacv2",
186 "isGeneral": true,
187 "isFavorite": true
188 }
189 ]
190 },
191 {
192 "id": "19:5f51a5550b71412e578f2a1404cafd88@thread.tacv2",
193 "displayName": "Team 12",
194 "isFavorite": false,
195 "isDeleted": false,
196 "isGeneralChannelFavorite": false,
197 "teamSiteInformation": {
198 "groupId": "7c59b24e-6c03-1b54-a992-80600afa7a21"
199 },
200 "channels": [
201 {
202 "id": "19:5f51a5550b71412e578f2a1404cafd88@thread.tacv2",
203 "isGeneral": true,
204 "isFavorite": true
205 }
206 ]
207 },
208 {
209 "id": "19:4cdfbde067825fb660f0a8b2f7c62927@thread.skype",
210 "displayName": "Team 13",
211 "isFavorite": false,
212 "isDeleted": false,
213 "isGeneralChannelFavorite": false,
214 "teamSiteInformation": {
215 "groupId": "856b69f7-7ba6-bf1d-feb3-8de52e1d825d"
216 },
217 "channels": [
218 {
219 "id": "19:4cdfbde067825fb660f0a8b2f7c62927@thread.skype",
220 "isGeneral": true,
221 "isFavorite": true
222 }
223 ]
224 },
225 {
226 "id": "19:ef17a45e03ff71825a45a1fd39643c85@thread.tacv2",
227 "displayName": "Team 14",
228 "isFavorite": false,
229 "isDeleted": false,
230 "isGeneralChannelFavorite": false,
231 "teamSiteInformation": {
232 "groupId": "e3e373e6-4322-2622-fcc0-935dd902dbca"
233 },
234 "channels": [
235 {
236 "id": "19:ef17a45e03ff71825a45a1fd39643c85@thread.tacv2",
237 "isGeneral": true,
238 "isFavorite": true
239 }
240 ]
241 }
242 ]
243 },
244 "userProperties": {
245 "teamsOrder": "[{\"teamId\":\"19:f51aaf0926aea7d37b3b1b795531abe0@thread.skype\",\"order\":0},{\"teamId\":\"19:75f1eddce9a4745b16a4cc2cf86c9a48@thread.skype\",\"order\":1},{\"teamId\":\"19:de516a22deb12d09ede0f69a57ca4e13@thread.skype\",\"order\":2},{\"teamId\":\"19:1daab460cb790063a6ee222674093594@thread.tacv2\",\"order\":3},{\"teamId\":\"19:def2e9f97717cd2fba41ba87555d7c63@thread.tacv2\",\"order\":4},{\"teamId\":\"19:0db84568b64b1740a9aa89a8dfae4ef3@thread.tacv2\",\"order\":5},{\"teamId\":\"19:04c7499a69cade0bc479267881eed5dc@thread.tacv2\",\"order\":6},{\"teamId\":\"19:dc35d4548a076206775f4c84275fc134@thread.skype\",\"order\":7}]"
246 },
247 "teamsWebShownTeams": [
248 {
249 "name": "Team 04",
250 "groupId": "a670b1e5-955b-d48d-b816-142d02ccf8df"
251 },
252 {
253 "name": "Team 03",
254 "groupId": "8f7e00e3-8b45-a817-006e-c71e71d788a4"
255 },
256 {
257 "name": "Team 06",
258 "groupId": "6436151b-9bce-b593-8924-62fa1b684318"
259 },
260 {
261 "name": "Team 08",
262 "groupId": "f8528bec-6107-689e-4786-a1bffaab4b58"
263 },
264 {
265 "name": "Team 07",
266 "groupId": "15474fa0-1e6b-099f-aaed-97b4343022bf"
267 },
268 {
269 "name": "Team 02",
270 "groupId": "44f04fc8-9c02-0b1f-cc76-4e2032969633"
271 },
272 {
273 "name": "Team 09",
274 "groupId": "c887f3c7-966f-58b8-f7df-66478f478793"
275 },
276 {
277 "name": "Team 01",
278 "groupId": "030ff571-c3fa-e972-24ae-94728f85de5c"
279 },
280 {
281 "name": "Team 05",
282 "groupId": "f733f4ea-b4cd-185d-9f3d-40425275a36d"
283 }
284 ]
285 }
@@ -0,0 +1,285 @@
1{
2 "csaTeams": {
3 "teams": [
4 {
5 "id": "19:dc35d4548a076206775f4c84275fc134@thread.skype",
6 "displayName": "Team 01",
7 "isFavorite": true,
8 "isDeleted": false,
9 "isGeneralChannelFavorite": true,
10 "teamSiteInformation": {
11 "groupId": "030ff571-c3fa-e972-24ae-94728f85de5c"
12 },
13 "channels": [
14 {
15 "id": "19:dc35d4548a076206775f4c84275fc134@thread.skype",
16 "isGeneral": true,
17 "isFavorite": true
18 }
19 ]
20 },
21 {
22 "id": "19:0db84568b64b1740a9aa89a8dfae4ef3@thread.tacv2",
23 "displayName": "Team 02",
24 "isFavorite": true,
25 "isDeleted": false,
26 "isGeneralChannelFavorite": true,
27 "teamSiteInformation": {
28 "groupId": "44f04fc8-9c02-0b1f-cc76-4e2032969633"
29 },
30 "channels": [
31 {
32 "id": "19:0db84568b64b1740a9aa89a8dfae4ef3@thread.tacv2",
33 "isGeneral": true,
34 "isFavorite": true
35 }
36 ]
37 },
38 {
39 "id": "19:75f1eddce9a4745b16a4cc2cf86c9a48@thread.skype",
40 "displayName": "Team 03",
41 "isFavorite": true,
42 "isDeleted": false,
43 "isGeneralChannelFavorite": true,
44 "teamSiteInformation": {
45 "groupId": "8f7e00e3-8b45-a817-006e-c71e71d788a4"
46 },
47 "channels": [
48 {
49 "id": "19:75f1eddce9a4745b16a4cc2cf86c9a48@thread.skype",
50 "isGeneral": true,
51 "isFavorite": true
52 }
53 ]
54 },
55 {
56 "id": "19:f51aaf0926aea7d37b3b1b795531abe0@thread.skype",
57 "displayName": "Team 04",
58 "isFavorite": true,
59 "isDeleted": false,
60 "isGeneralChannelFavorite": true,
61 "teamSiteInformation": {
62 "groupId": "a670b1e5-955b-d48d-b816-142d02ccf8df"
63 },
64 "channels": [
65 {
66 "id": "19:f51aaf0926aea7d37b3b1b795531abe0@thread.skype",
67 "isGeneral": true,
68 "isFavorite": true
69 }
70 ]
71 },
72 {
73 "id": "19:6f8ffb0c7835ab1d83fa476d4962a033@thread.tacv2",
74 "displayName": "Team 05",
75 "isFavorite": true,
76 "isDeleted": false,
77 "isGeneralChannelFavorite": true,
78 "teamSiteInformation": {
79 "groupId": "f733f4ea-b4cd-185d-9f3d-40425275a36d"
80 },
81 "channels": [
82 {
83 "id": "19:6f8ffb0c7835ab1d83fa476d4962a033@thread.tacv2",
84 "isGeneral": true,
85 "isFavorite": true
86 }
87 ]
88 },
89 {
90 "id": "19:de516a22deb12d09ede0f69a57ca4e13@thread.skype",
91 "displayName": "Team 06",
92 "isFavorite": true,
93 "isDeleted": false,
94 "isGeneralChannelFavorite": true,
95 "teamSiteInformation": {
96 "groupId": "6436151b-9bce-b593-8924-62fa1b684318"
97 },
98 "channels": [
99 {
100 "id": "19:de516a22deb12d09ede0f69a57ca4e13@thread.skype",
101 "isGeneral": true,
102 "isFavorite": true
103 }
104 ]
105 },
106 {
107 "id": "19:def2e9f97717cd2fba41ba87555d7c63@thread.tacv2",
108 "displayName": "Team 07",
109 "isFavorite": true,
110 "isDeleted": false,
111 "isGeneralChannelFavorite": true,
112 "teamSiteInformation": {
113 "groupId": "15474fa0-1e6b-099f-aaed-97b4343022bf"
114 },
115 "channels": [
116 {
117 "id": "19:def2e9f97717cd2fba41ba87555d7c63@thread.tacv2",
118 "isGeneral": true,
119 "isFavorite": true
120 }
121 ]
122 },
123 {
124 "id": "19:1daab460cb790063a6ee222674093594@thread.tacv2",
125 "displayName": "Team 08",
126 "isFavorite": true,
127 "isDeleted": false,
128 "isGeneralChannelFavorite": false,
129 "teamSiteInformation": {
130 "groupId": "f8528bec-6107-689e-4786-a1bffaab4b58"
131 },
132 "channels": [
133 {
134 "id": "19:1daab460cb790063a6ee222674093594@thread.tacv2",
135 "isGeneral": true,
136 "isFavorite": true
137 }
138 ]
139 },
140 {
141 "id": "19:04c7499a69cade0bc479267881eed5dc@thread.tacv2",
142 "displayName": "Team 09",
143 "isFavorite": true,
144 "isDeleted": false,
145 "isGeneralChannelFavorite": false,
146 "teamSiteInformation": {
147 "groupId": "c887f3c7-966f-58b8-f7df-66478f478793"
148 },
149 "channels": [
150 {
151 "id": "19:04c7499a69cade0bc479267881eed5dc@thread.tacv2",
152 "isGeneral": true,
153 "isFavorite": true
154 }
155 ]
156 },
157 {
158 "id": "19:55ef6fb187169de1622ed6e42010ea34@thread.skype",
159 "displayName": "Team 10",
160 "isFavorite": false,
161 "isDeleted": false,
162 "isGeneralChannelFavorite": false,
163 "teamSiteInformation": {
164 "groupId": "48c9a895-cf8f-8c24-c9d6-f61e24ac4745"
165 },
166 "channels": [
167 {
168 "id": "19:55ef6fb187169de1622ed6e42010ea34@thread.skype",
169 "isGeneral": true,
170 "isFavorite": true
171 }
172 ]
173 },
174 {
175 "id": "19:0c110f42185bf611d6fe52a34c16ad23@thread.tacv2",
176 "displayName": "Team 11",
177 "isFavorite": false,
178 "isDeleted": false,
179 "isGeneralChannelFavorite": false,
180 "teamSiteInformation": {
181 "groupId": "948db8b9-8c5d-cf13-3125-b117683558db"
182 },
183 "channels": [
184 {
185 "id": "19:0c110f42185bf611d6fe52a34c16ad23@thread.tacv2",
186 "isGeneral": true,
187 "isFavorite": true
188 }
189 ]
190 },
191 {
192 "id": "19:5f51a5550b71412e578f2a1404cafd88@thread.tacv2",
193 "displayName": "Team 12",
194 "isFavorite": false,
195 "isDeleted": false,
196 "isGeneralChannelFavorite": false,
197 "teamSiteInformation": {
198 "groupId": "7c59b24e-6c03-1b54-a992-80600afa7a21"
199 },
200 "channels": [
201 {
202 "id": "19:5f51a5550b71412e578f2a1404cafd88@thread.tacv2",
203 "isGeneral": true,
204 "isFavorite": true
205 }
206 ]
207 },
208 {
209 "id": "19:4cdfbde067825fb660f0a8b2f7c62927@thread.skype",
210 "displayName": "Team 13",
211 "isFavorite": false,
212 "isDeleted": false,
213 "isGeneralChannelFavorite": false,
214 "teamSiteInformation": {
215 "groupId": "856b69f7-7ba6-bf1d-feb3-8de52e1d825d"
216 },
217 "channels": [
218 {
219 "id": "19:4cdfbde067825fb660f0a8b2f7c62927@thread.skype",
220 "isGeneral": true,
221 "isFavorite": true
222 }
223 ]
224 },
225 {
226 "id": "19:ef17a45e03ff71825a45a1fd39643c85@thread.tacv2",
227 "displayName": "Team 14",
228 "isFavorite": false,
229 "isDeleted": false,
230 "isGeneralChannelFavorite": false,
231 "teamSiteInformation": {
232 "groupId": "e3e373e6-4322-2622-fcc0-935dd902dbca"
233 },
234 "channels": [
235 {
236 "id": "19:ef17a45e03ff71825a45a1fd39643c85@thread.tacv2",
237 "isGeneral": true,
238 "isFavorite": true
239 }
240 ]
241 }
242 ]
243 },
244 "userProperties": {
245 "teamsOrder": "[{\"teamId\":\"19:f51aaf0926aea7d37b3b1b795531abe0@thread.skype\",\"order\":0},{\"teamId\":\"19:75f1eddce9a4745b16a4cc2cf86c9a48@thread.skype\",\"order\":1},{\"teamId\":\"19:de516a22deb12d09ede0f69a57ca4e13@thread.skype\",\"order\":2},{\"teamId\":\"19:1daab460cb790063a6ee222674093594@thread.tacv2\",\"order\":3},{\"teamId\":\"19:def2e9f97717cd2fba41ba87555d7c63@thread.tacv2\",\"order\":4},{\"teamId\":\"19:0db84568b64b1740a9aa89a8dfae4ef3@thread.tacv2\",\"order\":5},{\"teamId\":\"19:04c7499a69cade0bc479267881eed5dc@thread.tacv2\",\"order\":6},{\"teamId\":\"19:dc35d4548a076206775f4c84275fc134@thread.skype\",\"order\":7}]"
246 },
247 "teamsWebShownTeams": [
248 {
249 "name": "Team 04",
250 "groupId": "a670b1e5-955b-d48d-b816-142d02ccf8df"
251 },
252 {
253 "name": "Team 03",
254 "groupId": "8f7e00e3-8b45-a817-006e-c71e71d788a4"
255 },
256 {
257 "name": "Team 06",
258 "groupId": "6436151b-9bce-b593-8924-62fa1b684318"
259 },
260 {
261 "name": "Team 08",
262 "groupId": "f8528bec-6107-689e-4786-a1bffaab4b58"
263 },
264 {
265 "name": "Team 07",
266 "groupId": "15474fa0-1e6b-099f-aaed-97b4343022bf"
267 },
268 {
269 "name": "Team 02",
270 "groupId": "44f04fc8-9c02-0b1f-cc76-4e2032969633"
271 },
272 {
273 "name": "Team 09",
274 "groupId": "c887f3c7-966f-58b8-f7df-66478f478793"
275 },
276 {
277 "name": "Team 01",
278 "groupId": "030ff571-c3fa-e972-24ae-94728f85de5c"
279 },
280 {
281 "name": "Team 05",
282 "groupId": "f733f4ea-b4cd-185d-9f3d-40425275a36d"
283 }
284 ]
285}