Age | Commit message (Collapse) | Author |
|
The refs hash is used to determine what branches and tags have a commit
as head in the network graph. The previous implementation depended on
Rugged#references. The problem with this implementation was that it
depended on rugged, but also that it iterated over all references and
thus loading more data than needed if for example the project uses CI/CD
environments, Pipelines, or Merge Requests.
Given only refs are checked the network cares about the GraphHelper#refs
method has no need to reject those, simplifying the method.
Closes gitlab-org/gitaly#880
|
|
Function `pluralize` already returns the number along with pluralized word.
|
|
Printing just `[<number>]` was confusing - it looks like a ghost branch or something.
Add `note` (or `notes`, depending on number of notes) to give some details of what this number means.
Refactor code to follow DRY principle.
|
|
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
|
Being the good boyscouts, but mainly because of [the comment in the
review](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12378#note_33302115)
the words used for classes and variables are changed to not use builds
anymore.
|
|
Achieved by using another table, which both has better indexes and
is smaller. Now the data provided for the user is more valueable too.
|
|
|
|
Closes #2702
|
|
|
|
|
|
|
|
|
|
|
|
template(show.json.erb).
Because model shouldn't know about view logic.
|