mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
This logic was fundamentally broken:
```
is_realm_imported_from_other_zulip_server = RealmAuditLog.objects.filter(
realm=realm, event_type=AuditLogEventType.REALM_EXPORTED
).exists()
if not is_realm_imported_from_other_zulip_server:
send_zulip_update_announcements_to_realm(
realm, skip_delay=False, realm_imported_from_other_product=True
)
```
Because the `REALM_EXPORTED` was only created after the export completed
- meaning it couldn't be included in the export data at all. Thus
considering exports to be "not from Zulip" incorrectly.
We get around this issue by explicitly including an import_source in the
realm dict in the export data from 3rd party apps. The importer can then
rely on this value to determine if it's dealing with a Zulip-originated
export or not.
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| import_util.py | ||
| mattermost.py | ||
| rocketchat.py | ||
| sequencer.py | ||
| slack_message_conversion.py | ||
| slack.py | ||
| user_handler.py | ||