f711b2df8b 
								
							 
						 
						
							
							
								
								Clean up some backend  
							
							
							
						 
						
							2017-08-03 14:29:35 +02:00  
				
					
						
							
							
								 
						
							
								933cfe1e0c 
								
							 
						 
						
							
							
								
								Add environment instance var to BlobController#show html resp  
							
							
							
						 
						
							2017-07-31 17:04:30 +01:00  
				
					
						
							
							
								 
						
							
								2a6f1b32dd 
								
							 
						 
						
							
							
								
								render blob/show if not show_new_repo?  
							
							
							
						 
						
							2017-07-28 19:40:12 +01:00  
				
					
						
							
							
								 
						
							
								6448368b5b 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'origin/master' into ide  
							
							
							
						 
						
							2017-07-20 17:51:07 +01:00  
				
					
						
							
							
								 
						
							
								62ad011340 
								
							 
						 
						
							
							
								
								Get single view working.  
							
							
							
						 
						
							2017-07-10 23:22:21 -04:00  
				
					
						
							
							
								 
						
							
								fe13f11041 
								
							 
						 
						
							
							
								
								Create and use project path helpers that only need a project, no namespace  
							
							
							
						 
						
							2017-07-05 11:11:59 -05:00  
				
					
						
							
							
								 
						
							
								0430b76441 
								
							 
						 
						
							
							
								
								Enable Style/DotPosition Rubocop  👮  
							
							
							
						 
						
							2017-06-21 13:48:12 +00:00  
				
					
						
							
							
								 
						
							
								b38c74d696 
								
							 
						 
						
							
							
								
								Revert 'New file from interface on existing branch'  
							
							
							
						 
						
							2017-06-09 10:10:47 -05:00  
				
					
						
							
							
								 
						
							
								e6e29f9220 
								
							 
						 
						
							
							
								
								Use Diff::File blob methods from diff highlighter  
							
							
							
						 
						
							2017-06-08 09:39:54 -05:00  
				
					
						
							
							
								 
						
							
								dbffaaa97e 
								
							 
						 
						
							
							
								
								Blob#load_all_data! doesn’t need an argument  
							
							
							
						 
						
							2017-06-07 14:28:33 -05:00  
				
					
						
							
							
								 
						
							
								aed0387f97 
								
							 
						 
						
							
							
								
								Consistent diff and blob size limit names  
							
							
							
						 
						
							2017-05-29 17:02:02 -05:00  
				
					
						
							
							
								 
						
							
								d3b24a7638 
								
							 
						 
						
							
							
								
								Show last commit for current tree on tree page  
							
							
							
						 
						
							2017-05-17 20:59:26 +03:00  
				
					
						
							
							
								 
						
							
								60ebd101d0 
								
							 
						 
						
							
							
								
								Use blob viewers for snippets  
							
							
							
						 
						
							2017-04-30 11:21:20 -05:00  
				
					
						
							
							
								 
						
							
								0e0c760e48 
								
							 
						 
						
							
							
								
								Refactor overriding max size  
							
							
							
						 
						
							2017-04-27 12:23:26 -05:00  
				
					
						
							
							
								 
						
							
								121c5f6618 
								
							 
						 
						
							
							
								
								Add JSON endpoint to get simple blob viewer  
							
							
							
						 
						
							2017-04-27 12:23:26 -05:00  
				
					
						
							
							
								 
						
							
								7f625f06d3 
								
							 
						 
						
							
							
								
								Pass project to Blob  
							
							
							
						 
						
							2017-04-27 12:23:26 -05:00  
				
					
						
							
							
								 
						
							
								d170133bde 
								
							 
						 
						
							
							
								
								Refactor changing files in web UI  
							
							
							
						 
						
							2017-04-20 00:37:44 +00:00  
				
					
						
							
							
								 
						
							
								b42dc1a52b 
								
							 
						 
						
							
							
								
								Linking to edit file directly  
							
							
							
						 
						
							2017-04-06 16:36:38 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								e0fe2834eb 
								
							 
						 
						
							
							
								
								New file from interface on existing branch  
							
							... 
							
							
							
							Now you can create a new file and select a target_branch != source_branch.
If the file that you want to create already exists on the target branch an error message is shown
A glDropdown is used to select and create a new branch instead of a text field. 
							
						 
						
							2017-03-13 16:36:11 +01:00  
				
					
						
							
							
								 
						
							
								6cc4cf1e15 
								
							 
						 
						
							
							
								
								Fix cherry-picking or reverting through an MR  
							
							
							
						 
						
							2017-03-02 17:41:05 -06:00  
				
					
						
							
							
								 
						
							
								811e598f60 
								
							 
						 
						
							
							
								
								Enable and autocorrect the CustomErrorClass cop  
							
							
							
						 
						
							2017-03-01 15:28:10 +00:00  
				
					
						
							
							
								 
						
							
								f40716f48a 
								
							 
						 
						
							
							
								
								No more and/or  
							
							
							
						 
						
							2017-02-21 16:31:14 -06:00  
				
					
						
							
							
								 
						
							
								fa2339641f 
								
							 
						 
						
							
							
								
								Rename Files::DeleteService to Files::DestroyService  
							
							... 
							
							
							
							Reason for renaming is to comply with naming convention of services in
codebase. 
							
						 
						
							2017-02-10 18:22:18 +01:00  
				
					
						
							
							
								 
						
							
								9d7c5e7584 
								
							 
						 
						
							
							
								
								Address feedback  
							
							
							
						 
						
							2017-02-06 18:06:46 -06:00  
				
					
						
							
							
								 
						
							
								6edc8d50dc 
								
							 
						 
						
							
							
								
								Add feature specs  
							
							
							
						 
						
							2017-02-06 16:12:24 -06:00  
				
					
						
							
							
								 
						
							
								c8b63a28af 
								
							 
						 
						
							
							
								
								Improve performance of finding last deployed environment  
							
							
							
						 
						
							2017-02-06 16:12:24 -06:00  
				
					
						
							
							
								 
						
							
								27f2ca9418 
								
							 
						 
						
							
							
								
								Add 'View on [env]' link to blobs and individual files in diffs  
							
							
							
						 
						
							2017-02-06 16:12:23 -06:00  
				
					
						
							
							
								 
						
							
								742cee756b 
								
							 
						 
						
							
							
								
								Merge branch 'jej-22869' into 'security'  
							
							... 
							
							
							
							Fix information disclosure in `Projects::BlobController#update`
It was possible to discover private project names by modifying `from_merge_request`parameter in `Projects::BlobController#update`. This fixes that.
- [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md ) entry added
- Tests
  - [x] Added for this feature/bug
  - [ ] All builds are passing
- [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html )
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides )
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits )
https://gitlab.com/gitlab-org/gitlab-ce/issues/22869 
See merge request !2023  
							
						 
						
							2016-11-28 21:25:18 -03:00  
				
					
						
							
							
								 
						
							
								8782bb96cc 
								
							 
						 
						
							
							
								
								Unify anchor link format for MR diff files  !7298  
							
							... 
							
							
							
							Right now, the following naming scheme for diff files is used: diff-1, diff-2, ... and also we have "internal" format which is file-path-HASH, where HASH is sha1 of file path.
Besides, we have HASH_lineA_lineB format to link exact line number in MR diff. It makes sence to unify the way we link diff from outside, while leave "file-path-HASH" format for internal (js) usage.
Changes in this commit  allow to link diff just by HASH, if we don't want specify exact lines, also it changes "file-path-HASH" and "diff-NUMBER" links in code to this unified format.
Inspired by #24010  and !7298  
							
						 
						
							2016-11-15 20:51:21 +03:00  
				
					
						
							
							
								 
						
							
								08dc8af733 
								
							 
						 
						
							
							
								
								fixes distinction between renaming a file and updating its content and  
							
							... 
							
							
							
							refactors update file 
							
						 
						
							2016-09-09 23:05:30 -04:00  
				
					
						
							
							
								 
						
							
								ade0c2c892 
								
							 
						 
						
							
							
								
								Prevents accidental overwrites of commits from UI  
							
							... 
							
							
							
							Currently when a user performs an update of a file through the UI  and there
has already been a change committed to the file the previous commits will be
overwritten without a check to see if the file has been changed.
This commit uses the last commit sha at the time the user starts editing the
file and compares it with the current sha of the file being edited to ensure
they are the same before committing the file. If the shas do not match we
throw an exception preventing the commit from the commit from occurring.
Fixes  #5857  
							
						 
						
							2016-08-15 02:34:55 +00:00  
				
					
						
							
							
								 
						
							
								b6d545df51 
								
							 
						 
						
							
							
								
								Add unfold links for Side-by-Side view  
							
							
							
						 
						
							2016-08-04 09:09:59 +03:00  
				
					
						
							
							
								 
						
							
								dd3addad48 
								
							 
						 
						
							
							
								
								renames :file_name to :file_path  
							
							
							
						 
						
							2016-07-13 11:19:14 +01:00  
				
					
						
							
							
								 
						
							
								98c0eb4615 
								
							 
						 
						
							
							
								
								test for nil params :file_name  
							
							
							
						 
						
							2016-07-12 15:55:16 +01:00  
				
					
						
							
							
								 
						
							
								893f3f2856 
								
							 
						 
						
							
							
								
								refactors update action to change commit_params with the correct path  
							
							
							
						 
						
							2016-07-12 15:55:16 +01:00  
				
					
						
							
							
								 
						
							
								cf96c7596a 
								
							 
						 
						
							
							
								
								changes the usasge of path to file_path on blob_controller for compatibillity with the create action  
							
							
							
						 
						
							2016-07-12 15:55:16 +01:00  
				
					
						
							
							
								 
						
							
								4deab9a540 
								
							 
						 
						
							
							
								
								fixes merge request edit bug where it would generate a cloned file and not remove the previous one  
							
							
							
						 
						
							2016-07-12 15:54:17 +01:00  
				
					
						
							
							
								 
						
							
								b0ce99f5b0 
								
							 
						 
						
							
							
								
								implements the form for renaming the new filename on the file edit page  
							
							
							
						 
						
							2016-07-12 15:48:43 +01:00  
				
					
						
							
							
								 
						
							
								fba72e1e0c 
								
							 
						 
						
							
							
								
								creates the update_file method in repository.rb and applies changes accordingly  
							
							
							
						 
						
							2016-07-12 15:48:24 +01:00  
				
					
						
							
							
								 
						
							
								09194eebff 
								
							 
						 
						
							
							
								
								successfully adds the new version with the updated name on the projects repo  
							
							
							
						 
						
							2016-07-12 15:46:14 +01:00  
				
					
						
							
							
								 
						
							
								d9561118e8 
								
							 
						 
						
							
							
								
								implements the form for renaming the new filename on the file edit page  
							
							
							
						 
						
							2016-07-12 15:46:14 +01:00  
				
					
						
							
							
								 
						
							
								f85834bc96 
								
							 
						 
						
							
							
								
								remove prints and useless comments  
							
							
							
						 
						
							2016-07-12 15:46:14 +01:00  
				
					
						
							
							
								 
						
							
								10954f93e9 
								
							 
						 
						
							
							
								
								successfully adds the new version with the updated name on the projects repo  
							
							
							
						 
						
							2016-07-12 15:45:59 +01:00  
				
					
						
							
							
								 
						
							
								50613fc6d3 
								
							 
						 
						
							
							
								
								implements the form for renaming the new filename on the file edit page  
							
							
							
						 
						
							2016-07-12 15:44:57 +01:00  
				
					
						
							
							
								 
						
							
								fc747dc346 
								
							 
						 
						
							
							
								
								fixes merge request edit bug where it would generate a cloned file and not remove the previous one  
							
							
							
						 
						
							2016-07-12 15:42:19 +01:00  
				
					
						
							
							
								 
						
							
								1d5d5b1a42 
								
							 
						 
						
							
							
								
								refactors blob_controller  
							
							
							
						 
						
							2016-07-12 15:33:39 +01:00  
				
					
						
							
							
								 
						
							
								9951854648 
								
							 
						 
						
							
							
								
								creates the update_file method in repository.rb and applies changes accordingly  
							
							
							
						 
						
							2016-07-12 15:24:17 +01:00  
				
					
						
							
							
								 
						
							
								bb627b6fc2 
								
							 
						 
						
							
							
								
								implements the form for renaming the new filename on the file edit page  
							
							
							
						 
						
							2016-07-12 15:23:35 +01:00  
				
					
						
							
							
								 
						
							
								ea50760b02 
								
							 
						 
						
							
							
								
								remove prints and useless comments  
							
							
							
						 
						
							2016-07-12 15:23:02 +01:00