Commit Graph

60 Commits

Author SHA1 Message Date
GitLab Bot 6de2a04a4e Add latest changes from gitlab-org/gitlab@master 2022-02-18 12:15:31 +00:00
GitLab Bot 6e70c2b428 Add latest changes from gitlab-org/gitlab@master 2022-01-19 00:12:04 +00:00
GitLab Bot d409d12963 Add latest changes from gitlab-org/gitlab@master 2022-01-17 18:16:07 +00:00
GitLab Bot 22391da126 Add latest changes from gitlab-org/gitlab@master 2022-01-11 12:14:06 +00:00
GitLab Bot 55242833f8 Add latest changes from gitlab-org/gitlab@master 2021-12-06 15:14:39 +00:00
GitLab Bot dc9ff5fda1 Add latest changes from gitlab-org/gitlab@master 2021-11-16 12:10:23 +00:00
GitLab Bot 60aef5496e Add latest changes from gitlab-org/gitlab@master 2021-11-12 18:12:20 +00:00
GitLab Bot 76cbe9e688 Add latest changes from gitlab-org/gitlab@master 2021-11-12 15:12:37 +00:00
GitLab Bot be7d70b884 Add latest changes from gitlab-org/gitlab@master 2021-10-11 06:13:09 +00:00
GitLab Bot e7527f5486 Add latest changes from gitlab-org/gitlab@master 2021-10-08 18:13:02 +00:00
GitLab Bot bea3a92105 Add latest changes from gitlab-org/gitlab@master 2021-09-02 15:11:35 +00:00
GitLab Bot 0b194c4854 Add latest changes from gitlab-org/gitlab@master 2021-07-14 12:09:23 +00:00
GitLab Bot 2ac4833015 Add latest changes from gitlab-org/gitlab@master 2020-10-08 18:08:32 +00:00
GitLab Bot 2f147005c5 Add latest changes from gitlab-org/gitlab@master 2020-07-11 00:09:17 +00:00
GitLab Bot 0a319374e7 Add latest changes from gitlab-org/gitlab@master 2020-07-08 06:09:13 +00:00
GitLab Bot ebe92e84a9 Add latest changes from gitlab-org/gitlab@master 2020-06-26 18:09:03 +00:00
GitLab Bot 1127990db8 Add latest changes from gitlab-org/gitlab@master 2020-06-22 03:08:17 +00:00
GitLab Bot c2908ec6a0 Add latest changes from gitlab-org/gitlab@master 2020-04-27 15:10:16 +00:00
GitLab Bot 0eb3d2f799 Add latest changes from gitlab-org/gitlab@master 2020-02-06 15:09:11 +00:00
GitLab Bot 9044365a91 Add latest changes from gitlab-org/gitlab@master 2020-01-15 15:08:32 +00:00
GitLab Bot b4028d4500 Add latest changes from gitlab-org/gitlab@master 2020-01-07 15:07:34 +00:00
GitLab Bot f1bb2a307e Add latest changes from gitlab-org/gitlab@master 2019-10-21 18:06:29 +00:00
Stan Hu 021e8790c6 Enable Gitaly FindCommit caching for TreeController
Accessing /namespace/project/tree/master appears to query
FindCommit 5 times with identical parameters. This reduces
the number of FindCommit queries to 1.
2019-04-07 20:59:40 -07:00
Martin Wortschack 5660690787 Externalize strings in projects controllers
- concerns
- dashboard
- groups
- import
2019-03-27 16:52:52 +00:00
Nick Thomas 178daffe70
Remove two unused formats from Projects::TreeController#show
I think these two have been have been replaced with the `logs_tree`
endpoint
2019-02-14 14:19:26 +00:00
gfyoung 12ee2753c1 Enable even more frozen string in app/controllers
Enables frozen string for some vestigial files as
well as the following:

* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb

Partially addresses #47424.
2018-09-25 22:43:49 -07:00
Dmitriy Zaporozhets 8fe9995f11
Replace deprecated name_with_namespace with full_name in app and spec
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-03-05 16:15:26 +02:00
Phil Hughes cbd3ce8f41
moved lfs_blob_ids method into ExtractsPath module 2017-12-14 11:59:01 +00:00
Phil Hughes 7d2affeff1
moved lfs blob fetch from extractspath file 2017-12-14 10:10:20 +00:00
Phil Hughes dec420feb3
fixed project homepage not having correct variable 2017-12-11 16:22:22 +00:00
Phil Hughes f38a6d6ee6
Added LFS badge to indicate LFS tracked files
Closes #15567
2017-12-11 12:17:11 +00:00
Phil Hughes 4699cf77b6
added feature spec 2017-10-23 10:47:22 +01:00
Phil Hughes c3dec96e83
Fixed bug when clicking file link causing user to navigate away
Adds a test for flattenedFiles
Changes the data method to not be an arrow method
Various other review fixes
2017-10-17 11:03:12 +01:00
Phil Hughes b1b91aa065
Refactored multi-file data structure
This moves away from storing in a single array just to render the table.
It now stores in a multi-dimensional array/object type where each entry
in the array can have its own tree. This makes storing the data for
future feature a little easier as there is only one way to store the
data.

Previously to insert a directory the code had to insert the directory
& then the file at the right point in the array. Now the directory
can be inserted anywhere & then a file can be quickly added into this
directory.

The rendering is still done with a single array, but this is handled
through underscore. Underscore takes the array & then goes through
each item to flatten it into one. It is done this way to save changing
the markup away from table, keeping it as a table keeps it semantically
correct.
2017-10-16 11:29:30 +01:00
Douwe Maan 711bb28568 Add Page-Title header to tree and blob JSON endpoints 2017-09-26 17:31:47 +02:00
Andrew Newdigate a1f96aa254 Workaround for n+1 in Projects::TreeController#show
See https://gitlab.com/gitlab-org/gitlab-ce/issues/38261
2017-09-22 17:53:08 +01:00
Luke "Jared" Bennett 6448368b5b
Merge remote-tracking branch 'origin/master' into ide 2017-07-20 17:51:07 +01:00
Douwe Maan fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
Douwe Maan d9b15661c9 Add experimental JSON format for tree controller 2017-06-13 21:33:26 -04:00
Douwe Maan b38c74d696 Revert 'New file from interface on existing branch' 2017-06-09 10:10:47 -05:00
Douwe Maan d3b24a7638 Show last commit for current tree on tree page 2017-05-17 20:59:26 +03:00
Rémy Coutable d40e1f547e Enable the Style/TrailingCommaInLiteral cop
Use the EnforcedStyleForMultiline: no_comma option.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Douwe Maan d170133bde Refactor changing files in web UI 2017-04-20 00:37:44 +00:00
Jacopo 7b04b63eeb New directory from interface on existing branch
The user can create a new directory on a different branch than the
source branch when the branch already exists.
2017-03-21 11:51:53 +01:00
Douwe Maan f40716f48a No more and/or 2017-02-21 16:31:14 -06:00
Douwe Maan f4f4a6b530 Fix specs and behavior for LFS files 2015-12-18 16:14:12 +01:00
Douwe Maan d9c82d679f Automatically fork a project when not allowed to edit a file. 2015-12-18 10:03:34 +01:00
Douwe Maan e945ec0280 Add "Start a new merge request" option to every commit form 2015-11-17 18:53:56 +01:00
Valery Sizov 8346dde052 Only render 404 page from /public 2015-10-13 20:12:34 +03:00
Stan Hu 0ab6ca93aa Add directory feature button
Change "+" icon under "Files" section to have three options:

* Create file
* Upload file
* New directory

Upload file is no longer accessible from the "Create file" page.
Users can now select a target branch in upload file as well.

Closes #2799: Fixes a bug where file modes were overwritten after a commit

Closes https://github.com/gitlabhq/gitlabhq/issues/8253: Existing files
can no longer be overwritten in the "Create file" section.

Closes #2557
2015-10-07 04:22:55 -07:00