Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/lib
AgeCommit message (Collapse)Author
2018-04-23Moved committer and spec. Added some extra code to run hooks or not ↵Francisco Javier López
depending on the options
2018-04-20Merge branch 'rd-45502-uploading-project-export-with-lfs-file-locks-fails' ↵Douwe Maan
into 'master' Don't include lfs_file_locks data in export bundle Closes #45502 See merge request gitlab-org/gitlab-ce!18495
2018-04-20Don't include lfs_file_locks data in export bundleRubén Dávila
2018-04-19Add an API endpoint to download git repository snapshotsNick Thomas
2018-04-19Resolve "Show `failure_reason` in jobs view content section"Mayra Cabrera
2018-04-18Fix Custom hooks are not triggered by UI wiki editFrancisco Javier López
2018-04-18Merge branch 'bw-commonmark-cached-markdown-version' into 'master'Sean McGivern
Ensure that cached_markdown_version is handled correctly for CommonMark See merge request gitlab-org/gitlab-ce!18431
2018-04-18Resolve "Make a Rubocop that forbids returning from a block"🙈 jacopo beschi 🙉
2018-04-17for cached markdown fields, select the correct engineBrett Walker
and also make sure that if a field is saved, then the existing cache version is maintained or only upgraded to the version with the same markdown engine.
2018-04-17Merge branch 'sh-memoize-repository-empty' into 'master'Grzegorz Bizon
Memoize Git::Repository#has_visible_content? See merge request gitlab-org/gitlab-ce!18383
2018-04-17Method to track recoverable exceptions in sentryBob Van Landuyt
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-16Merge branch 'ab-45247-project-lookups-validation' into 'master'Yorick Peterse
Validate project path prior to hitting the database. Closes #45247 See merge request gitlab-org/gitlab-ce!18322
2018-04-16Merge branch 'osw-backport-gl-subdomain-method' into 'master'Rémy Coutable
Backport GitLab domain helper methods See merge request gitlab-org/gitlab-ce!18376
2018-04-16Merge branch '44582-clear-pipeline-status-cache' into 'master'Grzegorz Bizon
Allow `rake cache:clear` clearing pipeline status cache Closes #44582 See merge request gitlab-org/gitlab-ce!18257
2018-04-15Fix failing ./spec/lib/backup/repository_spec.rb by clearing the memoized valueStan Hu
2018-04-15Memoize Git::Repository#has_visible_content?Stan Hu
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-13Backport GitLab domain helper methodsOswaldo Ferreira
2018-04-13Validate project path prior to hitting the database.Andreas Brandl
Closes #45247.
2018-04-12Fix reference filters in group contextJan Provaznik
Since !18150 abstract reference filter supports also `group` as a resource parent (not only `project`). Some reference filters, which inherit from abstract filter, depend on parent being `project` when checking a reference. This patch adds explicit check of parent class to the given filters.
2018-04-12Merge branch ↵Douwe Maan
'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-12Merge branch 'rendering-markdown-multiple-projects' into 'master'Douwe Maan
Optimise rendering of Markdown documents that belong to different projects See merge request gitlab-org/gitlab-ce!18157
2018-04-12Merge branch 'fix/gb/fix-pipeline-statuses-illustrations' into 'master'Marin Jankovski
Fix empty state for build that does not have a trace Closes #45204 See merge request gitlab-org/gitlab-ce!18278
2018-04-12Backport of EE !4989Rubén Dávila
2018-04-11Merge branch 'zj-info-attributes' into 'master'Douwe Maan
Client implementation for InfoAttributes See merge request gitlab-org/gitlab-ce!18261
2018-04-11Client implementation for InfoAttributesZeger-Jan van de Weg
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-11Support Markdown rendering using multiple projectsYorick Peterse
This refactors the Markdown pipeline so it supports the rendering of multiple documents that may belong to different projects. An example of where this happens is when displaying the event feed of a group. In this case we retrieve events for all projects in the group. Previously we would group events per project and render these chunks separately, but this would result in many SQL queries being executed. By extending the Markdown pipeline to support this out of the box we can drastically reduce the number of SQL queries. To achieve this we introduce a new object to the pipeline: Banzai::RenderContext. This object simply wraps two other objects: an optional Project instance, and an optional User instance. On its own this wouldn't be very helpful, but a RenderContext can also be used to associate HTML documents with specific Project instances. This work is done in Banzai::ObjectRenderer and allows us to reuse as many queries (and results) as possible.
2018-04-11Merge branch '37721-clean-outdated-flaky-specs-from-the-flaky-specs-report' ↵Grzegorz Bizon
into 'master' Resolve "Clean outdated flaky specs from the flaky specs report" Closes #37721 See merge request gitlab-org/gitlab-ce!18196
2018-04-11Revert adding `Empty` extended status to avoid N+1 queriesGrzegorz Bizon
2018-04-11Extend specs for detailed build extended statusesGrzegorz Bizon
2018-04-11Fix file-specific variables collection item optionGrzegorz Bizon
2018-04-11Fix email handler spec for EEMichael Kozono
2018-04-10Improve the architecture of RspecFlaky classes by introducing a new ↵Rémy Coutable
RspecFlaky::Report class Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-10Introduce RspecFlaky::ExamplesPruner to prune old flaky examplesRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-10Allow `rake cache:clear` clearing pipeline status cacheLin Jen-Shin
* Use the correct key prefix * Clear old cache keys TODO: At some point we could remove clearing old cache keys.
2018-04-09Make email handler clearerRiccardo Padovani
2018-04-07Use proper auth_scope for deploy tokenKamil Trzciński
2018-04-07Handle limit for datetime attributes on MySQLMayra Cabrera
The TIMESTAMP data type is used for values that contain both date and time parts. TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC. A Forever lib class was included to handle future dates for PostgreSQL and MySQL, also changes were made to DeployToken to enforce Forever.date Also removes extra conditional from JwtController
2018-04-07Increase test suite around deploy tokens behaviorMayra Cabrera
Also, fixes broken specs
2018-04-07Fixes broken schema and minor changesMayra Cabrera
2018-04-07Include ProjectDeployTokensMayra Cabrera
Also: - Changes scopes from serializer to use boolean columns - Fixes broken specs
2018-04-07Support Deploy Tokens properly without hacking abilitiesKamil Trzciński
2018-04-07Addreses backend review suggestionsMayra Cabrera
- Remove extra method for authorize_admin_project - Ensure project presence - Rename 'read_repo' to 'read_repository' to be more verbose
2018-04-07Removes logic from Jwt and handle different scenarios on Gitlab::AuthMayra Cabrera
- 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-07Implement read_registry for DeployTokensMayra Cabrera
2018-04-07Implement 'read_repo' for DeployTokensMayra Cabrera
This will allow to download a repo using the token from the DeployToken
2018-04-07Create barebones for DeploytokenMayra Cabrera
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-07Merge branch '42568-pipeline-empty-state' into 'master'Kamil Trzciński
Resolve "Wrong empty state for cancelled build, hides existing logs!" Closes #42568 See merge request gitlab-org/gitlab-ce!17646
2018-04-07Merge branch 'da-gitaly-calculate-repository-checksum' into 'master'Stan Hu
Repository checksum calculation is handled by Gitaly when feature is enabled See merge request gitlab-org/gitlab-ce!18210
2018-04-06Merge branch '17939-osw-patch-support-gfm' into 'master'Sean McGivern
Add support for patch link extension for commit links on GFM Closes #17939 See merge request gitlab-org/gitlab-ce!18229
2018-04-06Move checksum calculation to Gitlab::Git::RepositoryDouglas Barbosa Alexandre