In the https://cht.rci.test.musohealth.app/ running Version 3.15.0
I have created a CHW AREA with
_id:8dc77800-8eac-4f57-9f6e-7518924246b0 name:Z.A. ZUG01 0004
And two c50_family children:
_id:44afa621-5b4d-4515-b77a-735cd78ff74a name:MUTED
_id:7e50eb0a-6dce-4b2f-b2d5-30fa8451a3a1 name:ACTIVE
At 2024-04-17 21:50 approx I mute the MUTED c50_family getting this:
MUTED c50_family
{
_id: "44afa621-5b4d-4515-b77a-735cd78ff74a",
_rev: "4-43598d221818d2f5f12bb00bfe17be3d",
…
type: "contact",
contact_type: "c50_family",
reported_date: 1713390186626,
place_id: "1972704",
muting_history:
{
server_side:
{
muted: true,
date: "2024-04-17T21:50:05.009Z"
},
client_side:
[
{
muted: true,
date: "2024-04-17T21:50:01.762Z",
report_id: "34de766d-37c6-4447-8056-09f3af3551b2"
}
],
last_update: "server_side"
},
muted: "2024-04-17T21:50:05.009Z"
}
At 2024-04-17 21:55 approx I mute the Z.A. ZUG01 0004 c40_chw_area getting this:
For the MUTED c50_family
{
_id: "44afa621-5b4d-4515-b77a-735cd78ff74a",
_rev: "4-43598d221818d2f5f12bb00bfe17be3d",
name: "MUTED",
type: "contact",
contact_type: "c50_family",
reported_date: 1713390186626,
place_id: "1972704",
muting_history:
{
server_side:
{
muted: true,
date: "2024-04-17T21:50:05.009Z"
},
client_side:
[
{
muted: true,
date: "2024-04-17T21:50:01.762Z",
report_id: "34de766d-37c6-4447-8056-09f3af3551b2"
}
],
last_update: "server_side"
},
muted: "2024-04-17T21:50:05.009Z"
} //here is working as expected
For the ACTIVE c50_family (no muting_history)
{
_id: "7e50eb0a-6dce-4b2f-b2d5-30fa8451a3a1",
name: "ACTIVE",
type: "contact",
contact_type: "c50_family",
reported_date: 1713390080071,
place_id: "5896551",
muted: "2024-04-17T21:55:02.718Z"
} //here I do not know if the c50_family should have a muting_history
For the Z.A. ZUG01 0004 c40_chw_area:
{
_id: "8dc77800-8eac-4f57-9f6e-7518924246b0",
_rev: "5-c731a4230b148735fb8b587a10e27674",
type: "contact",
name: "Z.A. ZUG01 0004",
contact_type: "c40_chw_area",
reported_date: 1713389971570,
place_id: "5227239",
muting_history:
{
server_side:
{
muted: true,
date: "2024-04-17T21:55:02.320Z"
},
client_side:
[
{
muted: true,
date: "2024-04-17T21:55:00.941Z",
report_id: "905cb0cf-fbe9-4df8-8b6f-5230e9752c03"
}
],
last_update: "server_side"
},
muted: "2024-04-17T21:55:02.320Z"
}
At 2024-04-17 22:10 approx I unmute the Z.A. ZUG01 0004 c40_chw_area getting both families unmuted:
For the MUTED c50_family
{
_id: "44afa621-5b4d-4515-b77a-735cd78ff74a",
_rev: "5-55d698243117f082ab47a0548ef5ffa2",
name: "MUTED",
type: "contact",
contact_type: "c50_family",
reported_date: 1713390186626,
place_id: "1972704",
muting_history:
{
server_side:
{
muted: false,
date: "2024-04-17T22:10:13.338Z"
},
client_side:
[
{
muted: true,
date: "2024-04-17T21:50:01.762Z",
report_id: "34de766d-37c6-4447-8056-09f3af3551b2"
}
],
last_update: "server_side"
}
}// do not understand why the first mute disappears from the muting history
For the ACTIVE c50_family (no muting_history)
{
_id: "7e50eb0a-6dce-4b2f-b2d5-30fa8451a3a1",
_rev: "4-fb199ce0684f579b4bd75300c56de5d6",
name: "ACTIVE",
type: "contact",
contact_type: "c50_family",
reported_date: 1713390080071,
place_id: "5896551"
}// like just nothing has happened
For the Z.A. ZUG01 0004 c40_chw_area:
{
_id: "8dc77800-8eac-4f57-9f6e-7518924246b0",
_rev: "7-6436b2a65e453761249c504cc9419953",
type: "contact",
name: "Z.A. ZUG01 0004",
contact_type: "c40_chw_area",
reported_date: 1713389971570,
place_id: "5227239",
muting_history:
{
server_side:
{
muted: false,
date: "2024-04-17T22:10:13.338Z"
},
client_side:
[
{
muted: true,
date: "2024-04-17T21:55:00.941Z",
report_id: "905cb0cf-fbe9-4df8-8b6f-5230e9752c03"
},
{
muted: false,
date: "2024-04-17T22:10:11.748Z",
report_id: "3780d132-4140-42c6-bd3e-2f3f46749ad1"
}
],
last_update: "server_side"
}
}// this makes sense for me