summaryrefslogtreecommitdiffstats
path: root/app/channel.go
Commit message (Collapse)AuthorAgeFilesLines
* PLT-7537: Move channel CLI command posts system message to channel. (#8161)Vordimous2018-02-071-2/+28
| | | | | | | | | | | | * [PTL-7537] implement feature and test * [PTL-7537] Update feature to post the the room requiring a username flag to be used * [PTL-7537] update tests with username * update test to remove changes to the test helper struct * use the basic team and user
* ABC-79: Optimize channel autocomplete query (#8163)Chris2018-01-311-0/+8
| | | | | | * optimize channel autocomplete query * move to new autocomplete endpoint
* Merge branch 'release-4.6'Harrison Healey2018-01-231-5/+5
|\
| * PLT-8522 Added separate messages for being removed from channel or team (#8078)Harrison Healey2018-01-101-5/+5
| |
* | Post a system message to the affected channel by CLI command (#7877) (#7968)Evgeniy2018-01-181-0/+41
| |
* | Handle missed case with ExperimentalEnableDefaultChannelLeaveJoinMessages ↵Joram Wilander2018-01-181-1/+1
| | | | | | | | setting (#8112)
* | Add EnableDefaultChannelLeaveJoinMessages config setting (#7961)Chris Duarte2018-01-101-7/+13
|/
* Do not auto-join 'off-topic' channel if it is private (#7950)Siyuan Liu2017-12-131-2/+1
|
* PLT-6217-bis Fixes system message posted to Town Square when a user joins a ↵Tsilavina Razafinirina2017-12-081-1/+19
| | | | | | | | team #7863 (#7864) * Adds new string post message when a user has joined a team (#6483) * Simplifies long if statement in post.go (#6483)
* PLT-7503: Create Message Export Scheduled Task and CLI Command (#7612)Jonathan2017-11-301-5/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Created message export scheduled task * Added CLI command to immediately kick off an export job * Added email addresses for users joining and leaving the channel to the export * Added support for both MySQL and PostgreSQL * Fixing gofmt error * Added a new ChannelMemberHistory store and associated tests * Updating the ChannelMemberHistory channel as users create/join/leave channels * Added user email to the message export object so it can be included in the actiance export xml * Don't fail to log a leave event if a corresponding join event wasn't logged * Adding copyright notices * Adding message export settings to daily diagnostics report * Added System Console integration for message export * Cleaned up TODOs * Made batch size configurable * Added export from timestamp to CLI command * Made ChannelMemberHistory table updates best effort * Added a context-based timeout option to the message export CLI * Minor PR updates/improvements * Removed unnecessary fields from MessageExport object to reduce query overhead * Removed JSON functions from the message export query in an effort to optimize performance * Changed the way that channel member history queries and purges work to better account for edge cases * Fixing a test I missed with the last refactor * Added file copy functionality to file backend, improved config validation, added default config values * Fixed file copy tests * More concise use of the testing libraries * Fixed context leak error * Changed default export path to correctly place an 'export' directory under the 'data' directory * Can't delete records from a read replica * Fixed copy file tests * Start job workers when license is applied, if configured to do so * Suggestions from the PR * Moar unit tests * Fixed test imports
* PLT-5458: If someone posts a channel link to channel_A that you don't belong ↵Chris2017-11-281-0/+12
| | | | | | | | | | | | to, it doesn't render properly (#7833) * add channel link hints to post props * optimization * update regex, add unit test * fix rebase issue
* Role refactor (#7867)Chris2017-11-211-3/+3
| | | | | | | | * role refactor * add missing file * fix web test
* PLT-6217 Fixes system message posted to Town Square when a member leaves a ↵Tsilavina Razafinirina2017-11-201-2/+22
| | | | | | | | | | | | | | | | | | team (#7752) * Fixes system message posted to Town Square when adding/removing team member (#6483) Fixes unit test method call to match RemoveUserFromTeam modification (#6483) Fixes system message posted to Town Square when adding/removing team member (#6483) Removes unnessary error message * Updates system message when a user leaves a team (#6483) * Changes system message when a user is removed from team (#6483) * Adds a new string to be post to town-square when a member is added to a team (#6483)
* several one-line panic, race, and logic fixes (#7766)Chris2017-11-031-1/+1
|
* [PLT-7362] Add post' root ID to APIv4 addChannelMember to render added user ↵Saturnino Abril2017-10-311-5/+6
| | | | | | | | | | (as system post) at RHS (#7730) * add post' root ID to apiv4 addChannelMember to render added user (as system post) at RHS * add check to post_root_id parameter * add AddChannelMemberWithRootId function for backward compatibility
* refactor max channels per team enforcement (#7690)Chris2017-10-201-2/+2
|
* Reduce utils.Cfg references (#7650)Chris2017-10-181-6/+6
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* Goroutine wranglin (#7556)Chris2017-10-031-7/+21
| | | | | | * goroutine wranglin * synchronize WebConn.WritePump
* PLT-7404 Return viewed at times in view channel API response (#7428)Joram Wilander2017-09-291-6/+9
| | | | | | | | * Return viewed at times in view channel API response * Updated transaction to read and write once * Remove transaction and only update if new value greater than older
* remove remaining Global() calls (outside of tests) (#7521)Chris2017-09-281-11/+11
|
* plugin CRUD operations for users, posts, channels, and teams (#7479)Chris2017-09-211-18/+26
|
* remove einterface gets (#7455)Chris2017-09-191-1/+1
|
* Add some checking of channel ID before sending websocket event (#7431)Joram Wilander2017-09-151-1/+1
|
* Renaming repoChristopher Speller2017-09-061-3/+3
|
* app type transition (#7167)Chris2017-09-061-192/+192
|
* PLT-7216: CLI Command to move channels between teams. (#7149)George Goldberg2017-09-041-0/+30
| | | | | | * PLT-7216: CLI Command to move channels between teams. * Add comment
* App: NewLocAppError -> NewAppError (#7327)George Goldberg2017-09-011-29/+24
| | | | | | * App: NewLocAppError -> NewAppError * Remove statuscode that got missed.
* [PLT-5170] Add join the channel system message for the person who created ↵Saturnino Abril2017-08-301-0/+7
| | | | | | | | the channel (#7299) * add join the channel system message for the person who created the channel * update test
* PLT-5745 Cleaning up duplicate calls (#7298)Corey Hulen2017-08-281-17/+17
| | | | | | | | * PLT-5745 Cleaning up duplicate calls * Fixing missing calls * Fixing broken test
* PLT-6965 jira integration (plus plugin scaffolding) (#6918)Chris2017-08-021-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * plugin scaffolding / jira integration * add vendored testify packages * webhook fix * don't change i18n ids * support configuration watching * add basic jira plugin configuration to admin console * fix eslint errors * fix another eslint warning * polish * undo unintentional config.json commit >:( * test fix * add jira plugin diagnostics, remove dm support, add bot tag, generate web-safe secrets * rebase, implement requested changes * requested changes * remove tests and minimize makefile change * add missing license headers * add missing comma * remove bad line from Makefile
* Revert " #4755 Combining consecutive user join/leave system messages to ↵Saturnino Abril2017-08-011-117/+44
| | | | | | | | | | | | single message and few other changes." (#7072) * Revert "PLT-6603: Don't return all posts on invalid query. (#7061)" This reverts commit 25a2013890c7e07b4621fa9b18342e7f35363049. * Revert " #4755 Combining consecutive user join/leave system messages to single message and few other changes. (#5945)" This reverts commit 8a91235fb3cdc8d094dbc2eaa0d7baa447132b3c.
* #4755 Combining consecutive user join/leave system messages to single ↵Debanshu Kundu2017-08-011-44/+117
| | | | | | | | | message and few other changes. (#5945) fix 7 and 8 remove @ at "{username} joined the channel" refactor and update test
* make cli team / channel delete operations also delete webhooks and slash ↵Chris2017-07-311-0/+8
| | | | commands (#7028)
* Don't send last view message for null channels (#7051)Corey Hulen2017-07-311-1/+1
|
* Return channel member immediately if user is already in channel (#6847)Joram Wilander2017-07-051-0/+8
|
* Fix EnablChannelViewedMessages typo (#6822)Jason Blais2017-07-031-2/+2
| | | | | | | | | | | | | | | | * Update config.json * Update config.go * Update config.go * Update channel.go * Update post.go * Update diagnostics.go * Update config.go
* PLT-6610 sending websocket event for last channel viewed (#6787)Corey Hulen2017-06-291-1/+15
|
* PLT-6937: Bulk Importing of Direct/Group channels and posts. (#6761)George Goldberg2017-06-281-23/+48
| | | | | | * PLT-6937: Bulk Importing of Direct/Group channels and posts. * Show group/direct channels in sidebar.
* when a channel is update propagate the channel to everybody (#6677)Carlos Tadeu Panato Junior2017-06-211-0/+5
|
* Only update status when clicking onto app (#6435)Joram Wilander2017-05-241-1/+1
|
* PLT-6019: Add APIv4 Endpoint for restoring Channels (#6263)Robin Naundorf2017-05-151-0/+8
|
* Merge branch 'release-3.9' into merge-3.9JoramWilander2017-05-121-1/+13
|\
| * Send status change event if status changes on channel view (#6389)Joram Wilander2017-05-111-0/+8
| |
| * Forward port 3.8.1 changes that missed master (#6362)Joram Wilander2017-05-091-1/+5
| |
* | PLT-6488: Reduce database queries in user bulk import. (#6371)George Goldberg2017-05-101-12/+13
| |
* | Add API Endpoint for deleted Channels (#5889)Robin Naundorf2017-05-091-0/+8
|/
* Update channel patch to post the correct system messages (#6290)Joram Wilander2017-05-031-2/+29
|
* PLT-6214 Move channel store and actions over to redux (#6235)Joram Wilander2017-04-281-2/+10
| | | | | | | | | | | | | | * Move channel store and actions over to redux * Fix style errors * Fix unit test * Various fixes * More fixes * Revert config changes
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-2/+2
| | | | | | | | | | | | * 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
* PLT-6198: Use added to channel system message on default channels. (#5969)George Goldberg2017-04-041-5/+26
| | | | Use a different sytem message when a user was added to a default channel by someone else than when they joined themselves.