gitlab-org--gitlab-foss/spec/lib/gitlab
Yorick Peterse 79696f5b7a
Hash concurrent foreign key names similar to Rails
This was initially not implemented simply because I forgot about the
size limit of constraint names in PostgreSQL (63 bytes). Using the old
technique we can't add foreign keys for certain tables. For example,
adding a foreign key on
protected_branch_merge_access_levels.protected_branch_id would lead to
the following key name:

    fk_protected_branch_merge_access_levels_protected_branches_protected_branch_id

This key is 78 bytes long, thus violating the PostgreSQL size
requirements.

The hashing strategy is copied from Rails' foreign_key_name() method,
which unfortunately is private and subject to change without notice.
2017-02-21 15:07:02 +01:00
..
backend
backup Restore backup correctly when "BACKUP" environment variable is passed 2017-01-09 18:38:53 +01:00
badge Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
bitbucket_import Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
chat_commands Incorporate feedback 2017-01-30 20:37:06 +01:00
checks Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
ci Remove coverage entry from global CI/CD options 2017-02-04 23:04:17 +01:00
conflict Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
cycle_analytics fix spec 2017-02-07 09:29:34 +01:00
data_builder Merge branch '26500-informative-slack-notifications' into 'master' 2017-02-17 13:04:01 +00:00
database Hash concurrent foreign key names similar to Rails 2017-02-21 15:07:02 +01:00
diff Rename Files::DeleteService to Files::DestroyService 2017-02-10 18:22:18 +01:00
downtime_check
email Merge remote-tracking branch 'upstream/master' into fix-references-header-parsing 2017-02-03 17:16:21 +08:00
fogbugz_import
gfm Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
git Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
github_import GitHub Importer - Find users based on their email address 2017-02-20 14:48:12 -03:00
gitlab_import
google_code_import Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
graphs Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
import_export Truncate the DB in after(:all) test for Gitlab::ImportExport::ProjectTreeRestorer 2017-02-17 18:58:11 +01:00
ldap Active tense test coverage 2017-02-01 22:45:41 +00:00
metrics Check for env[Grape::Env::GRAPE_ROUTING_ARGS] instead of endpoint.route 2017-01-12 23:15:25 -05:00
middleware Inject ::UploadedFile from Multipart middleware 2016-12-21 13:07:53 +01:00
o_auth
saml
sanitizers
serializer Make headers asserts explicit in pagination specs 2017-02-07 13:15:58 +01:00
sherlock
sidekiq_status Fix race conditions for AuthorizedProjectsWorker 2017-01-25 13:22:15 +01:00
slash_commands Allow slashes in slash command arguments 2017-02-17 10:34:43 +01:00
sql Merge branch 'jej-note-search-uses-finder' into 'security' 2016-12-15 11:40:12 -03:00
template Merge remote-tracking branch 'upstream/master' into fix-git-hooks-when-creating-file 2017-01-26 22:19:50 +08:00
view/presenter Raise Gitlab::View::Presenter::CannotOverrideMethodError if presentee already respond to method 2017-01-25 12:14:02 +01:00
allowable_spec.rb Extract abilities checking module from ability model 2016-12-13 14:44:43 +01:00
asciidoc_spec.rb Merge branch 'asciidoctor-xss-patch' into 'security' 2017-02-15 10:41:40 -05:00
auth_spec.rb Reduce hits to LDAP on Git HTTP auth by reordering auth mechanisms 2017-01-30 13:05:47 -06:00
award_emoji_spec.rb
blame_spec.rb Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
changes_list_spec.rb
chat_name_token_spec.rb More refactoring, push present to base command 2016-11-17 21:44:26 +01:00
closing_issue_extractor_spec.rb Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
color_schemes_spec.rb
contributions_calendar_spec.rb Add traits for ProjectFeatures to Project factory 2017-02-05 13:11:45 +05:00
current_settings_spec.rb Revert "Merge branch 'revert-9cac0317' into 'master' " 2017-01-23 16:35:24 +01:00
database_spec.rb Merge branch 'create-connection-pool' into 'master' 2017-02-14 12:05:07 +00:00
downtime_check_spec.rb
exclusive_lease_spec.rb
file_detector_spec.rb Unify detecting of special repository files 2016-11-21 12:51:40 +01:00
git_access_spec.rb Add traits for ProjectFeatures to Project factory 2017-02-05 13:11:45 +05:00
git_access_wiki_spec.rb Add traits for ProjectFeatures to Project factory 2017-02-05 13:11:45 +05:00
git_spec.rb
highlight_spec.rb Active tense test coverage 2017-02-01 22:45:41 +00:00
identifier_spec.rb Use Commit#author so we share logic and cache 2016-11-24 02:33:55 +08:00
import_sources_spec.rb Improve Gitlab::ImportSources 2016-12-19 17:35:51 +01:00
incoming_email_spec.rb Merge remote-tracking branch 'upstream/master' into fix-references-header-parsing 2017-02-03 17:16:21 +08:00
job_waiter_spec.rb Fix race conditions for AuthorizedProjectsWorker 2017-01-25 13:22:15 +01:00
key_fingerprint_spec.rb
kubernetes_spec.rb Add terminals to the Kubernetes deployment service 2016-12-19 19:53:04 +00:00
lazy_spec.rb
lfs_token_spec.rb
markup_helper_spec.rb
metrics_spec.rb
optimistic_locking_spec.rb
other_markup.rb Merge branch 'fix-rdoc-xss' into 'security' 2017-02-15 10:41:57 -05:00
popen_spec.rb
project_search_results_spec.rb Add traits for ProjectFeatures to Project factory 2017-02-05 13:11:45 +05:00
project_transfer_spec.rb Rename pages namespace or project path when changed 2017-01-31 22:53:56 +00:00
redis_spec.rb Allow to use ENV variables in redis config 2017-01-13 10:41:50 +05:00
reference_extractor_spec.rb Create directly_addressed Todos when mentioned in beginning of a line 2017-02-08 21:53:34 +05:30
regex_spec.rb Add GFM support to nested groups 2017-02-13 22:30:10 +02:00
route_map_spec.rb Support a string source in the route map 2017-02-07 14:19:12 -06:00
routing_spec.rb Make it possible to mix Gitlab::Routing in 2016-12-13 14:51:23 +01:00
search_results_spec.rb Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
sidekiq_status_spec.rb Fix race conditions for AuthorizedProjectsWorker 2017-01-25 13:22:15 +01:00
sidekiq_throttler_spec.rb
snippet_search_results_spec.rb
upgrader_spec.rb
url_builder_spec.rb Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
url_sanitizer_spec.rb
user_access_spec.rb Allow creating protected branch when it doesn't exist 2017-01-13 10:53:59 -05:00
utils_spec.rb
version_info_spec.rb
workhorse_spec.rb Introduce maximum session time for terminal websocket connection 2017-02-06 11:49:30 +01:00