summaryrefslogtreecommitdiffstats
path: root/app/import_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Support attachments in post and replies - Bulk import (#9124)Pradeep Murugesan2018-07-201-1/+187
| | | | | | | | | | * 9006 - process the attachments of the post * 9006 enabling the import of attachments in the reply post * 9006 assert if the post and files are linked * 9006 fixed the typo
* Add ability to bulk import emoji (#9048)Joram Wilander2018-07-051-1/+79
| | | | | | | | * Add ability to bulk import emoji * Improve error handling * Update test config
* Make import compatible with scheme-roles. (#9028)George Goldberg2018-06-291-0/+120
| | | | | This doesn't introduce new fields as we would then break backwards compatability with old "roles" fields. We can add custom fields if/when we go to "version 2" of the bulk import format.
* Fixing mentionBg typo in import_test.go (#8970)Alex Goodman2018-06-211-2/+2
|
* MM-10233: Add scheme importing to bulk importer. (#8928)George Goldberg2018-06-211-91/+630
|
* [MM-10645] Remove desktop duration notify props (#8851)Saturnino Abril2018-05-251-10/+0
| | | | | | | | | | * remove desktop duration notify props Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com> * fix test Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
* Fixing misspell errors (#8544)Jesús Espino2018-03-291-4/+4
|
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Martin Kraft2018-03-271-33/+36
|\
| * Relax 4k post message limit (#8478)Jesse Hallam2018-03-261-33/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MM-9661: rename POST_MESSAGE_MAX_RUNES to \0_v1 * MM-9661: s/4000/POST_MESSAGE_MAX_RUNES_V1/ in tests * MM-9661: introduce POST_MESSAGE_MAX_RUNES_V2 * MM-9661: migrate Postgres Posts.Message column to TEXT from VARCHAR(4000) This is safe to do in a production instance since the underyling type is not changing. We explicitly don't do this automatically for MySQL, but also don't need to since the ORM would have already created a TEXT column for MySQL in that case. * MM-9661: emit MaxPostSize in client config This value remains unconfigurable at this time, but exposes the current limit to the client. The limit remains at 4k in this commit. * MM-9661: introduce and use SqlPostStore.GetMaxPostSize Enforce a byte limitation in the database, and use 1/4 of that value as the rune count limitation (assuming a worst case UTF-8 representation). * move maxPostSizeCached, lastPostsCache and lastPostTimeCache out of the global context and onto the SqlPostStore * address feedback from code review: * ensure sqlstore unit tests are actually being run * move global caches into SqlPostStore * leverage sync.Once to address a race condition * modify upgrade semantics to match new db semantics gorp's behaviour on creating columns with a maximum length on Postgres differs from MySQL: * Postgres * gorp uses TEXT for string columns without a maximum length * gorp uses VARCHAR(N) for string columns with a maximum length of N * MySQL * gorp uses TEXT for string columns with a maximum length >= 256 * gorp uses VARCHAR(N) for string columns with a maximum length of N * gorp defaults to a maximum length of 255, implying VARCHAR(255) So the Message column has been TEXT on MySQL but VARCHAR(4000) on Postgres. With the new, longer limits of 65535, and without changes to gorp, the expected behaviour is TEXT on MySQL and VARCHAR(65535) on Postgres. This commit makes the upgrade semantics match the new database semantics. Ideally, we'd revisit the gorp behaviour at a later time. * allow TestMaxPostSize test cases to actually run in parallel * default maxPostSizeCached to POST_MESSAGE_MAX_RUNES_V1 in case the once initializer panics * fix casting error * MM-9661: skip the schema migration for Postgres It turns out resizing VARCHAR requires a rewrite in some versions of Postgres, but migrating VARCHAR to TEXT does not. Given the increasing complexity, let's defer the migration to the enduser instead.
* | Merge branch 'master' into advanced-permissions-phase-1Martin Kraft2018-03-231-3/+4
|\|
| * Fix various segfaults when running `go test` manually (#8448)Jesse Hallam2018-03-211-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * failing to find i18n shouldn't segfault The server was trying to handle the fact that it couldn't find the i18n directory, by emitting a translated log message... * fix utils.FindDir The attempts to find the directory in the parent or grandparent directory don't work if the current working directory was inside `enterprise`, with `enterprise` itself being a symlink as per the usual developer setup. Recurse to the root of the filesystem, cleaning the path along the way to work around this limitation (and allow tests to be run from an arbitrarily deep nesting level.) Fix corresponding usages to employ filepath.Join. * failing to find html templates shouldn't segfault * fail fast if the test user cannot be created * rework utils.FindDir to retain backwards compatibility
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-16/+0
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * XYZ-13: Update Permission and Role structs to new design. * XYZ-10: Role store. * XYZ-9/XYZ-44: Roles API endpoints and WebSocket message. * XYZ-8: Switch server permissions checks to store backed roles. * XYZ-58: Proper validation of roles where required. * XYZ-11/XYZ-55: Migration to store backed roles from policy config. * XYZ-37: Update unit tests to work with database roles. * XYZ-56: Remove the "guest" role. * Changes to SetDefaultRolesFromConfig. * Short-circuit the store if nothing has changed. * Address first round of review comments. * Address second round of review comments.
* XYZ-32: Increases size of position to 128 characters. (#8148)Martin Kraft2018-01-261-1/+1
| | | | | | | | | | * XYZ-32: Changes type of 'position' column on 'users' table. * XYZ-32: Uncomment to run on CI and pre-release. * XYZ-32: Reverts translation changes. * XYZ-32: Fix for gofmt.
* [XYZ-6] Add sampledata platform command (#8027)Jesús Espino2018-01-111-19/+301
| | | | | | | | * Add fake dependency * [XYZ-6] Add sampledata platform command * Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
* more global config ref cleanup (#7802)Chris2017-11-091-2/+1
|
* Fix races / finally remove global app for good (#7570)Chris2017-10-041-2/+8
| | | | | | | | | | | | * finally remove global app for good * test compilation fixes * fix races * fix deadlock * wake up write pump so it doesn't take forever to clean up
* Remove global app references (#7433)Chris2017-09-121-268/+256
| | | | | | | | * remove global app references * test fix * fix api4 test compilation
* Renaming repoChristopher Speller2017-09-061-3/+3
|
* app type transition (#7167)Chris2017-09-061-187/+199
|
* PLT-7183: User/Channel NotifyProps Bulk Import. (#7019)George Goldberg2017-07-261-4/+173
|
* PLT-7123: Add tutorial, flags and favorites to bulk importer. (#7000)George Goldberg2017-07-211-76/+241
|
* [PLT-5864] Move teammate name display setting to the System Console (#6681)Saturnino Abril2017-06-301-10/+0
| | | | | | | | | | * move teammate name display setting to the system console * update all the likes of TeammateNameDisplay names * fix gofmt error * rebase and fix conflict
* PLT-6937: Bulk Importing of Direct/Group channels and posts. (#6761)George Goldberg2017-06-281-3/+776
| | | | | | * PLT-6937: Bulk Importing of Direct/Group channels and posts. * Show group/direct channels in sidebar.
* Add Password field to Bulk Importer. (#6268)George Goldberg2017-04-281-0/+23
|
* Parallelise Bulk Import. (#6267)George Goldberg2017-04-281-3/+3
| | | | | | * Parallelise Bulk Import. * Set worker count through command line flag.
* Revert "Usernames must start with a letter (#5581)"Christopher Speller2017-04-181-7/+7
| | | | This reverts commit 2e911b77c3386833f8f0cea82c7b6b3e5583a08e.
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* Remove FIXME and XXX from bulk import tests. (#5664)George Goldberg2017-03-061-3/+17
|
* Usernames must start with a letter (#5581)Joram Wilander2017-03-031-7/+7
|
* PLT-5367: Basic post bulk importing. (#5562)George Goldberg2017-02-281-2/+358
|
* PLT-3193 Add channel notification preferences for push and email noti… (#5500)enahum2017-02-231-27/+27
| | | | | | | | | | | | | | | | * PLT-3193 Add channel notification preferences for push and email notifications * unit tests, model validation and localization * Feedback review * Adding back allowFromCache check * Setting push and email to use default settings * Move props as constants * address feedback
* PLT-5521: Mandatory version in line 1 of bulk import. (#5400)George Goldberg2017-02-161-2/+39
|
* PLT-5398 Bulk loading of user display preferences. (#5382)George Goldberg2017-02-141-0/+124
|
* Adding go vet from hack-a-thon (#5328)Corey Hulen2017-02-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | * Adding go vet to the api package * Adding go vet to app package * Adding go vet to manualtesting package * Adding go vet to the model package * Adding go vet to the store dir * Adding go vet to utils package * Adding missing dirs with go files * Fixing up makefile * Fixing up makefile * Removing root dir
* PLT-5427: Import ChannelMember Notify Props. (#5329)George Goldberg2017-02-081-33/+62
|
* PLT-5407: Bulk importing of User memberships. (#5273)George Goldberg2017-02-021-5/+388
|
* PLT-5365 Import of basic user properties. (#5231)George Goldberg2017-01-311-1/+297
|
* PLT-5366, PLT-5364, PLT-5363: Bulk Import Part 1. (#5204)George Goldberg2017-01-271-0/+552
This commit provides the first part of the bulk import system. The CLI command is provided, complete with validation & apply modes. All the basic properties of Teams and Channels can be imported. Users & Posts will follow separately in a future commit.