zulip/zerver/data_import
Mateusz Mandera a43bdcd166 import: Fix is_realm_imported_from_other_zulip_server logic.
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.
2025-07-14 15:11:43 -07:00
..
__init__.py import: Add slack import files in zerver/data_import directory. 2018-08-01 11:52:14 -07:00
import_util.py import: Fix is_realm_imported_from_other_zulip_server logic. 2025-07-14 15:11:43 -07:00
mattermost.py import: Fix is_realm_imported_from_other_zulip_server logic. 2025-07-14 15:11:43 -07:00
rocketchat.py import: Fix is_realm_imported_from_other_zulip_server logic. 2025-07-14 15:11:43 -07:00
sequencer.py data_import: Fix IdMapper typing. 2024-07-17 15:56:00 -07:00
slack_message_conversion.py slack_data_import: Support converting integration bot messages. 2025-05-23 14:27:31 -07:00
slack.py import: Fix is_realm_imported_from_other_zulip_server logic. 2025-07-14 15:11:43 -07:00
user_handler.py data_import: Add email validation to third-party data converters. 2024-10-15 16:04:43 -07:00