summaryrefslogtreecommitdiff
path: root/spec/models/group_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-041-0/+39
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-281-0/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-131-0/+51
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-191-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-061-6/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-301-0/+122
|
* Add latest changes from gitlab-org/gitlab@masterlistGitLab Bot2019-10-171-0/+17
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-161-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-071-16/+0
|
* Limit access request email to 10 most recently active owners/maintainersManoj MJ2019-08-301-0/+19
| | | | | | This change limits the number of emails for new access requests notifications to 10 most recently active owners/maintainers
* Add group level container repository endpointsSteve Abrams2019-08-051-0/+1
| | | | | | | API endpoints for requesting container repositories and container repositories with their tag information are enabled for users that want to specify the group containing the repository rather than the specific project.
* Remove code related to object hierarchy in MySQLremove-nested-groups-checksHeinrich Lee Yu2019-07-251-14/+14
| | | | | These are not required because MySQL is not supported anymore
* Make pipeline emails respect group email setting63485-fix-pipeline-emails-to-use-group-settingHeinrich Lee Yu2019-07-231-0/+37
| | | | | When a user's notification email is set for a group, we should use that for pipeline emails
* Make subgroup_creation_level default to maintainer at SQL levelFabio Papa2019-07-191-3/+2
| | | | | | - Migration updates existing groups to "owner", then sets default to "maintainer" so that new groups will default to that - Update spec examples
* Make maintainers the default setting for creating subgroupsFabio Papa2019-07-191-0/+8
|
* Remove an example that is no longer necessaryFabio Papa2019-07-191-9/+0
|
* Style rules; Revert some examplesFabio Papa2019-07-191-2/+4
|
* Make subgroup_creation_level default to maintainer at SQL levelFabio Papa2019-07-191-3/+2
| | | | | | - Migration updates existing groups to "owner", then sets default to "maintainer" so that new groups will default to that - Update spec examples
* Make maintainers the default setting for creating subgroupsFabio Papa2019-07-191-0/+8
|
* Remove an example that is no longer necessaryFabio Papa2019-07-191-9/+0
|
* Style rules; Revert some examplesFabio Papa2019-07-191-1/+2
|
* Add examples specing the setting to choose who can create subgroupsFabio Papa2019-07-191-0/+8
| | | | | | | This setting is at the group level only. The default is specified to be maintainers and owners. **Specs only**, all failing.
* Remove group_clusters feature flagThong Kuah2019-06-281-29/+0
| | | | | | Now we have terminals for instance and group clusters we can remove the FF now. Deploying to group clusters has been working without complaints too.
* refactor: do not apply setting "require 2FA" for ancestor group membersRoger Meier2019-06-131-2/+2
|
* refactor: apply "require 2FA" to all subgroup and ancestor group members, ↵Roger Meier2019-06-131-47/+70
| | | | when changing
* fix tests for mysql db.Roger Rüttimann2019-06-131-4/+4
|
* remove experiments for 2fa requirements and fix testsRoger Rüttimann2019-06-131-1/+5
|
* require update_two_factor_requirement on all sub-entities usersRoger Rüttimann2019-06-131-1/+10
|
* add tests for 2fa requirment for all sub-entities members (subgroup and ↵Roger Rüttimann2019-06-131-4/+24
| | | | projects)
* Add part of needed codeGosia Ksionek2019-04-051-0/+8
| | | | | | | | | | | | | | | | | Add columns to store project creation settings Add project creation level column in groups and default project creation column in application settings Remove obsolete line from schema Update migration with project_creation_level column existence check Rename migrations to avoid conflicts Update migration methods Update migration method
* Autocorrect with RSpec/ExampleWording copThong Kuah2019-04-051-2/+2
| | | | | | | - rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
* Add cr remarksGosia Ksionek2019-04-041-0/+26
| | | | | | Chnage method used in model to make it more efficient database-wise Add additional spec
* Add # frozen_string_literal to spec/modelsThong Kuah2019-04-011-0/+2
| | | | Adds `# frozen_string_literal: true` to spec/models ruby files
* Enable/disable Auto DevOps at Group levelMayra Cabrera2019-03-121-0/+121
| | | | | | | | | | | | - Includes instance methods on Group model to detect when a group has AutoDevOps explicitly/implicitly enabled/disabled. - Includes migration to add a new column to namespaces table - Add UI necessary modifications - Add service and controller to update auto devops related instances - Updates project and groups auto devops badges Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52447
* Return max group access level in the projects APIAlejandro Rodríguez2019-01-161-0/+36
| | | | | | | | | | | | | | | | | Currently if a project is inside a nested group and a user doesn't have specific permissions for that group but does have permissions on a parent group the `GET /projects/:id` API call will return the following permissions: ```json permissions: { project_access: null, group_access: null } ``` It could also happen that the group specific permissions are of lower level than the ones the user has in parent groups. This patch makes it so that the permission returned for `group_access` is the highest from amongst the hierarchy, which is (ostensibly) the information that the API user is interested in for that field.
* Use FastDestroy for deleting uploadsJan Provaznik2018-12-061-1/+1
| | | | | | | | | | It gathers list of file paths to delete before destroying the parent object. Then after the parent_object is destroyed these paths are scheduled for deletion asynchronously. Carrierwave needed associated model for deleting upload file. To avoid this requirement, simple Fog/File layer is used directly for file deletion, this allows us to use just a simple list of paths.
* Resolve "Can add an existing group member into a group project with new ↵James Lopez2018-12-061-2/+2
| | | | permissions but permissions are not overridden"
* Unify into :group_clusters feature flagThong Kuah2018-12-051-0/+29
| | | | | | | With this MR, group clusters is now functional, so default to enabled. Have a single setting on the root ancestor group to enabled or disable group clusters feature as a whole
* Renaming Secret Variables in the codebaseMarcel Amirault2018-10-301-8/+8
|
* Associate clusters model to groups34758-create-group-clustersThong Kuah2018-10-291-0/+2
| | | | | | | | | | | | | | | | Even though we currently only should have one group for a cluster, we allow the flexibility to associate to other groups in the future. This also matches the runner <=> groups association. - Adds Cluster#first_group, aliased to Cluster#group. For the conceivable future, a cluster will have at most one group. - Prevent mixing of group and project clusters. If project type clusters, it should only have projects assigned. Similarly with groups. - Default cluster_type to :project_type. As it's very small table we can set default and null: false in one release.
* Applies the CE backport of EE#657Tiago Botelho2018-09-241-11/+31
|
* Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-111-24/+24
|
* Updates from `rubocop -a`Lin Jen-Shin2018-07-091-2/+2
|
* Merge branch 'issue_44230' into 'master'Sean McGivern2018-06-071-0/+24
|\ | | | | | | | | | | | | Apply notification settings level of groups to all child objects Closes #44230 See merge request gitlab-org/gitlab-ce!19191
| * Apply notification settings level of groups to all child objectsFelipe Artur2018-06-071-0/+24
| |
* | send ico files with inline dispositionAlexis Reigel2018-06-051-1/+1
|/
* Delete remote uploadsJan Provaznik2018-05-161-1/+9
| | | | | | | | | | | | | | | | | | | | | | ObjectStore uploader requires presence of associated `uploads` record when deleting the upload file (through the carrierwave's after_commit hook) because we keep info whether file is LOCAL or REMOTE in `upload` object. For this reason we can not destroy uploads as "dependent: :destroy" hook because these would be deleted too soon. Instead we rely on carrierwave's hook to destroy `uploads` in after_commit hook. But in before_destroy hook we still have to delete not-mounted uploads (which don't use carrierwave's destroy hook). This has to be done in before_Destroy instead of after_commit because `FileUpload` requires existence of model's object on destroy action. This is not ideal state of things, in a next step we should investigate how to unify model dependencies so we can use same workflow for all uploads. Related to #45425
* Backport of 4084-epics-username-autocompleteMario de la Ossa2018-05-041-0/+89
|
* Change avatar error message to include allowed file formatsFabian Schneider2018-03-221-1/+1
|
* Projects and groups badges APIFrancisco Javier López2018-03-051-0/+1
|