Commit Graph

1142 Commits

Author SHA1 Message Date
Etienne Baqué a43ab8d6a4 Added relationships between Release and Milestone
Modified schema via migrations.
Added one-to-one relationship between the two models.
Added changelog file
2019-09-03 09:38:59 +00:00
Manoj MJ b943baa42a Limit access request email to 10 most recently active owners/maintainers
This change limits the number of emails
for new access requests notifications to
10 most recently active owners/maintainers
2019-08-30 21:30:51 +00:00
Heinrich Lee Yu 1ee8d6385d Use `stub_full_request` to fix spec failure
Also change test URL sequest to .test TLD
2019-08-27 19:25:22 +08:00
Etienne Baqué 84d6dcbe50 Updated call to find deploy token 2019-08-26 19:39:48 -07:00
Gabriel Mazetto b70aabf9b3 Backport expired job artifact trait 2019-08-24 18:17:16 -03:00
Nick Thomas 3028cd687a Merge branch '39-count-unique-users-for-more-accurate-smau-reporting' into 'master'
Allow UsageData.count to use count_by:

See merge request gitlab-org/gitlab-ce!30770
2019-08-19 14:45:24 +00:00
Michael Kozono 9eabc0d6fc Merge branch 'legacy-attachments-migrate-fix' into 'master'
Migrate legacy uploads rake tasks

See merge request gitlab-org/gitlab-ce!29409
2019-08-16 22:07:56 +00:00
Kamil Trzciński 535c2d3c71 Merge branch 'mc/feature/pipeline-tracking-config-ce' into 'master'
Add `needs:` CI config option CE

Closes gitlab-ee#12334

See merge request gitlab-org/gitlab-ce!31346
2019-08-16 14:47:05 +00:00
Jarka Košanová 19db315734 Add rake tasks for migrating leacy uploads
- move uploads created by AttachmentUploader
- handle also files created for legacy_diff_notes
2019-08-16 07:52:30 +02:00
Brett Walker 3489dc3d72 Allow disabling group/project email notifications
- Adds UI to configure in group and project settings
- Removes notification configuration for users when
disabled at group or project level
2019-08-15 17:37:36 +00:00
Stan Hu 916f255bed Merge branch 'master' into sh-break-out-invited-group-members 2019-08-09 10:22:22 -07:00
Tiger e3696bf20e Final removal of KubernetesService
Creating new records has been disabled, and all
existing records been migrated to clusters as of
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28534
2019-08-08 09:47:07 +10:00
Stan Hu b1f4c3fae7 Merge branch 'master' into sh-break-out-invited-group-members 2019-08-07 00:28:24 -07:00
Tiger Watson 36a01a88ce Use separate Kubernetes namespaces per environment
Kubernetes deployments on new clusters will now have
a separate namespace per project environment, instead
of sharing a single namespace for the project.

Behaviour of existing clusters is unchanged.

All new functionality is controlled by the
:kubernetes_namespace_per_environment feature flag,
which is safe to enable/disable at any time.
2019-08-07 04:40:29 +00:00
Michael Kozono 9982cec611 Merge branch 'explicit-helm-factory-certs' into 'master'
Use stubbed key and certificate in Helm factory

See merge request gitlab-org/gitlab-ce!31169
2019-08-05 16:48:32 +00:00
Stan Hu caac3104c4 Make it easier to find invited group members
We had a number of team members struggle to find invited members of a
group. Searching for the e-mail address did not work because search only
works with members with user accounts.

This commit changes two things:

1. Breaks out the invited members into a separate table.
2. Adds search capability for the invited members.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61948
2019-08-05 11:21:41 +03:00
Matija Čupić 16084ee9d3
Port changes from EE
Ports changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/12343
2019-08-04 19:42:29 +02:00
Douglas Barbosa Alexandre b2dd581be3 Merge branch 'ce-docker_image_replication' into 'master'
Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3809

See merge request gitlab-org/gitlab-ce!31375
2019-08-01 20:15:51 +00:00
Valery Sizov f519a4b72f Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3809
Introducing Docker Registry replication
2019-08-01 20:38:07 +03:00
Kamil Trzciński e7ee84aad4 Add support for DAG
This implements the support for `needs:` keyword
as part of GitLab CI. That makes some of the jobs
to be run out of order.
2019-08-01 14:26:49 +00:00
Tiger 07572a93ac Use stubbed certificate and key in Helm factory 2019-08-01 13:59:29 +10:00
João Cunha 9aa31c8aef Remove typo from factory name
- the typo in this factory name was precluding us from properly
creating dynamic code to remove duplciation.
2019-07-30 16:32:42 +01:00
Matija Čupić a5aa40c5fe Add Job specific variables
Adds Job specific variables to facilitate specifying variables when
running manual jobs.
2019-07-29 07:43:10 +00:00
Thong Kuah 94bb660460 Add frozen_string_literal to spec/factories
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:18:39 +12:00
Luke Duncalfe d18ee3faad LFS export records repository_type data
A project can have the same `LfsObject` linked with up to three
`LfsObjectsProject` records. Each of these records would be for a
different repository, recorded in the `repository_type` property. The
different repositories at time of writing are "project", "wiki", and
"design". See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894

This change exports the list of `repository_type`s as a JSON mapping of
oid => repository_types, which are imported to recreate the correct
`LfsObjectsProject` records.

https://gitlab.com/gitlab-org/gitlab-ee/issues/11090
2019-07-24 11:23:51 +00:00
Robert Speicher 6c04066d45 Merge branch 'group_with_cluster_factory' into 'master'
Adds cluster_for_group factory for convenience

See merge request gitlab-org/gitlab-ce!30826
2019-07-22 20:36:50 +00:00
Vladimir Shushlin 77e2e45364 Validate certificate chain only if it's changed
This validation prevents the domain from being saved from the UI
e.g. when user tries to enable Let's Encrypt integration
2019-07-22 15:38:08 +00:00
Fabio Papa ac759aaaca Make subgroup_creation_level default to maintainer at SQL level
- Migration updates existing groups to "owner", then sets default to
  "maintainer" so that new groups will default to that
- Update spec examples
2019-07-19 14:17:01 -07:00
Fabio Papa 302316dac8 Add examples specing the setting to choose who can create subgroups
This setting is at the group level only. The default is specified to
be maintainers and owners.

**Specs only**, all failing.
2019-07-19 14:04:18 -07:00
Fabio Papa 3aa6daddee Make subgroup_creation_level default to maintainer at SQL level
- Migration updates existing groups to "owner", then sets default to
  "maintainer" so that new groups will default to that
- Update spec examples
2019-07-19 13:55:07 -07:00
Fabio Papa 16cc1300f5 Add examples specing the setting to choose who can create subgroups
This setting is at the group level only. The default is specified to
be maintainers and owners.

**Specs only**, all failing.
2019-07-19 13:35:34 -07:00
Fabio Papa 95708920ae Make subgroup_creation_level default to maintainer at SQL level
- Migration updates existing groups to "owner", then sets default to
  "maintainer" so that new groups will default to that
- Update spec examples
2019-07-19 13:06:50 -07:00
Fabio Papa 720dded1d5 Add examples specing the setting to choose who can create subgroups
This setting is at the group level only. The default is specified to
be maintainers and owners.

**Specs only**, all failing.
2019-07-19 12:32:20 -07:00
Fabio Papa 4b572f807c Make subgroup_creation_level default to maintainer at SQL level
- Migration updates existing groups to "owner", then sets default to
  "maintainer" so that new groups will default to that
- Update spec examples
2019-07-19 12:06:57 -07:00
Fabio Papa 396926bbe4 Add examples specing the setting to choose who can create subgroups
This setting is at the group level only. The default is specified to
be maintainers and owners.

**Specs only**, all failing.
2019-07-19 12:06:56 -07:00
Fabio Papa 44bd74cd0e Make subgroup_creation_level default to maintainer at SQL level
- Migration updates existing groups to "owner", then sets default to
  "maintainer" so that new groups will default to that
- Update spec examples
2019-07-19 12:06:56 -07:00
Fabio Papa 02b1235046 Add examples specing the setting to choose who can create subgroups
This setting is at the group level only. The default is specified to
be maintainers and owners.

**Specs only**, all failing.
2019-07-19 12:06:55 -07:00
Fabio Papa 81662f7b9f Make subgroup_creation_level default to maintainer at SQL level
- Migration updates existing groups to "owner", then sets default to
  "maintainer" so that new groups will default to that
- Update spec examples
2019-07-19 11:55:48 -07:00
Fabio Papa 7d061212b1 Add examples specing the setting to choose who can create subgroups
This setting is at the group level only. The default is specified to
be maintainers and owners.

**Specs only**, all failing.
2019-07-19 11:55:45 -07:00
Thong Kuah 88bf3fe8b4 Adds cluster_for_group factory for convienence
Also means we don't have to resort to an update statement to set parent
for child groups who also have clusters.

This is much shorter than

```
create(:cluster, :provided_by_gcp, :group, groups: [group])
```
2019-07-19 09:53:56 +12:00
Ash McKenzie f53112de59
New GroupMember.of_ldap_type scope 2019-07-18 12:34:17 +10:00
Vladimir Shushlin 0e62440722 Fix factory default for pages_access_level
Pages access level currently depends on project visibilty
which is ignored by factory, this commit fixes that
2019-07-17 19:52:03 +00:00
Jarka Košanová c8e24280c5 Simplify factories for services
- use predefined factories when creating
projects with services
- remove unnecessary arguments
2019-07-16 10:04:54 +02:00
Takuya Noguchi bd590e5573 Remove an extra whitespace in test files
Partial CE backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10565

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2019-07-14 10:05:14 +09:00
Jarka Košanová e276f44b40 Make sure all specs run properly
- handling properties needs to be skipped when
creating test records in order to test the legacy
data
2019-07-11 11:59:53 +02:00
Jason Goodman 7ecffe2987 Show upcoming status for releases
Add released_at field to releases API
Add released_at column to releases table
Return releases to the API sorted by released_at
2019-07-03 09:12:15 +00:00
Dmitriy Zaporozhets ca28f7f1e2 Merge branch '63690-issue-trackers-title' into 'master'
Use title and description fields for issue trackers

Closes #63690

See merge request gitlab-org/gitlab-ce!30096
2019-07-02 16:11:40 +00:00
Mayra Cabrera dfdfa913ba Includes logic to persist namespace statistics
- Add two new ActiveRecord models:
  - RootNamespaceStoragestatistics will persist root namespace statistics
  - NamespaceAggregationSchedule will save information when a new update
to the namespace statistics needs to be scheduled
- Inject into UpdateProjectStatistics concern a new callback that will
call an async job to insert a new row onto NamespaceAggregationSchedule
table
- When a new row is inserted a new job is scheduled. This job will
update call an specific service to update the statistics and after that
it will delete thee aggregated scheduled row
- The RefresherServices makes heavy use of arel to build composable
queries to update Namespace::RootStorageStatistics attributes.
- Add an extra worker to traverse pending rows on
NAmespace::AggregationSchedule table and schedule a worker for each one
of this rows.
- Add an extra worker to traverse pending rows on
NAmespace::AggregationSchedule table and schedule a worker for each one
of this rows
2019-07-02 14:44:39 +00:00
Jarka Košanová ddbbf453c7 Use title and description fields for issue trackers
- instead of using properties
- backward compatibility has to be kept for now
2019-07-02 15:00:27 +02:00
Jan Provaznik ebf289fded Merge branch 'project-cluster-spec-improvements' into 'master'
Tidy spec for API::ProjectClusters

See merge request gitlab-org/gitlab-ce!30154
2019-07-02 08:18:41 +00:00