summaryrefslogtreecommitdiffstats
path: root/app/plugin_api.go
Commit message (Collapse)AuthorAgeFilesLines
* GH-9612 Add plugin API for GetChannelStats method (#9627)Jason Mojica2018-10-251-0/+8
| | | | | | | | * Add GetChannelStats plugin api * Fix to return channel stats correctly * Add server version; Handle error idiomatically
* GH-9617 Add plugin API for GetEmoji method (#9656)Jason Mojica2018-10-251-0/+4
| | | | | | * Add GetEmoji plugin api * Add server version
* GH-9636 plugins api GetUsersInChannelByStatus (#9645)Jason Simmons2018-10-221-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * adds GetUsersInChannelByStatus to plugin api with generated rpc code. * fixed typo in comment with actual func name * replaced Response model with AppError in output of GetUsersInChannelByStatus * removed etag param from GetUsersInChannelByStatus since it is not used * plugin api for GetUsersInChannelByStatus updated to take the limit, conforming to the app api. * fixed an issue in my own logic on app/plugin integration. * adds GetUsersInChannelByStatus to plugin api with generated rpc code. * fixed typo in comment with actual func name * replaced Response model with AppError in output of GetUsersInChannelByStatus * removed etag param from GetUsersInChannelByStatus since it is not used * plugin api for GetUsersInChannelByStatus updated to take the limit, conforming to the app api. * fixed an issue in my own logic on app/plugin integration. * GetUsersInChannelByStatus changed to more generic GetUsersInChannel which takes a sortBy parameter, allowing for more granular/extensible sorting functionality in the future * GetUsersInChannel accepts sort parameter of 'username' and 'status'. Both values are consts in model pkg. * Documents minimum server version for GetUsersInChannel. * adds GetUsersInChannelByStatus to plugin api with generated rpc code. * fixed typo in comment with actual func name * replaced Response model with AppError in output of GetUsersInChannelByStatus * removed etag param from GetUsersInChannelByStatus since it is not used * plugin api for GetUsersInChannelByStatus updated to take the limit, conforming to the app api. * fixed an issue in my own logic on app/plugin integration. * adds GetUsersInChannelByStatus to plugin api with generated rpc code. * Resolved conflict on rebase * replaced Response model with AppError in output of GetUsersInChannelByStatus * removed etag param from GetUsersInChannelByStatus since it is not used * plugin api for GetUsersInChannelByStatus updated to take the limit, conforming to the app api. * fixed an issue in my own logic on app/plugin integration. * GetUsersInChannelByStatus changed to more generic GetUsersInChannel which takes a sortBy parameter, allowing for more granular/extensible sorting functionality in the future * GetUsersInChannel accepts sort parameter of 'username' and 'status'. Both values are consts in model pkg. * Documents minimum server version for GetUsersInChannel. * replaces GetUsersInChannel from #9608 / #9643 with sortBy functionality
* GH-9619 GetEmojiImage added to plugin API (#9628)S4KH2018-10-181-0/+4
| | | | | | * GH-9619 conflict fix * GH-9619 fixed conflicts, version comment
* Add GetPostsAfter() to plugin API (#9650)Hanzei2018-10-181-0/+4
|
* GH-9635: Add GetUsersByUsernames to plugin API (#9647)Daniel Hodan2018-10-181-0/+4
| | | | | | * add GetUsersByUsernames to plugin api * fix GetUsersByUsernames comment
* Add GetFileLink method to plugin API (#9665)Charles Kenney2018-10-171-0/+17
| | | | | | | | * add GetFileLink method to plugin API * Update plugin/api.go * add translations for new plugin API errors
* GH-9608: Add GetUsersInChannel to plugin API (#9643)Daniel Hodan2018-10-171-0/+4
| | | | | | | | * add GetUsersInChannel to plugin api * compute offset value instead of page * Add version comment
* GH-9607: Add GetTeamsForUser to plugin API (#9644)Daniel Hodan2018-10-171-0/+4
| | | | | | * add GetTeamsForUser to plugin api * Add version comment, fix comment typo
* add GetEmojiByName method to plugin API (#9641)Charles Kenney2018-10-151-0/+4
|
* Add GetPostsBefore() to plugin API (#9651)Hanzei2018-10-151-0/+4
|
* add GetChannelsForTeamForUser to plugin api (#9646)Daniel Hodan2018-10-151-0/+4
|
* GH-9609: Add GetUsersInTeam in plugin API (#9642)Daniel Hodan2018-10-151-0/+4
| | | | | | * add GetUsersInTeam in plugin api * remove extra space in comment
* Add SearchChannels plugin api (#9657)Jason Mojica2018-10-151-0/+4
|
* GH-9633 Added plugin API method to return user's profile image (#9653)Alexander Akhmetov2018-10-151-0/+10
|
* Add GetPostsSince() to plugin API (#9649)Hanzei2018-10-151-0/+4
|
* Add GetPostThread() to plugin API (#9652)Hanzei2018-10-151-0/+4
|
* DeleteAll for KV (#9431)Daniel Schalla2018-10-101-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expire K/V Values Regenerate Code pathfix Update Expiry on Update Check for Exit Signal gofmt Rewrote Go Routine Remove tempoarily cleanup loop fix expiretime TEST: Expired Watchdog as GoRoutine Check if Srv is nil Use Scheduler/Worker for Expired Key CleanUp add license fix scheduler job type; DoJob Restructuring Remove unused imports and constants move db migration from 5.4 to 5.5
* Add GetPostsForChannel method to plugin API (#9557)Akash Srivastava2018-10-101-0/+4
| | | Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
* Add GetChannelMembers method to plugin API (#9525)Akash Srivastava2018-10-031-0/+4
| | | Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
* MM-11863 Add KVList method (#9467)Shobhit Gupta2018-10-031-0/+4
| | | | | | | | | | | | | | * Add KVList method * Add KVList method Add KVList method * Add pagination support * Change offset, limit to page, perPage * Rename constant
* Add plugin API methode to return the current server version (#9429)Hanzei2018-09-271-0/+4
|
* MM-7188: Cleaning push notification on every read, not only on channel ↵Jesús Espino2018-09-261-1/+1
| | | | | | | | | | | | switch (#9348) * MM-7188: Cleaning push notification on every read, not only on channel switch * Removed unnecesary goroutine * Fixing tests * Applying suggestion from PR
* Add GetLDAPUserAttributes method to the plugin API (#9326)Joram Wilander2018-08-291-0/+16
|
* Adding Permissions check and reactions function to plugins API (#9273)Jesús Espino2018-08-201-0/+24
| | | | | | * Adding reactions functions * Adding permissions checking in the plugins api
* Add FileInfo and get file []byte in plugin api (#9269)Elias Nahum2018-08-201-0/+8
| | | | | | | | * Add FileInfo and get file []byte in plugin api * Regenerated plugin mocks * Rename ReadFileAtPath to ReadFile
* Feature/fileinfo create copy (#9198)dmitrysamuylovpharo2018-08-021-0/+4
| | | | | | | | * Initial implementation of a CopyFileInfos function that creates new FileInfo objects copied from provided FileIds with the provided user as the creator and not linked to a post yet. This can subsequently be used to copy existing attachments from another post to attach to a new post without having to re-upload the actual files * added a unit test for the CopyFileInfos function * resolving pull request suggestions
* CSRF Token Implementation for Plugins (#9192)Daniel Schalla2018-08-011-0/+10
| | | | | | | | | | | | | | | | | deleted test config fix test config Dont wipe the session token for plugins Simplified Tokens; Generate CSRF for other sessions Remove CSRF from Access Token; Remove Getter/Setter from Context fix removed setter remove getcsrf helper from plugin api enforce csrf only for cookie auth
* Pr 9039 (#9187)Martin Kraft2018-07-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MM-11065: Allow to search and get archived channels from the API * Fixing more tests * Add some unit tests * Add includeDeleted parameter to session permissions check function * More test fixing * Adding archive channels list in channels search * Add restriction for archived channel edition * Reverting permissions checks modification * Changed the query parameter to include_deleted * Enable search archive channels as true by default * Adding tests for verify search on deleted channels * Allowing to override archive channels during the imports * Fixed test * Search in archive channels from the API must be explicitly requested * Removing includeDeleted parameter from GetChannelByName and GetChannelByNameForTeam * Back to ViewArchivedChannels config * Fixing tests * Reverting GetChannelByName parameter * Add include deleted parameter on GetChannel functions in plugins api * Fixing tests
* Adding FileWillBeUploaded plugin hook (#9169)Christopher Speller2018-07-271-2/+7
| | | | | | | | | | | | | | * Adding file upload hook. * Adding hook test for FileWillBeUploaded * Some debugging fixes. * Fix typo. * Fixing double close * Fix capitalization on docs.
* make GetChannelByName take teamId first (#9134)Jesse Hallam2018-07-201-1/+5
| | | | | | | | | | | | | | * make GetChannelByName take teamId first I think it is more natural to accept `teamId`, then `channelName`, given the pattern followed by other Plugin API methods and even the SQL Store itself. The App layer seems unusual in accepting `channelName` first. This also re-generates the mocks fixing the parameter order for the recently added `UserStatus` APIs. * add GetChannelByNameForTeamName
* MM-10254 Add plugin APIs for getting/updating user statuses (#9101)Joram Wilander2018-07-161-0/+26
| | | | | | | | * Add plugin APIs for getting/updating user statuses * Add and update tests * Updates per feedback
* Don't panic if plugin manifest does not have settings (#9086)Joram Wilander2018-07-101-2/+4
|
* Adding ability for plugin system to respect the defaults listed in the ↵Christopher Speller2018-07-091-8/+23
| | | | plugin manifest. (#9066)
* First batch of new plugin api methods (#9022)Daniel Schalla2018-07-061-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | update api mocks Generated new hooks ChannelHasJoinedChannel Implementation User Left Team/Channel Hook; User Joined Team Hook Implementation Update RPC Client and Mocks gofmt go tests fix Add Config API Methods codegne Add Channel Has Been Created Hook Fix ChannelHasBeenCreated hook fix missing context param fix duplicate hooks; remove redudandcy
* MM-11029 Adding plugin logging functionality. (#9034)Christopher Speller2018-07-031-4/+20
| | | | | | | | | | | | * Capturing stdout, stderr of plugins in logs. * Cleanup go-plugin debug logs. * Adding logging to plugin API * Generating mocks. * godoc convention
* MM-9674 Add plugin API for publishing custom WebSocket events (#8999)Joram Wilander2018-06-271-0/+9
| | | | | | | | * Add plugin API for publishing custom WebSocket events * Add clearer payload comment * Update comment
* MM-10702 Moving plugins to use hashicorp go-plugin. (#8978)Christopher Speller2018-06-251-133/+13
| | | | | | * Moving plugins to use hashicorp go-plugin. * Tweaks from feedback.
* MM-10412: Adds deleteBy prop to posts. (#8896)Martin Kraft2018-06-011-1/+1
|
* MM-8678: add CUD support for channel members via plugins (#8565)Jesse Hallam2018-04-061-0/+25
| | | | | | | | | | | | * add CUD support for channel members via plugins This effectively exposes AddChannelMember, UpdateChannelMemberRoles, UpdateChannelMemberNotifyProps and LeaveChannel via the plugin API. It also modifies the semantics of AddChannelMember to explicitly allow for an empty user requestor, left as such for now via the plugin API. * change the signature of AddChannelMember to accept a channel id instead of a channel
* Add plugin slash command support (#7941)Chris2017-12-081-0/+9
| | | | | | | | * add plugin slash command support * remove unused string * rebase
* Add GetChannelMember method to plugin API (#7930)Joram Wilander2017-12-051-0/+4
|
* PLT-8131 (part2) Add plugin key value store support (#7902)Joram Wilander2017-11-271-0/+260
* Add plugin key value store support * Add localization strings * Updates per feedback