1. 29 Mar, 2019 2 commits
  2. 27 Mar, 2019 2 commits
    • Jason Blais's avatar
      Update LICENSE.txt (#10512) · cbf74d86
      Jason Blais authored
      The `config/` folder is licensed under Apache 2.0.
      
      Previously, this folder contained data files for default.json and timezones.json. However, in the past month, we have repurposed the config folder, which will autogenerate the config file in an upcoming release.
      
      To account for the restructuring of the config folder, `config/` is no longer considered to be licensed with Apache 2.0. In the near term, we'll keep `config/default.json` licensed under Apache 2.0 for compatibility with previous releases, and then later remove it from the list once `default.json` is replaced with the auto-generation of the config file.
      cbf74d86
    • Harshil Sharma's avatar
      Returned User TermsOfService Data in Certain GetUser APIs To Be Used on Webapp... · e90b2de5
      Harshil Sharma authored
      Returned User TermsOfService Data in Certain GetUser APIs To Be Used on Webapp for Decicion Making (#10478)
      
      * Used user TOS data embedded in user object itself
      
      * #MI-372 Added user TOS data in getUserByUsername API and updated tests
      
      * #MI-372 returned user TOS data only for admin or self
      
      * #MI-372 fixed tests
      
      * #MI-372 added user ID checks in a missing place
      e90b2de5
  3. 26 Mar, 2019 6 commits
  4. 22 Mar, 2019 1 commit
  5. 21 Mar, 2019 1 commit
    • Jesse Hallam's avatar
      MM-14441: restrict system admin config (#10477) · 8c8b1bbc
      Jesse Hallam authored
      * tweak utils.Merge docs
      
      * move merge_test to utils_test package for easier testing
      
      * utils: support MergeConfig and StructFieldFilter
      
      * constrain updating certain fields by the restricted system admin
      8c8b1bbc
  6. 20 Mar, 2019 2 commits
  7. 19 Mar, 2019 5 commits
    • Christopher Speller's avatar
    • Sandeep Sukhani's avatar
      [MM-13341] Add an upgrade test to verify schema (#10419) · a9c327c0
      Sandeep Sukhani authored
      * [MM-13341] Add an upgrade test to verify schema
      
      Upgrade test is done by following steps:
      1. A mysql dump generated from v4.10.0 is imported in a database and is ran through migration code
      2. Another fresh database is generated without any initial data, which gets latest schema.
      3. Diff between these 2 databases is generated using mysqldiff tool from mysql utilities
      
      For db setup, version cli command is used which takes care of migration or setup of fresh db
      
      * Using 5.7 tag for mysql docker image which is already used for db setup
      
      * Starting docker containers for db before running tests
      
      * Using db from v5.0.0 for migration test
      
      * Added migration test for psql and made some improvements in running commands in docker
      
      * Add postgres db dump file
      
      * Updated message
      
      * moved dump files to scripts and using error code from diff command
      a9c327c0
    • Christopher Poile's avatar
      MM-14442: Merge function, to enable merging of configs (#10423) · 498b988a
      Christopher Poile authored
      * MM-14442: Merge function, to enable merging of configs
      
      Merge will return a new struct of the same type as base and
      patch, with patch merged into base. Specifically, patch's values will be preferred
      except when patch's value is `nil`.
      
      Restrictions/guarantees:
      - base or patch will not be modified
      - base and patch can be pointers or values
      - base and patch must be the same type
      - base and patch must have no unexported types (at the moment)
      - if maps or slices are different, the entire map or slice will be
        replaced (at the moment)
      
      * License header
      
      * major rewrite addressing PR comments from Jesse
      
      * MM-14442: merge function for config files
      
      - simplified merge for slices and maps
      - fixed many problems with nested pointers/maps/slices
      - all references are cloned
      - 54 new tests, simplified tests for specific problems
      
      * MM-14442: fixing formatting, comments
      498b988a
    • Miguel de la Cruz's avatar
      [MM-14253] Adds channels and users to the bulk index process (#10434) · 372ef87f
      Miguel de la Cruz authored
      * [MM-14253] Adds channels and users to the bulk index process
      
      * Add support for PostgreSQL and sort the user query result
      
      * Add tests for user and channel batch queries
      
      * Fix test times
      372ef87f
    • Jesús Espino's avatar
      Adding list/join public/private teams permissions (#10309) · 5a9d95d9
      Jesús Espino authored
      * Adding list/join public/private teams permissions
      
      * Add permission migration and allow to migrate based on role name
      
      * Adding JoinTeam new endpoint
      
      * Addressing PR review comments
      
      * Keep the previous API consistent
      5a9d95d9
  8. 18 Mar, 2019 4 commits
  9. 15 Mar, 2019 6 commits
    • Harrison Healey's avatar
      MM-14620 Specify parameter name for PluginAPI.GetUsers (#10456) · 078e678a
      Harrison Healey authored
      This is to fix the generated code so that it actually passes arguments correctly. If you look at the diff, the client-side call doesn't actually pass any values for the unnamed parameter.
      
      I also filed https://mattermost.atlassian.net/browse/MM-14621 in case we want to actually fix the generator code.
      
      #### Ticket Link
      https://mattermost.atlassian.net/browse/MM-14620
      078e678a
    • Miguel de la Cruz's avatar
      Adds elasticsearch to the user and channel autocompletion functions (#10354) · 44887a02
      Miguel de la Cruz authored
      * Adds elasticsearch to the user and channel autocompletion functions
      
      * Implement channel store GetChannelsByIds test
      
      * Style changes and govet fixes
      
      * Add gofmt fixes
      
      * Extract default channel search limit to a const
      
      * Add StringSliceDiff function to the utils package
      
      * Honor USER_SEARCH_MAX_LIMIT on the user autocomplete api handler
      
      * Change the elasticsearch development image
      44887a02
    • Christopher Speller's avatar
      Improving default session timeout behavour. (#10453) · 5dae0876
      Christopher Speller authored
      * Improving default session timeout behavour.
      
      * Changing mind to 180 days instead of 548 days
      5dae0876
    • Fernando Correa Neto's avatar
      [MM 12464] Include DM/GM Channels and Their Posts in the Bulk Export (#10421) · 9abd4dd7
      Fernando Correa Neto authored
      * transplant the existing PR into the working tree
      
      * start addressing review comments
      
      * move existing direct channel export code into this branch
      
      * modify channel exporter to use squirell and populate members in two steps
      
      * use squirrel to build sql queries for channel and dm/gm export methods
      
      * remove debug helpers and use Username instead of UserId
      
      * unit test for DM Channel exporter
      
      * add more unit tests for channel export
      
      * add test for DM/GM post export
      
      * checkpoint with failing test for postgres
      
      * use getQueryBuilder to make sure squirrel uses the correct formatting
      for each database
      
      * add a test for post export
      
      * fix shadowed vars that broke the build
      
      * address review comments and add tests to support it
      
      * address review comments and add a mlog call
      
      * s/Info/Debug/
      
      * address review comments in post_store
      
      * address review comments in channel_store
      
      * address review comments in export
      
      * address review comment in post_store: drop GroupBy
      
      * address review comment on supplier: move getQueryBuilder to sqlstore
      
      * address review comments: explicit TearDown
      
      * address review comments: improve test coverage
      
      * address review comments: make sure public and private channels are excluded
      
      * address review comments: improve test coverage
      
      * address review comments: make sure Channels table gets truncated after
      each test
      
      * more cleanups and better assertions
      
      * wrap PostStore in a StoreTestWithSqlSupplier
      
      * last minute changes: improve post export test coverage and check members
      
      * address review comments: make sure all posts have their channel
      members set
      
      * address review comments: make sure all posts have their ChannelMembers
      exported correctly
      
      * gofmt fix
      
      * sort channels so it's possible to assert on index
      9abd4dd7
    • Daniel Schalla's avatar
    • Jesús Espino's avatar
      92150448
  10. 14 Mar, 2019 6 commits
  11. 13 Mar, 2019 2 commits
  12. 12 Mar, 2019 3 commits