zulip/frontend_tests
Sahil Batra 630abf57d9 settings: Remove bot from "Active bots" list on changing owners.
On changing bot owner, "delete" event is sent to the previous
owner if previous owner is not an admin. We were ignoring the
"delete" event in webapp previously, but now we update the
bots page in personal settings to delete the bot. Note that
we do not remove the bot from the organization list of bots
currently, since list_widget does not support removing a
row as of now.

In case of previous owner being an admin, the previous owner
receives "update" event and thus the bots list is updated
from that event.

The code for ignoring "delete" event was added in fba2708bbc,
to basically avoid failed lookup for id in the organization
list of bots. I have tested and there cannot be a case of
a failed lookup in the list as per current code for list_widget
module and we are anyways safe after a reload or after closing the
overlay as the list will be updated correctly.

Discussion thread -
https://chat.zulip.org/#narrow/stream/321-settings-system/topic/List.20render.20.2315033

Fixes #20856.
2022-03-22 15:38:43 -07:00
..
node_tests settings: Remove bot from "Active bots" list on changing owners. 2022-03-22 15:38:43 -07:00
puppeteer_lib puppeteer tests: Split stream tests to two files. 2022-03-18 12:20:48 -04:00
puppeteer_tests puppeteer tests: Split stream tests to two files. 2022-03-18 12:20:48 -04:00
zjsunit node_tests: Add a few missing $ prefixes. 2022-03-17 13:10:23 -07:00