Age | Commit message (Collapse) | Author |
|
This removes the `ForkedProjectLink` model that has been replaced by
the `ForkNetworkMember` and `ForkNetwork` combination. All existing
relations have been adjusted to use these new models.
The `forked_project_link` table has been dropped.
The "Forks" count on the admin dashboard has been updated to count all
`ForkNetworkMember` rows and deduct the number of `ForkNetwork`
rows. This is because now the "root-project" of a fork network also
has a `ForkNetworkMember` row. This count could become inaccurate when
the root of a fork network is deleted.
|
|
Send deployment_status when job starts environment
Closes #52614
See merge request gitlab-org/gitlab-ce!22354
|
|
The check was if the job `has_environment` which results into showing
the environment information when the job stops the environment. This
result into having a blank `deployment_status`.
Use `starts_environment?` to be the same as the haml we have in 11.3
https://gitlab.com/gitlab-org/gitlab-ce/blob/30f019dca78bb64bcb8b355a267be006884e6d8f/app/views/projects/jobs/show.html.haml#L28
|
|
Improve spec for Gitlab::Ci::Status::Pipeline::Factory
Closes #52280
See merge request gitlab-org/gitlab-ce!22247
|
|
|
|
Updates the check for started in job header
See merge request gitlab-org/gitlab-ce!22329
|
|
|
|
The function that was checking if the job was started or not
was expecting a boolean, however it was receiving a null.
During the refactor the condition was changed, causing the function
to break with null
This commit fixes the check
|
|
|
|
This commit adds back `js-` classes needed to
automatically collapse the sidebar on resize.
|
|
|
|
4. enable jasmine/prefer-jasmine-matcher
See merge request gitlab-org/gitlab-ce!22236
|
|
1. enable jasmine/new-line-between-declarations
See merge request gitlab-org/gitlab-ce!22230
|
|
|
|
Fix project deletion when there is a export available
Closes #52362
See merge request gitlab-org/gitlab-ce!22276
|
|
Support pushing of feature flags to the frontend
Closes gitlab-org/release/framework#17
See merge request gitlab-org/gitlab-ce!22197
|
|
Adds `.json` to the end of pipelines endpoint
Closes #52472
See merge request gitlab-org/gitlab-ce!22293
|
|
|
|
This adds a method to Gitlab::GonHelper called
`push_frontend_feature_flag`. This method can be used to easily expose
the state of a feature flag to Javascript code. For example, using this
method we may write the following controller code:
before_action do
push_frontend_feature_flag(:vim_bindings)
end
def index
# ...
end
def edit
# ...
end
In Javascript we can then check the state of the flag as follows:
if ( gon.features.vimBindings ) {
// ...
}
Fixes https://gitlab.com/gitlab-org/release/framework/issues/17
|
|
|
|
|
|
When the job page is rendered we fetch the pipeline
endpoint to render the stages in the sidebar.
Without `.json` the response is cached, and when the
user goes back to the pipeline's page it renders the
json output instead of the Vue app
|
|
Project deletions were failing with "Can't modify frozen hash" because:
1. Project#remove_exports was called in the after_destroy hook
2. This would remove the file and update ImportExportUpload
3. ImportExportUpload#save would attempt to write to a destroyed model
To avoid this, we just check if ImportExportUpload has been destroyed
before attempting to save it.
This would have a side effect of not running after_commit hooks to delete the
repository on disk, making it impossible to delete the project entirely.
Closes #52362
|
|
|
|
|
|
Was introduced in the time that GitLab still used NFS, which is not
required anymore in most cases. By removing this, the API it calls will
return empty responses. This interface has to be removed in the next
major release, expected to be 12.0.
|
|
|
|
|
|
|
|
|
|
Reject invalid branch names in repository compare controller
Closes #51003
See merge request gitlab-org/gitlab-ce!22186
|
|
Rails5: fix user edit profile clear status spec
See merge request gitlab-org/gitlab-ce!22169
|
|
Closes #51003
|
|
Removes expensive dead code on main MR page request
Closes #51172
See merge request gitlab-org/gitlab-ce!22153
|
|
This refactors the TodoService class according to our code reuse
guidelines. The resulting code is a wee bit more verbose, but it allows
us to decouple the column names from the input, resulting in fewer
changes being necessary when we change the schema.
One particular noteworthy line in TodoService is the following:
todos_ids = todos.update_state(state)
Technically this is a violation of the guidelines, because
`update_state` is a class method, which services are not supposed to use
(safe for a few allowed ones). I decided to keep this, since there is no
alternative. `update_state` doesn't produce a relation so it doesn't
belong in a Finder, and we can't move it to another Service either. As
such I opted to just use the method directly.
Cases like this may happen more frequently, at which point we should
update our documentation with some sort of recommendation. For now, I
want to refrain from doing so until we have a few more examples.
|
|
This refactors the TodosFinder finder according to the new code reuse
rules, as enforced by the CodeReuse cops. I also changed some of the
methods to use regular if statements, instead of assignments and/or
early returns. This results in a more natural flow when reading the
code, and it makes it harder to accidentally return the wrong result.
|
|
Redirect to the pipeline builds page when a build is canceled
Closes #39161
See merge request gitlab-org/gitlab-ce!21595
|
|
Rails 5: fix mysql milliseconds problems in scheduled build specs
See merge request gitlab-org/gitlab-ce!22170
|
|
Prune events older than 2 years instead of 12 months
See merge request gitlab-org/gitlab-ce!22145
|
|
Fix issues controller N+1 failure
See merge request gitlab-org/gitlab-ce!22141
|
|
Check disabled_services when finding a service
See merge request gitlab-org/gitlab-ce!22172
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EE Backport: enable Geo Status widget in admin/projects
See merge request gitlab-org/gitlab-ce!22161
|
|
|
|
In EE it will render a Geo Status widget when Geo is enabled and it is
in a secondary node.
Also added minimal specs to that action.
|