summaryrefslogtreecommitdiffstats
path: root/api/emoji_test.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-8708 Remove api package (#8784)Joram Wilander2018-05-161-437/+0
| | | | | | | | | | | | | | | | | | | | | | * Remove api package * Remove api dependency from cmd package * Remove EnableAPIv3 setting * Update web tests * Add more websocket tests * Move some ws and oauth tests to api4 package * Move command tests into api4 package * Test fixes * Fix msg command test * Add some app file tests
* MM-10188: expect io.Reader in FileBackend.WriteFile (#8765)Jesse Hallam2018-05-101-1/+1
| | | | This is a reworked set of changes originally from @josephGuo to begin reducing the duplicated memory required when uploading files.
* Reorganize file util functionality (#7848)Chris2017-11-161-1/+1
| | | | | | | | * reorganize file util functionality * fix api test compilation * fix rebase issue
* simplify things (#7735)Chris2017-10-301-1/+1
|
* Reduce utils.Cfg references (#7650)Chris2017-10-181-19/+23
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* Don't use global app for api / api4 tests (#7528)Chris2017-10-021-0/+8
| | | | | | | | | | | | | | * don't use global app for api / api4 tests * put sleep back. we're gonna have to do some goroutine wrangling * fix oauth test config assumptions * jobs package, i'm comin' for you next * app test fix * try increasing sleep a little
* Remove global app references (#7433)Chris2017-09-121-5/+5
| | | | | | | | * remove global app references * test fix * fix api4 test compilation
* Renaming repoChristopher Speller2017-09-061-4/+4
|
* app type transition (#7167)Chris2017-09-061-5/+5
|
* PLT-???? Prepare file upload infrastructure for Data Retention. (#7266)George Goldberg2017-08-251-1/+1
| | | | | | | | | | | | | | | | | * Prepare file upload infrastructure for Data Retention. This commit prepares the file upload infrastructure for the data retention feature that is under construction. Changes are: * Move file management code to utils to allow access to it from jobs. * From now on, store all file uploads in a top level folder which is the date of the day on which they were uploaded. This commit is based on Harrison Healey's branch, but updated to work with the latest master. * Use NewAppError
* 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
* implement POST /emoji for apiV4 (#5868)Carlos Tadeu Panato Junior2017-04-061-76/+25
|
* Update emoji_test.go (#5589)Harry Moreno2017-03-011-1/+1
| | | fix typo
* Refactor and migrate more functions out of api into app package (#5063)Joram Wilander2017-01-131-1/+1
|
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-5/+6
| | | | | | | | | | * Add app package and move logic over from api package * Change app package functions to return errors * Move non-api tests into app package * Fix merge
* PLT-4277: Allow larger custom emojis by resizing (#4447)Iraquitan Cordeiro Filho2016-11-211-5/+54
| | | | | | | | | | | | | | | | | Add function to resize image using resize.Thumbnail. Add function to resize gif using previous function. Add function to convert image.Image to image.Palleted. Add logic to identify image type and resize them if they are larger than MaxEmojiHeight or MaxEmojiWidth. Also increase MaxEmojiFileSize. * fix: Add github.com/nfnt to vendor * fix: Fix max file size and if logic in resizeEmoji * test: Fix and add new tests for new resize feature * fix: Fix and update translations to fit new feature * fix: Add requested changes
* PLT-3145 Custom Emojis (#3381)Harrison Healey2016-07-051-25/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reorganized Backstage code to use a view controller and separated it from integrations code * Renamed InstalledIntegrations component to BackstageList * Added EmojiList page * Added AddEmoji page * Added custom emoji to autocomplete and text formatter * Moved system emoji to EmojiStore * Stopped trying to get emoji before logging in * Rerender posts when emojis change * Fixed submit handler on backstage pages to properly support enter * Removed debugging code * Updated javascript driver * Fixed unit tests * Fixed backstage routes * Added clientside validation to prevent users from creating an emoji with the same name as a system one * Fixed AddEmoji page to properly redirect when an emoji is created successfully * Fixed updating emoji list when an emoji is deleted * Added type prop to BackstageList to properly support using a table for the list * Added help text to EmojiList * Fixed backstage on smaller screen sizes * Disable custom emoji by default * Improved restrictions on creating emojis * Fixed non-admin users seeing the option to delete each other's emojis * Fixing gofmt * Fixed emoji unit tests * Fixed trying to get emoji from the server when it's disabled
* PLT-3143 Added serverside code for custom Emoji (#3311)Harrison Healey2016-06-141-0/+445
* Added model objects for emoji * Added database tables for emoji * Added settings for custom emoji * Added serverside APIs and unit tests for custom emoji * Added additional validation to catch duplicate emoji names earlier on * Added additional validation to prevent users from adding emoji as another user