Uploaded image for project: 'Mattermost'
  1. MM-9916

Add a config.json setting to disable the permanent APIv4 delete team parameter

    Details

    • Type: Story
    • Status: Closed
    • Resolution: Done
    • Fix Version/s: v5.0 (~June 2018)
    • Labels:
      None
    • Mana:
      2
    • Sprint:
      Mattermost Sprint 14
    • Mattermost Team:
      ABC
    • QA Test Steps:
      Hide
      1. Set `ServiceSettings.EnableAPITeamDeletion` to true and restart the server or reload the config from system console.
      2. As a system administrator, use Postman or curl to send a DELETE request to the end point "http://some-mattermost-url.com/api/v4/teams/{teamid}?permanent=true". Should get a 200 OK back.
      3. Check the database Teams table to make sure the team is actually deleted
      4. Set `ServiceSettings.EnableAPITeamDeletion` to false and restart the server or reload the config from system console.
      5. Make the same request as above but for a different team, should be a 200 again
      6. Check the database table again and that team should be still there with DeleteAt set
      Show
      1. Set `ServiceSettings.EnableAPITeamDeletion` to true and restart the server or reload the config from system console. 2. As a system administrator, use Postman or curl to send a DELETE request to the end point " http://some-mattermost-url.com/api/v4/teams/ {teamid}?permanent=true". Should get a 200 OK back. 3. Check the database Teams table to make sure the team is actually deleted 4. Set `ServiceSettings.EnableAPITeamDeletion` to false and restart the server or reload the config from system console. 5. Make the same request as above but for a different team, should be a 200 again 6. Check the database table again and that team should be still there with DeleteAt set
    • Epic Link:
    • QA Testing Areas:
      API

      Description

      Add a config.json setting to disable the permanent APIv4 delete team parameter.

      The setting should be off by default, so that an admin must enable it if they want to allow team admins permanently delete data. The setting is enabled by default for GitLab Omnibus so we don't break their existing CLI script.

        Attachments

          Activity

            People

            • Assignee:
              jwilander Joram Wilander
              Reporter:
              jason Jason Blais
              QA Assignee:
              Lindy Isherwood
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: