Commit Graph

46 Commits

Author SHA1 Message Date
GitLab Bot 5ab92edc77 Add latest changes from gitlab-org/gitlab@master 2022-12-02 06:08:59 +00:00
GitLab Bot e01e71a98f Add latest changes from gitlab-org/gitlab@master 2022-08-23 15:09:40 +00:00
GitLab Bot ae6b82598f Add latest changes from gitlab-org/gitlab@master 2022-04-08 09:08:18 +00:00
GitLab Bot 32bbedbc21 Add latest changes from gitlab-org/gitlab@master 2022-03-31 21:08:16 +00:00
GitLab Bot 6a5b78ac69 Add latest changes from gitlab-org/gitlab@master 2021-12-07 03:12:22 +00:00
GitLab Bot d9115c7779 Add latest changes from gitlab-org/gitlab@master 2021-08-31 21:10:43 +00:00
GitLab Bot e5e0589e09 Add latest changes from gitlab-org/gitlab@master 2021-04-26 12:09:44 +00:00
GitLab Bot a071c2888d Add latest changes from gitlab-org/gitlab@master 2020-09-23 12:09:58 +00:00
GitLab Bot 88bff01768 Add latest changes from gitlab-org/gitlab@master 2020-09-21 18:09:58 +00:00
GitLab Bot d7b136d547 Add latest changes from gitlab-org/gitlab@master 2020-05-28 21:08:22 +00:00
GitLab Bot 6ac4a6713e Add latest changes from gitlab-org/gitlab@master 2020-03-27 09:08:28 +00:00
GitLab Bot e80e0dd64f Add latest changes from gitlab-org/gitlab@master 2020-03-26 15:08:16 +00:00
GitLab Bot 619d0b6922 Add latest changes from gitlab-org/gitlab@master 2020-02-26 18:09:24 +00:00
GitLab Bot ae78b85a25 Add latest changes from gitlab-org/gitlab@master 2020-02-24 12:09:00 +00:00
GitLab Bot 0d6fa03312 Add latest changes from gitlab-org/gitlab@master 2020-02-06 18:08:54 +00:00
GitLab Bot 7e8278c0f4 Add latest changes from gitlab-org/gitlab@master 2020-01-28 09:09:06 +00:00
GitLab Bot cfc792b9ca Add latest changes from gitlab-org/gitlab@master 2019-12-10 07:53:40 +00:00
Stan Hu 0d538e44af Merge branch 'optimise-import-performance' into 'master'
Optimise import performance

Closes #64924

See merge request gitlab-org/gitlab-ce!31045
2019-07-24 18:01:44 +00:00
Kamil Trzciński 8d1e97fc3b Optimise import performance
- Fix `O(n)` complexity of `append_or_update_attribute`,
  we append objects to an array and re-save project
- Remove the usage of `keys.include?` as it performs `O(n)`
  search, instead use `.has_key?`
- Remove the usage of `.keys.first` as it performs a copy
  of all keys, instead use `.first.first`
2019-07-24 16:24:28 +02:00
George Koltsov 3463c24d40 Add changelog entry 2019-07-23 09:23:50 +01:00
George Koltsov 8e6af8c59f Add better error message MembersMapper#ensure_default_member!
More details in: https://gitlab.com/gitlab-org/gitlab-ce/issues/64377
2019-07-17 11:30:31 +01:00
Liam McAndrew 5ddb32f382 Fix order dependency with user params during imports 2019-05-28 10:31:51 +00:00
James Lopez 30d915110f Fix issue importing members with owner access 2019-05-23 13:10:38 +00:00
gfyoung 7ec8af5017 Enable even more frozen string for lib/gitlab
Enables frozen string for the following:

* lib/gitlab/hook_data/**/*.rb
* lib/gitlab/i18n/**/*.rb
* lib/gitlab/import/**/*.rb
* lib/gitlab/import_export/**/*.rb
* lib/gitlab/kubernetes/**/*.rb
* lib/gitlab/legacy_github_import/**/*.rb
* lib/gitlab/manifest_import/**/*.rb
* lib/gitlab/metrics/**/*.rb
* lib/gitlab/middleware/**/*.rb

Partially addresses gitlab-org/gitlab-ce#47424.
2018-11-16 17:41:14 -08:00
Yorick Peterse 9606dbbb03
Whitelist existing destroy_all offenses
This whitelists all existing places where we use "destroy_all".
2018-08-16 17:29:37 +02:00
Mark Chao a63bce1a4b Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
James Lopez 8409340b3b Add missing group members to export for I/E 2017-02-07 11:06:05 +01:00
James Lopez 8ea1dafe83 use destroy_all 2017-01-31 19:20:35 +01:00
James Lopez 918eaba0c3 remove old project members from project 2017-01-31 16:32:26 +01:00
James Lopez e8396d8e73 fix member mapper spec 2017-01-20 14:37:52 +01:00
James Lopez 17c099161e fix and refactor note user mapping 2017-01-18 17:40:24 +01:00
James Lopez 35442766cf do not map usersat all unless admin 2017-01-18 14:13:01 +01:00
Douwe Maan cfb511ea69 Merge branch 'fix/import-projectmember-security' into 'security'
Fix Import/Export foreign key issue to do with project members

Cleans-up any foreign keys in `ProjectMember` - same as we do with the rest of the models when importing.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23837 and https://gitlab.com/gitlab-org/gitlab-ce/issues/23739

See merge request !2020

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-03 16:04:18 +01:00
James Lopez f04e9dad47 Support pending invitation project members importing projects 2016-08-08 17:25:17 +02:00
Grzegorz Bizon 9e211091a8 Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
James Lopez 833dc3204d few more changes based on feedback 2016-06-13 16:55:51 +02:00
James Lopez f4d762d7c2 addressing MR feedback, few changes to members mapper 2016-06-13 16:12:40 +02:00
James Lopez 102074c801 more and more refactoring 2016-06-02 10:59:54 +02:00
James Lopez 7c8359b744 started refactoring some stuff based on MR feedback 2016-06-01 18:03:51 +02:00
James Lopez dd86c91c73 fixed small issue mapping members 2016-05-19 17:02:49 +02:00
James Lopez 1466997755 import uploads. Fixed a few things to do with members, triggers, etc... 2016-05-19 15:36:20 +02:00
James Lopez bf81c588fd fix issue with mapping members 2016-05-13 19:51:07 +02:00
James Lopez 2e1decd061 restricted actual member mapping to admins 2016-05-13 17:17:46 +02:00
James Lopez 1eb802cde3 fixed leaving comments on notes about missing authors 2016-05-13 16:25:27 +02:00
James Lopez 25a1c6541a add message to notes about missing author on import 2016-05-13 12:33:13 +02:00
James Lopez 97c3aff16f refactored import stuff, moved to lib 2016-04-14 17:10:57 +02:00