Rhea Parekh
c4f8abbd30
import: Build Message with the model class.
2018-08-19 22:27:13 -07:00
Rhea Parekh
4ea7302e14
import: Add missing fields in UserProfile object.
...
The missing fields are checked by `full_clean()` method.
The datetime field errors are ignored as they are fixed
in the `import_realm` script. The field that are
allowed to be null are not included while building
this object.
2018-08-19 22:27:13 -07:00
Rhea Parekh
66d34b23ef
import: Build Attachment with the model class.
2018-08-19 22:27:13 -07:00
Rhea Parekh
9617b1fbc5
import: Build Recipient and Subscription with model class.
2018-08-19 22:27:13 -07:00
Rhea Parekh
c77763bd8e
import: Move 'build_realm' to import_util.
2018-08-19 22:27:13 -07:00
Tim Abbott
8a22838acf
slack import: Fix computation of owner email for uploaded files.
...
The previous code was just always returning the first user in the
organization, due to an incorrect comparison.
2018-08-10 16:20:36 -07:00
Rhea Parekh
3ff339c294
slack import: Add support for uploads in messages through 'files' keyword.
...
It appears that Slack just changed their export format, and how uses
this `files` list for user-uploaded files.
2018-08-10 16:20:36 -07:00
Rhea Parekh
20bca1409f
import: Set emoji records 'last_modified' value in 'import_uploads_s3'.
...
The 'last_modified' value in emoji records is
needed for uploading the file to the S3 backend.
We set the same in the function 'import_uploads_s3'.
We also have to remove the keyword 'last_modified'
while building the RealmEmoji dict, as it is not
a field which exists in RealmEmoji objects.
2018-08-10 16:20:36 -07:00
Tim Abbott
cf8a0ae819
slack import: Set a last_modified timestamp for custom emoji.
2018-08-10 09:27:43 -07:00
Rhea Parekh
18a4904437
import: Move 'build_attachment' to import_util.
2018-08-07 16:45:42 -07:00
Rhea Parekh
b6ccc0bc52
import: Move 'build_defaultstream' to import_util.
2018-08-07 16:45:42 -07:00
Rhea Parekh
bee3964f14
import: Move 'build_usermessages' to import_util.
2018-08-07 16:45:42 -07:00
Rhea Parekh
eefe7cccd2
import: Move 'process_uploads' and 'process_emojis' to import_util.
2018-08-07 16:45:42 -07:00
Rhea Parekh
30cc7354eb
import: Move 'process_avatars' to import_util.
2018-08-07 16:45:40 -07:00
Rhea Parekh
87cc1a6280
import: Move 'build_subscription' and 'build_recipient' to import_util.
2018-08-07 16:35:56 -07:00
Rhea Parekh
a516f80646
import: Move 'build_avatar' to import_util.
2018-08-07 16:35:56 -07:00
Rhea Parekh
1117455a90
import: Move 'ZerverFieldsT' and 'build_zerver_realm' to import_util.
2018-08-07 16:35:56 -07:00
Rhea Parekh
ee37866687
import: Add gitter import file in zerver/data_import directory.
2018-08-01 11:52:14 -07:00
Rhea Parekh
b8e1e8b31d
import: Add slack import files in zerver/data_import directory.
2018-08-01 11:52:14 -07:00