Commit graph

21 commits

Author SHA1 Message Date
GitLab Bot
7dd9256e5e Add latest changes from gitlab-org/gitlab@master 2021-11-09 03:42:22 +00:00
GitLab Bot
0ae8428c8e Add latest changes from gitlab-org/gitlab@master 2021-05-11 21:10:21 +00:00
GitLab Bot
3257ae3af0 Add latest changes from gitlab-org/gitlab@master 2021-04-19 09:09:30 +00:00
GitLab Bot
208ef94554 Add latest changes from gitlab-org/gitlab@master 2021-04-15 00:09:12 +00:00
GitLab Bot
84dd3070df Add latest changes from gitlab-org/gitlab@master 2021-01-12 15:10:37 +00:00
GitLab Bot
90156f527b Add latest changes from gitlab-org/gitlab@master 2020-08-12 06:09:53 +00:00
gfyoung
1993a4449a Enable frozen string for app/helpers/**/*.rb
Partially addresses #47424.
2018-09-06 17:33:46 -07:00
Zeger-Jan van de Weg
73e78c4e15
Don't use rugged in Repository#refs_hash
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
2018-02-07 15:07:03 +01:00
Vladislav Kaverin
5efd2dd035 Fix graph notes number duplication.
Function `pluralize` already returns the number along with pluralized word.
2017-12-03 02:37:29 +03:00
Vladislav Kaverin
fee5e17fe0 Print notes number explained.
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.
2017-09-08 11:36:58 +04:00
Rémy Coutable
c946ee1282
Enable the Layout/SpaceBeforeBlockBraces cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-09 11:52:22 +02:00
Z.J. van de Weg
9b2ae90d2c Remove references to build in pipeline charts
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.
2017-06-23 14:50:03 +02:00
Z.J. van de Weg
13d39971f3 Improve performance for pipeline charts
Achieved by using another table, which both has better indexes and
is smaller. Now the data provided for the user is more valueable too.
2017-06-23 11:46:55 +02:00
Kamil Trzcinski
e80e3f5372 Migrate CI::Project to Project 2015-12-11 18:02:09 +01:00
Stan Hu
150fb81ef9 Remove git refs used internally by GitLab from network graph
Closes #2702
2015-09-23 08:56:32 -07:00
Ciro Santilli
33c9f05c6b Append in place for strings and arrays 2015-01-01 21:12:00 +01:00
Hiroyuki Sato
fd0afcc996 Remove the dependancy of grit from class Network::Graph 2013-08-20 12:05:23 +09:00
Sato Hiroyuki
63b58b9491 Reducing database access. 2013-04-24 15:06:31 +00:00
Sato Hiroyuki
b49c1cb161 Display note count on network graph. 2013-03-26 09:51:39 +09:00
Sato Hiroyuki
784aa266bd Refactor: grouping parent and their space by including array. 2013-03-07 15:19:42 +09:00
Sato Hiroyuki
2f7f46b256 Refactor: replace "render :json = graph.to_json" to view template(show.json.erb).
Because model shouldn't know about view logic.
2013-03-07 15:19:32 +09:00