1. 27 Sep, 2018 1 commit
  2. 13 Sep, 2018 1 commit
  3. 03 Sep, 2018 1 commit
    • Daniel Schalla's avatar
      add megacheck as makefile target (#9288) · 531897b1
      Daniel Schalla authored
      Fix code issues in channel_test.go
      Fix Channel Test Issues detected by Megacheck
      Fix API Emoji Test Issues detected by Megacheck
      Fixed API Issues Reported by Megacheck
      Fixed App issues reported by megacheck
      Remaining fixes
      removed test added by mistake from old HEAD
      Store Fixes
      simplified returns
      Fix test for multi member channel delete
      revert to delete unused function
  4. 29 Aug, 2018 1 commit
  5. 20 Aug, 2018 2 commits
  6. 02 Aug, 2018 1 commit
    • dmitrysamuylovpharo's avatar
      Feature/fileinfo create copy (#9198) · 7a731d2b
      dmitrysamuylovpharo authored
      * 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
  7. 01 Aug, 2018 1 commit
    • Daniel Schalla's avatar
      CSRF Token Implementation for Plugins (#9192) · 2936dc87
      Daniel Schalla authored
      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
  8. 30 Jul, 2018 2 commits
    • Martin Kraft's avatar
      Pr 9039 (#9187) · 5872bf9c
      Martin Kraft authored
      * 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
    • Daniel Schalla's avatar
      Login Hooks (#9177) · d23ca071
      Daniel Schalla authored
      Tests; gofmt
  9. 27 Jul, 2018 1 commit
    • Jesse Hallam's avatar
      s/mlog/log/ in apiRPCClient (#9171) · 1d9c1448
      Jesse Hallam authored
      We never actually initialized `log` on apiRPCClient, and it can't log
      without making an RPC call anyway, so just switch to logging errors from
      the plugin to STDERR instead.
  10. 20 Jul, 2018 1 commit
    • Jesse Hallam's avatar
      make GetChannelByName take teamId first (#9134) · 908a682f
      Jesse Hallam authored
      * 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`
      This also re-generates the mocks fixing the parameter order for the
      recently added `UserStatus` APIs.
      * add GetChannelByNameForTeamName
  11. 16 Jul, 2018 1 commit
  12. 13 Jul, 2018 1 commit
    • Jesse Hallam's avatar
      MM-11292: clean up plugins GoDoc (#9109) · 17f211c3
      Jesse Hallam authored
      * clean up plugins GoDoc:
      - eliminate plugin.NewBlankContext() as unnecessary
      - export ValidIdRegex as a string vs. the less readable var
      - add/update various documentation strings
      - hide everything by default, except where used by client plugins or the mattermost-server. The exception to this rule are the `*(Args|Returns)` structs which must be public for go-plugin, but are now prefixed with `Z_` with a warning not to use.
      - include a top-level example to get plugin authors started
      This is not a breaking change for existing plugins compiled against
      * remove commented out ServeHTTPResponseWriter
      * update examples to match developer docs
      * add missing plugin/doc.go license header
  13. 06 Jul, 2018 2 commits
  14. 03 Jul, 2018 1 commit
  15. 27 Jun, 2018 1 commit
  16. 25 Jun, 2018 1 commit