Nick Thomas
672733aa66
Add an API endpoint to download git repository snapshots
2018-04-19 17:25:01 +01:00
Mayra Cabrera
93780da67c
Resolve "Show `failure_reason` in jobs view content section"
2018-04-19 07:20:53 +00:00
Francisco Javier López
e8a27a67fa
Fix Custom hooks are not triggered by UI wiki edit
2018-04-18 17:50:56 +00:00
🙈 jacopo beschi 🙉
c6b1043e9d
Resolve "Make a Rubocop that forbids returning from a block"
2018-04-18 09:19:40 +00:00
Grzegorz Bizon
bcd89dcd1f
Merge branch 'sh-memoize-repository-empty' into 'master'
...
Memoize Git::Repository#has_visible_content?
See merge request gitlab-org/gitlab-ce!18383
2018-04-17 12:34:58 +00:00
Bob Van Landuyt
5f7f5eda92
Method to track recoverable exceptions in sentry
...
This adds a method to track errors that can be recovered from in
sentry.
It is useful when debugging performance issues, or exceptions that are
hard to reproduce.
2018-04-17 11:39:23 +02:00
Grzegorz Bizon
a6a1b7310f
Merge branch '44582-clear-pipeline-status-cache' into 'master'
...
Allow `rake cache:clear` clearing pipeline status cache
Closes #44582
See merge request gitlab-org/gitlab-ce!18257
2018-04-16 07:27:09 +00:00
Stan Hu
74e5ec198c
Fix failing ./spec/lib/backup/repository_spec.rb by clearing the memoized value
2018-04-14 15:36:36 -07:00
Stan Hu
b1f15dfa42
Memoize Git::Repository#has_visible_content?
...
This is called repeatedly when viewing a merge request, and this should
improve performance significantly by avoiding shelling out to git every time.
This should help https://gitlab.com/gitlab-com/infrastructure/issues/4027 .
2018-04-14 14:37:28 -07:00
Douwe Maan
db6854b2cd
Merge branch 'backport-of-rd-3429-enabling-maximum-file-size-limit-in-repository-causes-pushes-to-fail' into 'master'
...
Backport of EE !4989
See merge request gitlab-org/gitlab-ce!18238
2018-04-12 08:46:36 +00:00
Marin Jankovski
b9d868e33d
Merge branch 'fix/gb/fix-pipeline-statuses-illustrations' into 'master'
...
Fix empty state for build that does not have a trace
Closes #45204
See merge request gitlab-org/gitlab-ce!18278
2018-04-12 07:54:48 +00:00
Rubén Dávila
d28b1dfc46
Backport of EE !4989
2018-04-11 22:05:07 -05:00
Douwe Maan
b2f57a561f
Merge branch 'zj-info-attributes' into 'master'
...
Client implementation for InfoAttributes
See merge request gitlab-org/gitlab-ce!18261
2018-04-11 12:58:52 +00:00
Zeger-Jan van de Weg
c830b8e3b7
Client implementation for InfoAttributes
...
Clients can now request the attributes from `$GIT_DIR/info/attributes`
through Gitaly. The Gitaly migration is described in gitlab-org/gitaly#1082 .
The parser algorithm was implemented in a way it could handle both file
contents or a File handle, and both were already tested.
Other than that, using the boy scout rule, I've removed a class,
InfoAttributes, as it was delegating everything to the parser and
therefor wasn't really needed in my opinion.
2018-04-11 14:21:27 +02:00
Grzegorz Bizon
2ea25cbcaf
Revert adding `Empty` extended status to avoid N+1 queries
2018-04-11 10:52:09 +02:00
Grzegorz Bizon
199e31eb24
Extend specs for detailed build extended statuses
2018-04-11 10:52:09 +02:00
Grzegorz Bizon
07c781dcc0
Fix file-specific variables collection item option
2018-04-11 10:07:15 +02:00
Michael Kozono
e67759bbc9
Fix email handler spec for EE
2018-04-10 17:40:33 -07:00
Lin Jen-Shin
4b30aec0aa
Allow `rake cache:clear` clearing pipeline status cache
...
* Use the correct key prefix
* Clear old cache keys
TODO:
At some point we could remove clearing old cache keys.
2018-04-10 20:57:00 +08:00
Riccardo Padovani
f68aab1945
Make email handler clearer
2018-04-09 09:39:03 +00:00
Kamil Trzciński
b38439a3ae
Use proper auth_scope for deploy token
2018-04-07 10:35:00 +02:00
Mayra Cabrera
c4f56a8802
Increase test suite around deploy tokens behavior
...
Also, fixes broken specs
2018-04-06 21:20:17 -05:00
Mayra Cabrera
a475411f43
Fixes broken schema and minor changes
2018-04-06 21:20:16 -05:00
Mayra Cabrera
8315861c9a
Include ProjectDeployTokens
...
Also:
- Changes scopes from serializer to use boolean columns
- Fixes broken specs
2018-04-06 21:20:16 -05:00
Kamil Trzciński
72220a99d1
Support Deploy Tokens properly without hacking abilities
2018-04-06 21:20:16 -05:00
Mayra Cabrera
171b2625b1
Addreses backend review suggestions
...
- Remove extra method for authorize_admin_project
- Ensure project presence
- Rename 'read_repo' to 'read_repository' to be more verbose
2018-04-06 21:20:16 -05:00
Mayra Cabrera
7deab31722
Removes logic from Jwt and handle different scenarios on Gitlab::Auth
...
- When using 'read_repo' password and project are sent, so we used both
of them to fetch for the token
- When using 'read_registry' only the password is sent, so we only use
that for fetching the token
2018-04-06 21:20:16 -05:00
Mayra Cabrera
aaa6d80870
Implement read_registry for DeployTokens
2018-04-06 21:20:16 -05:00
Mayra Cabrera
370fc05da7
Implement 'read_repo' for DeployTokens
...
This will allow to download a repo using the token from the DeployToken
2018-04-06 21:20:16 -05:00
Mayra Cabrera
db18993f65
Create barebones for Deploytoken
...
Includes:
- Model, factories, create service and controller actions
- As usual, includes specs for everything
- Builds UI (copy from PAT)
- Add revoke action
Closes #31591
2018-04-06 21:20:16 -05:00
Kamil Trzciński
9421a597b7
Merge branch '42568-pipeline-empty-state' into 'master'
...
Resolve "Wrong empty state for cancelled build, hides existing logs!"
Closes #42568
See merge request gitlab-org/gitlab-ce!17646
2018-04-06 22:32:44 +00:00
Douglas Barbosa Alexandre
76cd2d7881
Move checksum calculation to Gitlab::Git::Repository
2018-04-06 13:25:07 -03:00
Douglas Barbosa Alexandre
13992ac92e
Checksum calculation is handled by Gitaly when feature is enabled
2018-04-06 13:23:23 -03:00
Douglas Barbosa Alexandre
e892eeb546
Add calculate_checksum method to the Gitaly repository client
2018-04-06 13:23:22 -03:00
Sean McGivern
b81c6f142c
Merge branch 'sh-add-cleanup-rpc-gitaly' into 'master'
...
Automatically cleanup stale worktrees and lock files upon a push
Closes #44115
See merge request gitlab-org/gitlab-ce!18095
2018-04-06 15:50:51 +00:00
Francisco Javier López
f20912df03
Extend API for importing a project export with overwrite support
2018-04-06 15:23:49 +00:00
Stan Hu
a18eea8c32
Automatically cleanup stale worktrees and lock files upon a push
...
git 2.16 will fail badly if there are stale worktrees.
Closes #44115
2018-04-06 08:17:07 -07:00
Douwe Maan
44f4a674e2
Merge branch 'jramsay-38830-tarball' into 'master'
...
Add alternative archive route
Closes #38830
See merge request gitlab-org/gitlab-ce!17225
2018-04-06 14:14:39 +00:00
James Ramsay
07f517d441
Add new repository archive route
...
Repository archives are always named `<project>-<ref>-<sha>` even if
the ref is a commit. A consequence of always including the sha even
for tags is that packaging a release is more difficult because both
the ref and sha must be known by the packager.
- add `<project>/-/archive/<ref>/<filename>.<format>` route using the
`-` separator to prevent namespace collisions. If the filename is
`<project>-<ref>` or the ref is a sha, the sha will be omitted,
otherwise the default filename will be used.
- deprecate previous archive route `repository/<ref>/archive`
2018-04-06 08:45:17 -04:00
blackst0ne
20695052db
[Rails5] Update `type_cast_*_database` methods
2018-04-06 10:57:19 +00:00
Kamil Trzciński
2bf8345542
Merge branch 'master' into '42568-pipeline-empty-state'
...
# Conflicts:
# app/views/projects/jobs/show.html.haml
# lib/gitlab/ci/status/core.rb
2018-04-06 09:16:40 +00:00
Mayra Cabrera
d54cf868f8
Resolve "Show `failure_reason` and upgrade tooltips of jobs"
2018-04-05 21:04:42 +00:00
Grzegorz Bizon
dd271e2460
Merge branch 'direct-upload-of-artifacts' into 'master'
...
Direct upload of artifacts
See merge request gitlab-org/gitlab-ce!18160
2018-04-05 20:59:40 +00:00
Kamil Trzciński
1367e4ff9f
Merge branch '44389-always-allow-http-for-ci-git-operations' into 'master'
...
Resolve "Allow HTTPS cloning by Runners if it is disabled for users"
Closes #44389
See merge request gitlab-org/gitlab-ce!18021
2018-04-05 18:34:00 +00:00
Douwe Maan
082bf1c6ee
Merge branch 'bvl-override-import-params' into 'master'
...
Allow passing params to import API to override project attributes
Closes gitlab-ee#4788
See merge request gitlab-org/gitlab-ce!18086
2018-04-05 15:18:49 +00:00
Bob Van Landuyt
902cec12b5
Don't export `Project#description_html`
...
Since we can regenerate `description_html` from the `description`, we
should not export it. This avoids some complexity when overriding the
description during an import/export where we would need to invalidate
this cached field.
Now we refresh the markdown cache after the import
2018-04-05 15:48:41 +02:00
Matija Čupić
f379e1b370
Rename success to erased empty state spec
2018-04-05 13:52:54 +02:00
Kamil Trzciński
9b1677b2de
Remove artifacts_file/metadata from project export
2018-04-05 12:40:40 +02:00
Tomasz Maczukin
edcba1aa27
Allow HTTP(s) when git request is made by GitLab CI
2018-04-05 12:35:12 +02:00
Marin Jankovski
1bca36b66f
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
2018-04-05 11:22:52 +02:00