gitlab-ce/app/models/project_services
Yorick Peterse 6ef87a2083
Merge issuable "reopened" state into "opened"
Having two states that essentially mean the same thing is very much like
having a boolean "true" and boolean "mostly-true": it's rather silly.
This commit merges the "reopened" state into the "opened" state while
taking care of system notes still showing messages along the lines of
"Alice reopened this issue".

A big benefit from having only two states (opened and closed) is that
indexing and querying becomes simpler and more performant. For example,
to get all the opened queries we no longer have to query both states:

    SELECT *
    FROM issues
    WHERE project_id = 2
    AND state IN ('opened', 'reopened');

Instead we can query a single state directly, which can be much faster:

    SELECT *
    FROM issues
    WHERE project_id = 2
    AND state = 'opened';

Further, only having two states makes indexing easier as we will only
ever filter (and thus scan an index) using a single value. Partial
indexes could help but aren't supported on MySQL, complicating the
development process and not being helpful for MySQL.
2017-07-28 13:31:51 +02:00
..
chat_message Remove backticks from chat messages because they're not rendered as code 2017-06-19 11:57:03 -05:00
asana_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
assembla_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
bamboo_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
bugzilla_service.rb
buildkite_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
builds_email_service.rb All CI offline migrations 2017-03-17 23:06:11 +00:00
campfire_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
chat_notification_service.rb Add feature tests for improved JIRA settings 2017-06-01 07:47:15 +02:00
ci_service.rb
custom_issue_tracker_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
deployment_service.rb Address MR comments 2017-06-01 07:47:16 +02:00
drone_ci_service.rb Merge issuable "reopened" state into "opened" 2017-07-28 13:31:51 +02:00
emails_on_push_service.rb Enable the Style/TrailingCommaInLiteral cop 2017-05-10 18:25:45 +02:00
external_wiki_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
flowdock_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
gemnasium_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
gitlab_issue_tracker_service.rb Fix external issue trackers redirect 2017-07-18 11:44:47 -03:00
hipchat_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
irker_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
issue_tracker_service.rb Support both internal and external issue trackers 2017-07-24 08:13:43 +02:00
jira_service.rb Display specific error message when JIRA test fails 2017-07-27 07:51:36 +02:00
kubernetes_service.rb Resolve "Clarify k8s service keys" 2017-07-19 10:56:11 +00:00
mattermost_service.rb Allow chat notifications only for the default branch 2017-03-22 21:17:38 +01:00
mattermost_slash_commands_service.rb Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
microsoft_teams_service.rb Enable the Style/TrailingCommaInLiteral cop 2017-05-10 18:25:45 +02:00
mock_ci_service.rb Address MR comments 2017-06-01 07:47:16 +02:00
mock_deployment_service.rb Added mock deployment and monitoring service with environments fixtures 2017-04-05 11:04:34 +00:00
mock_monitoring_service.rb Address MR comments 2017-06-01 07:47:16 +02:00
monitoring_service.rb Custom queries for prometheus 2017-05-11 23:07:12 +02:00
pipelines_email_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
pivotaltracker_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
prometheus_service.rb Fix bug where Service `created_at` time was used instead of deployment time. 2017-06-22 21:19:55 +02:00
pushover_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
redmine_service.rb
slack_service.rb Allow chat notifications only for the default branch 2017-03-22 21:17:38 +01:00
slack_slash_commands_service.rb Rename "Slash commands" to "Quick actions" 2017-06-15 09:01:56 -05:00
slash_commands_service.rb Added Cop to blacklist the use of `dependent:` 2017-07-06 12:01:36 +02:00
teamcity_service.rb simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00