- 03 Jan, 2020 32 commits
-
-
Yorick Peterse authored
This changes how we link merge requests to deployments so that: 1. We link merge requests for any deployment that is not in the "created" state. 2. We do not link merge requests to review app deployments. We want to link deployments regardless of their status so that we can also show failed and running deploys in the merge request widget (and perhaps in other places). We don't want to link review app deployments since this is not useful, and may lead to deployments to different review app environments showing up on a merge request page. This builds on the refactoring of the deployment model introduced in merge request https://gitlab.com/gitlab-org/gitlab/merge_requests/20474, and moves the linking of merge requests to Deployments::FinishedWorker. This worker is scheduled every time a deployment transitions to a finished state. As part of these changes we also change Deployment#link_merge_requests so that it ignores any already linked merge requests. This way if a deployment changes its status multiple times, we don't error with duplicate key errors. This fixes https://gitlab.com/gitlab-org/gitlab/issues/38092.
-
Andreas Brandl authored
Add Index to help Hashed Storage migration on big instances Closes #194066 See merge request gitlab-org/gitlab!22391
-
Martin Wortschack authored
Use proper find targets in test Closes #191269 See merge request gitlab-org/gitlab!22298
-
Sean McGivern authored
Wrap requests in an ApplicationContext See merge request gitlab-org/gitlab!20791
-
Sean McGivern authored
Performance improvements on milestone burndown chart See merge request gitlab-org/gitlab!22380
-
Jan Provaznik authored
Prevent Gitaly N+1 queries in blob search See merge request gitlab-org/gitlab!21996
-
Andreas Brandl authored
Remove ActiveRecord patch to ignore limit on text columns See merge request gitlab-org/gitlab!22406
-
Kushal Pandya authored
Wrap emit calls to nextTick Closes #38114 See merge request gitlab-org/gitlab!22323
-
Alexandru Croitor authored
Don't build up events array when checking if burndown chart is empty or accurate. Preload issue project to avoid N+1 calls.
-
Bob Van Landuyt authored
This provides context to all requests made to Rails controllers or grape endpoints. Doing this starts a new `Labkit::Context`, to which we can provide a namespace, project and user. We're currently setting the following values: - Web requests: In the ApplicationController we wrap the entire request in a `with_context`. - user: based on the `auth_user` if there is one - project: We try to read the @project instance variable of the controller. - namespace: We try to read the @group instance variable of the controller. If there was none, but the project was set, we'll use that path to set the namespace - API requests: The application context is pushed in a before block setting the following values: - user: to `current_user` if there is one - project: to `@project` - namespace: to `@group` - Internal API requests: the application context is pushed in a before block: - user: When to the user set in `Api::Support::GitAccessActor` - project: to @project if it was available The 3 supported attributes for a context are read lazily when required. This also replaces the existing correlation middlewares with the new Labkit::Context middlewares. The rack middleware wraps each rack request in an overarching context that adds the correlation id. The context is cleaned up after the request, so we're sure all child contexts are cleaned up as well. The sidekiq client middleware will write the context into the job that goes into redis when a job is scheduled. The sidekiq server middleware will then re-instantiate this context so the job gets executed with the same context that was alive when it was scheduled. This means that any new job scheduled from sidekiq would also have this context.
-
Bob Van Landuyt authored
This makes sure we're always working with the project that we've validated access for.
-
Jan Provaznik authored
Add Reenqueuer concern See merge request gitlab-org/gitlab!22031
-
Grzegorz Bizon authored
Add system/comment filter to notes api See merge request gitlab-org/gitlab!21159
-
Grzegorz Bizon authored
Add logging to error handling in ElasticIndexerWorker See merge request gitlab-org/gitlab!22414
-
Kushal Pandya authored
Add explanation to the "programming languages used" chart See merge request gitlab-org/gitlab!20592
-
Grzegorz Bizon authored
Create downstream pipeline inside same project See merge request gitlab-org/gitlab!20930
-
Bob Van Landuyt authored
Feature for #27518, users can revoke active sessions again. Closes #27518 See merge request gitlab-org/gitlab!17462
-
Dylan Griffith authored
-
Bob Van Landuyt authored
Fix typo in CI yaml docs See merge request gitlab-org/gitlab!22382
-
Dylan Griffith authored
-
Martin Wortschack authored
Prevent spiders indexing contribution analytics See merge request gitlab-org/gitlab!21896
-
Martin Wortschack authored
Resolve "Auto stop environments after a certain period" See merge request gitlab-org/gitlab!20372
-
Lin Jen-Shin authored
Add #finding method to Vulnerability See merge request gitlab-org/gitlab!22346
-
Stan Hu authored
Setup multiple milestones See merge request gitlab-org/gitlab!22043
-
Andreas Brandl authored
Update foreign key constraint for personal access tokens Closes #191262 See merge request gitlab-org/gitlab!22305
-
Ray Paik authored
Docs: Remove duplicate deploy action from aws.md See merge request gitlab-org/gitlab!22365
-
Stan Hu authored
Use Ruby 2.6.5 CI images See merge request gitlab-org/gitlab!22372
-
Jesse Hall authored
-
Gabriel Mazetto authored
This is intended to help hashed storage migration on big instances.
-
Marcel Amirault authored
fix include template code examples for SAST See merge request gitlab-org/gitlab!22339
-
Mark Lapierre authored
Update github import test Closes #193485 See merge request gitlab-org/gitlab!22353
-
Mark Lapierre authored
It needs to click the authenticate button, and then the repos are listed
-
- 02 Jan, 2020 8 commits
-
-
Drew Blessing authored
Docs: Remove extraneous text See merge request gitlab-org/gitlab!22403
-
Tiger authored
This was fixed upstream in https://github.com/rails/rails/pull/8276, in Rails 3.2.13 (Mar 18, 2013).
-
Clement Ho authored
Replace breakpoints with GlBreakpointInstance in issuable_context.js See merge request gitlab-org/gitlab!22008
-
Diana Stanley authored
-
John T Skarbek authored
-
Sarah GP authored
This is the commit for all changes, for merging This change involves both HAML and Vue, plus refactoring
-
Michael Kozono authored
Check that uploaded file content matches the file extension See merge request gitlab-org/gitlab!20697
-
Alex Pooley authored
Handle when extension is missing Handle ambiguous file type checks - Content of text files often don't define their type. - A text file may be missing a file extension. - We may encounter a file with no extension that we can't magically type. Optionally check integrity of specific mime types Ensure upload integrity by file extension Apply integrity check to AvatarUploader and FaviconUploader
-