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
2017-06-21Replace invalid chars while seeding environmentsZeger-Jan van de Weg
2017-06-21Merge branch 'gitaly-auth-token' into 'master'Sean McGivern
Pass Gitaly token on Ruby gRPC requests See merge request !12228
2017-06-20Merge branch 'bugfix/html-email-brackets' into 'master'Douwe Maan
unwrap links without an href Closes #27645 See merge request !9045
2017-06-20Merge branch 'refactor-projects-finder-init-collection' into 'master'Rémy Coutable
Refactor ProjectsFinder#init_collection and GroupProjectsFinder#init_collection Closes #33632 See merge request !12135
2017-06-20Send gitaly token to workhorse when neededJacob Vosmaer
2017-06-20Merge branch '33823_do_not_enable_defaults_when_metrics_folder_is_missing' ↵Sean McGivern
into 'master' Do not enable prometheus metrics when metrics folder is missing See merge request !12263
2017-06-20add a spec for no-href link parsinghttp://jneen.net/
2017-06-19Merge branch 'sh-refactor-current-settings' into 'master'Robert Speicher
If migrations are pending, make CurrentSettings use existing values and populate missing columns with defaults See merge request !12253
2017-06-19Merge branch 'moved-submodules' into 'master'Rémy Coutable
repository: index submodules by path See merge request !10798
2017-06-19If migrations are pending, make CurrentSettings use existing values and ↵Stan Hu
populate missing columns with defaults master was failing because `ApplicationSetting.create_from_defaults` attempted to write to a column that did not exist in the database. This occurred in a `rake db:migrate` task, which was unable to perform the migration that would have added the missing column in the first place. In 9.3 RC2, we also had a bug where password sign-ins were disabled because there were many pending migrations. The problem occurred because `fake_application_settings` was being returned with an OpenStruct that did not include the predicate method `signup_enabled?`. As a result, the value would erroneously return `nil` instead of `true`. This commit uses the values of the defaults to mimic this behavior. This commit also refactors some of the logic to be clearer.
2017-06-19Do not enable prometheus metrics when data folder is not present.Pawel Chojnacki
+ Set defaults correctly only for when not in production or staging + set ENV['prometheus_multiproc_dir'] in config/boot.rb instead of config.ru Test prometheus metrics unmemoized
2017-06-19Pass Gitaly token on Ruby gRPC requestsJacob Vosmaer
2017-06-17Add “Project moved” error to Git-over-SSHMichael Kozono
2017-06-16Merge branch 'merge-request-diffs-table' into 'master'Douwe Maan
Add table for files in merge request diffs See merge request !12047
2017-06-16repository: index submodules by pathDavid Turner
Submodules have a name in the configuration, but this name is simply the path at which the submodule was initially checked in (by default -- the name is totally arbitrary). If a submodule is moved, it retains its original name, but its path changes. Since we discover submodules inside trees, we have their path but not necessarily their name. Make the submodules() function return the submodule hash indexed by path rather than name, so that renamed submodules can be looked up. Signed-off-by: David Turner <novalis@novalis.org>
2017-06-16Merge branch 'tc-fix-group-finder-subgrouping' into 'master'Douwe Maan
Show private subgroups if member of parent group Closes #32135 See merge request !11764
2017-06-16Add table for files in merge request diffsSean McGivern
This adds an ID-less table containing one row per file, per merge request diff. It has a column for each attribute on Gitlab::Git::Diff that is serialised currently, with the advantage that we can easily query the attributes of this new table. It does not migrate existing data, so we have fallback code when the legacy st_diffs column is present instead. For a merge request diff to be valid, it should have at most one of: * Rows in this new table, with the correct merge_request_diff_id. * A non-NULL st_diffs column. It may have neither, if the diff is empty.
2017-06-16Merge branch '27070-rename-slash-commands-to-quick-actions' into 'master'Sean McGivern
Rename "Slash commands" to "Quick actions" Closes #27070 See merge request !11811
2017-06-16Refactor ProjectsFinder#init_collectionYorick Peterse
This changes ProjectsFinder#init_collection so it no longer relies on a UNION. For example, to get starred projects of a user we used to run: SELECT projects.* FROM projects WHERE projects.pending_delete = 'f' AND ( projects.id IN ( SELECT projects.id FROM projects INNER JOIN users_star_projects ON users_star_projects.project_id = projects.id INNER JOIN project_authorizations ON projects.id = project_authorizations.project_id WHERE projects.pending_delete = 'f' AND project_authorizations.user_id = 1 AND users_star_projects.user_id = 1 UNION SELECT projects.id FROM projects INNER JOIN users_star_projects ON users_star_projects.project_id = projects.id WHERE projects.visibility_level IN (20, 10) AND users_star_projects.user_id = 1 ) ) ORDER BY projects.id DESC; With these changes the above query is turned into the following instead: SELECT projects.* FROM projects INNER JOIN users_star_projects ON users_star_projects.project_id = projects.id WHERE projects.pending_delete = 'f' AND ( EXISTS ( SELECT 1 FROM project_authorizations WHERE project_authorizations.user_id = 1 AND (project_id = projects.id) ) OR projects.visibility_level IN (20,10) ) AND users_star_projects.user_id = 1 ORDER BY projects.id DESC; This query in turn produces a better execution plan and takes less time, though the difference is only a few milliseconds (this however depends on the amount of data involved and additional conditions that may be added).
2017-06-15Merge branch 'deprecate-gitaly-path' into 'master'Sean McGivern
Stop using deprecated `path` field on Gitaly messages See merge request !12112
2017-06-15Rename "Slash commands" to "Quick actions"Eric Eastwood
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/27070 Deprecate "chat commands" in favor of "slash commands" We looked for things like: - `slash commmand` - `slash_command` - `slash-command` - `SlashCommand`
2017-06-15Merge branch 'dm-fix-parser-cache' into 'master'Sean McGivern
Don't return nil for missing objects from parser cache See merge request !12168
2017-06-15Subgroups page should show groups authorized through inheritanceToon Claes
When a user is authorized to a group, they are also authorized to see all the ancestor groups and descendant groups. When a user is authorized to a project, they are authorized to see all the ancestor groups too. Closes #32135 See merge request !11764
2017-06-15Stop using deprecated `path` field on Gitaly messagesAlejandro Rodríguez
This revealed an error in our configuration generation in gitlab:gitaly:install rake task. The fix is included
2017-06-14Correct RSpec/SingleLineHook cop offensesRobert Speicher
2017-06-14Don't return nil for missing objects from parser cacheDouwe Maan
2017-06-14Merge branch 'dm-diff-viewers' into 'master'Sean McGivern
Implement diff viewers Closes #30501 and #19931 See merge request !11777
2017-06-14Merge branch '2525-backport-kubernetes-service-changes' into 'master'Kamil Trzciński
Backport EE changes to the Kubernetes service Closes gitlab-ee#2525 See merge request !12139
2017-06-14Implement diff viewersDouwe Maan
2017-06-14Merge branch 'zj-raise-etag-route-regex-miss' into 'master'Kamil Trzciński
Raise etag route regex miss Closes #33106 See merge request !12084
2017-06-14Backport EE changes to the Kubernetes serviceNick Thomas
2017-06-14Merge branch 'feature/add-support-for-services-configuration' into 'master'Grzegorz Bizon
Add support for services configuration in .gitlab-ci.yml See merge request !8578
2017-06-14Merge branch 'fix-external-ci-services' into 'master'Grzegorz Bizon
Allow to access statuses for external CI services Closes #30714, #29369, and #15220 See merge request !11176
2017-06-13Update tests and applicationKamil Trzcinski
2017-06-13Add database helpers 'add_timestamps_with_timezone' and ↵blackst0ne
'timestamps_with_timezone'
2017-06-12Revert to passing the path when matching key to the routerZ.J. van de Weg
This was edited to the request, but this won't work if the data is not available at the time of setting the key for the first time.
2017-06-12Merge branch 'background-migrations' into 'master'Rémy Coutable
Add the ability to perform background migrations See merge request !11854
2017-06-12Improve specs for GitlabCiYamlProcessorTomasz Maczukin
2017-06-12Add the ability to perform background migrationsYorick Peterse
Background migrations can be used to perform long running data migrations without these blocking a deployment procedure. See MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11854 for more information.
2017-06-12Send new configuration options with job's payloadTomasz Maczukin
2017-06-12Add support for docker image configuration in .gitlab-ci.ymlTomasz Maczukin
2017-06-10Use :request_store hooks on specsOswaldo Ferreira
2017-06-09Merge branch 'pat-msg-on-auth-failure' into 'master'Rémy Coutable
Prompt user to create personal access token for Git over HTTP See merge request !11986
2017-06-08Merge branch 'upstream-9-2-security' into master-security-updateDJ Mountney
2017-06-08Merge branch '25934-project-snippet-vis' into 'security-9-2'DJ Mountney
Fix visibility when referencing snippets See merge request !2101
2017-06-08Merge branch 'dm-diff-file-diffable' into 'master'Sean McGivern
Move diffable? method from Repository to Diff::File See merge request !11980
2017-06-08Use Diff::File blob methods from diff highlighterDouwe Maan
2017-06-08Move diffable? method from Repository to Diff::FileDouwe Maan
2017-06-08Bring in security changes from the 9.2.5 releaseDJ Mountney
Ran: - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch - git checkout -b 9-2-5-security-patch origin/v9.2.2 - git apply patchfile.patch - git commit - [Got the sha ref for the commit] - git checkout -b upstream-9-2-security master - git cherry-pick <SHA of the patchfile commit> - [Resolved conflicts] - git cherry-pick --continue
2017-06-08Instruct user to use a personal access token for Git over HTTPRobin Bobbitt
If internal auth is disabled and LDAP is not configured on the instance, present the user with a message to create a personal access token if his Git over HTTP auth attempt fails.