Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-22Move Project#rename_repo to a service classYorick Peterse
This moves the logic of Project#rename_repo and all methods _only_ used by this method into a new service class: Projects::AfterRenameService. By moving this code into a separate service class we can more easily refactor it, and we also get rid of some RuboCop "disable" statements automatically. During the refactoring of this code, I removed most of the explicit logging using Gitlab::AppLogger. The data that was logged would not be useful when debugging renaming issues, as it does not add any value on top of data provided by users. I also removed a variety of comments that either mentioned something the code does in literal form, or contained various grammatical errors. Instead we now resort to more clearly named methods, removing the need for code comments. This method was chosen based on analysis in https://gitlab.com/gitlab-org/release/framework/issues/28. In this issue we determined this method has seen a total of 293 lines being changed in it. We also noticed that RuboCop determined the ABC size (https://www.softwarerenovation.com/ABCMetric.pdf) was too great.
2018-10-05Make GitLab pages support access controlTuomo Ala-Vannesluoma
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-08-16Resolve "Enable Auto DevOps instance-wide on GitLab.com"Dylan Griffith
2018-08-03Resolve "Hashed storage: extend "Enable hashed storage for all new projects" ↵Valery Sizov
to "for all new and renamed projects""
2018-07-31Remove todos when project feature visibility changesJarka Kadlecová
2018-07-30Delete todos when users loses target read permissionsJarka Kadlecová
2018-07-18Enable more frozen string in app/services/**/*.rbgfyoung
Partially addresses #47424.
2018-07-09Updates from `rubocop -a`Lin Jen-Shin
2018-06-06Don't update/create projects errors were addedBob Van Landuyt
This could be done when a block is passed in EE.
2018-06-05Merge branch ↵Kamil Trzciński
'46452-nomethoderror-undefined-method-previous_changes-for-nil-nilclass' into 'master' Resolve "NoMethodError: undefined method `previous_changes' for nil:NilClass" Closes #46452 See merge request gitlab-org/gitlab-ce!19190
2018-06-05Use nullcheck operator instead of checking for nullMatija Čupić
2018-06-04Yield to an optional block in Projects::UpdateServiceRobert Speicher
See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5825#note_75764799
2018-06-04Bring CE-EE parity to app/services/projects/update_service.rbRobert Speicher
2018-05-28Add check for nil auto_devops in Projects::UpdateServiceMatija Čupić
2018-03-22Add HTTPS-only pagesRob Watson
Closes #28857
2018-03-08Fix Error 500 when updating a projectStan Hu
If no parameters were specified for project features but Wikis were disabled, we would get "NoMethodError: undefined method `[]' for nil:NilClass". Closes #44019
2018-02-26Make sure wiki exists when it's enabledValery Sizov
2018-02-02use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa
including/extending it
2017-12-04Remove Auto DevOps checkboxes - backendbikebilly
2017-11-28BE for automatic pipeline when enabling Auto DevOpsMatija Čupić
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/38962
2017-09-13Fix project feature being deleted when updating project with invalid ↵Felipe Artur
visibility level
2017-09-06Refactor based on code reviewMichael Kozono
2017-09-06Dry up method for code climateMichael Kozono
2017-08-08Add checks for branch existence before changing HEADblackst0ne
2017-07-24Fix editing project with container images presentGrzegorz Bizon
2017-07-14Add specs for changing default branch in a projectGrzegorz Bizon
2017-07-13Recover from renaming project that has container imagesGrzegorz Bizon
2017-01-26Add a system hook for when a project is updated.Tommy Beadle
This sends a project_update hook when a repo is updated. This does not include renaming or transferring a project. Those are covered by project_rename and project_transfer. This will get called, however, when the visibility is changed.
2017-01-16Add a spec and actually display the flash noticeRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-15Fix to display notice when project settings updated.sandish chen
Change validity checking for UpdateService. Add return value for project update service. Return 302(redirect_to) when successfully updated. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-16Enable Style/MultilineOperationIndentation in Rubocop, fixes #25741Rydkin Maxim
2016-07-27Fix Project#to_param to keep invalid project suitable for use in URLsDouglas Barbosa Alexandre
2016-07-27Fix renaming repository when name contains invalid chars under settingsDouglas Barbosa Alexandre
2016-07-06Services: code style fixes, minor refactoringValery Sizov
2016-03-20Tweaks, refactoring, and specsDouwe Maan
2015-11-20Change update_forks_visibility_level into after_update hook in Project modelTomasz Maczukin
2015-11-20Prevent unnecessary forks iteration at parent updateTomasz Maczukin
2015-11-19Change forks method to has_many relationTomasz Maczukin
2015-11-05Update forks visibility_level after parent project visibility_level changeTomasz Maczukin
2015-11-03Fix Project update serviceTomasz Maczukin
When project is updated and it is a fork, then visibility_level should not be less restrictive than in its parent project.
2015-03-09Enforce restricted visibilities for snippetsVinnie Okada
Add new service classes to create and update project and personal snippets. These classes are responsible for enforcing restricted visibility settings for non-admin users.
2015-03-09Allow admins to override restricted visibilityVinnie Okada
Allow admins to use restricted visibility levels when creating or updating projects.
2014-06-27Make app works with strong paramsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-26Remove protected_atrributes gem and start moving to strong paramsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-17Remove project observerDmitriy Zaporozhets
2014-01-16Move all Context classes into ServicesDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>