BigW Consortium Gitlab
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.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
mentionable | Loading commit data... | |
access_requestable.rb | Loading commit data... | |
avatarable.rb | Loading commit data... | |
awardable.rb | Loading commit data... | |
blob_like.rb | Loading commit data... | |
cache_markdown_field.rb | Loading commit data... | |
case_sensitivity.rb | Loading commit data... | |
created_at_filterable.rb | Loading commit data... | |
discussion_on_diff.rb | Loading commit data... | |
each_batch.rb | Loading commit data... | |
editable.rb | Loading commit data... | |
expirable.rb | Loading commit data... | |
faster_cache_keys.rb | Loading commit data... | |
feature_gate.rb | Loading commit data... | |
ghost_user.rb | Loading commit data... | |
has_status.rb | Loading commit data... | |
has_variable.rb | Loading commit data... | |
ignorable_column.rb | Loading commit data... | |
importable.rb | Loading commit data... | |
internal_id.rb | Loading commit data... | |
issuable.rb | Loading commit data... | |
mentionable.rb | Loading commit data... | |
milestoneish.rb | Loading commit data... | |
note_on_diff.rb | Loading commit data... | |
noteable.rb | Loading commit data... | |
participable.rb | Loading commit data... | |
presentable.rb | Loading commit data... | |
project_features_compatibility.rb | Loading commit data... | |
protected_branch_access.rb | Loading commit data... | |
protected_ref.rb | Loading commit data... | |
protected_ref_access.rb | Loading commit data... | |
protected_tag_access.rb | Loading commit data... | |
reactive_caching.rb | Loading commit data... | |
reactive_service.rb | Loading commit data... | |
referable.rb | Loading commit data... | |
relative_positioning.rb | Loading commit data... | |
repository_mirroring.rb | Loading commit data... | |
resolvable_discussion.rb | Loading commit data... | |
resolvable_note.rb | Loading commit data... | |
routable.rb | Loading commit data... | |
select_for_project_authorization.rb | Loading commit data... | |
sha_attribute.rb | Loading commit data... | |
sortable.rb | Loading commit data... | |
spammable.rb | Loading commit data... | |
strip_attribute.rb | Loading commit data... | |
subscribable.rb | Loading commit data... | |
taskable.rb | Loading commit data... | |
time_trackable.rb | Loading commit data... | |
token_authenticatable.rb | Loading commit data... | |
uniquify.rb | Loading commit data... | |
valid_attribute.rb | Loading commit data... |