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
2022-12-09Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2022-08-31Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2022-07-28Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-10-28Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-08-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-03-05Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-01-12Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-04-27Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-28Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-06-14Fix inability to set visibility_level on project via APIStan Hu
Consider the scenario: 1. The default visibility level is set to internal 2. A user attempts to create a private project within a private group Previously this would always fail because default_value_for would overwrite the private visibility setting, no matter what visibility_level were specified. This was happening because default_value_for was confused by the default value of 0 specified by the database schema. default_value_for attempts to assign the default value in the block by checking whether the attribute has changed. The problem is that since the default value by the database was 0, and the user requested 0, this appeared as though no changes were made. As a result, default_value_for would always overwrite the user's preference. To fix this, we remove the use of default_value_for and only set the visibility level to the default application setting when no preference has been given at creation time. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63158
2019-04-12Squashed commits and modified visibility level outputSara Ahbabou
Added changelog and rebased
2018-10-22Enable frozen string for lib/gitlab/*.rbgfyoung
2018-02-02Merge branch 'bvl-fix-500-on-fork-without-restricted-visibility-levels' into ↵Douwe Maan
'master' Avoid error when creating forks and restricted levels are defined Closes #42607 See merge request gitlab-org/gitlab-ce!16881
2018-02-02use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa
including/extending it
2018-02-02Avoid error when no restricted levels are definedBob Van Landuyt
When no visibility levels are defined they could sometimes return `nil` instead of an empty array. In this case we want to allow all levels.
2017-12-29Forking a project to a namespace with lower visibility.Bob Van Landuyt
In this case the project will get the minimum between both visibilities. If that visibility is restricted, then a lower level will be picked.
2017-11-16Adds Rubocop rule for line break after guard clauseJacopo
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-07-13Always return the translated level name.Ruben Davila
There are many places that expect the `.level_name` method to return the translated level name.
2017-06-23Add User#full_private_access? to check if user has Private accessToon Claes
In CE only the admin has access to all private groups & projects. In EE also an auditor can have full private access. To overcome merge conflicts, or accidental incorrect access rights, abstract this out in `User#full_private_access?`. `User#admin?` now only should be used for admin-only features. For private access-related features `User#full_private_access?` should be used. Backported from gitlab-org/gitlab-ee!2199
2017-06-16Refactor ProjectsFinder#init_collectionYorick Peterse
This changes ProjectsFinder#init_collection so it no longer relies on a UNION. For example, to get starred projects of a user we used to run: SELECT projects.* FROM projects WHERE projects.pending_delete = 'f' AND ( projects.id IN ( SELECT projects.id FROM projects INNER JOIN users_star_projects ON users_star_projects.project_id = projects.id INNER JOIN project_authorizations ON projects.id = project_authorizations.project_id WHERE projects.pending_delete = 'f' AND project_authorizations.user_id = 1 AND users_star_projects.user_id = 1 UNION SELECT projects.id FROM projects INNER JOIN users_star_projects ON users_star_projects.project_id = projects.id WHERE projects.visibility_level IN (20, 10) AND users_star_projects.user_id = 1 ) ) ORDER BY projects.id DESC; With these changes the above query is turned into the following instead: SELECT projects.* FROM projects INNER JOIN users_star_projects ON users_star_projects.project_id = projects.id WHERE projects.pending_delete = 'f' AND ( EXISTS ( SELECT 1 FROM project_authorizations WHERE project_authorizations.user_id = 1 AND (project_id = projects.id) ) OR projects.visibility_level IN (20,10) ) AND users_star_projects.user_id = 1 ORDER BY projects.id DESC; This query in turn produces a better execution plan and takes less time, though the difference is only a few milliseconds (this however depends on the amount of data involved and additional conditions that may be added).
2017-06-07Translate project & repository pagesBob Van Landuyt
2017-06-02Enable the Style/PreferredHashMethods copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-09Remove the User#is_admin? methodblackst0ne
2017-03-21Make level_value accept string integersToon Claes
When a VisibilityLevel is an integer formatted as a string, convert it to an integer, instead of looking it up in the hash map. When the value is not recognized, default to PRIVATE.
2017-03-02Use string based `visibility` getter & setterToon Claes
Add `visibility` & `visibility=` methods to the `Gitlab::VisibilityLevel` module so the `visibility_level` can be get/set with a string value.
2017-03-02A VisibilityLevel also can be presented as stringToon Claes
For the API, the VisibilityLevel will be exposed as String instead of Integer. So add the string values and method to translate a level integer to a string.
2017-02-23Enable Rails/DelegateDouwe Maan
2017-02-07List all groups/projects for admins on explore pagesDouwe Maan
2017-01-20Backport changes introduced by ↵Kamil Trzcinski
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1083
2016-05-25Fix forks creation when visibility level is restrictedFelipe Artur
2016-03-21Fix specsDouwe Maan
2016-03-20Tweaks, refactoring, and specsDouwe Maan
2016-03-18Improve group visibility level featureZeger-Jan van de Weg
2016-03-18Code fixesFelipe Artur
2016-03-10Prevent projects to have higher visibility than groupsFelipe Artur
Prevent Groups to have smaller visibility than projects Add default_group_visibility_level to configuration Code improvements
2015-11-05Fix GitlabV::isibilityLevel::level_name methodTomasz Maczukin
2015-11-03Move level_name resolving to Gitlan::VisibilityLevelTomasz Maczukin
2015-07-06Fork visibility level fixValery Sizov
2015-03-18Move application setting to separate variable.Marin Jankovski
2015-03-18Handle nil restricted visibility settingsVinnie Okada
Return `true` from `non_restricted_level?` when the `restricted_visibility_levels` setting is nil.
2015-03-07Move restricted visibility settings to the UIVinnie Okada
Add checkboxes to the application settings page for restricted visibility levels, and remove those settings from gitlab.yml.
2014-08-28block visibility level restriction override in controllerJob van der Voort
2014-07-16Removed some constant allready defined warningsJeroen van Baarsen
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2013-11-27Adding authenticated public mode (internal).Jason Hollingsworth
Added visibility_level icons to project view (rather than just text). Added public projects to search results. Added ability to restrict visibility levels standard users can set.