gitlab-org--gitlab-foss/lib/gitlab
Stan Hu 5c8cd42bbd Fix invalid visibility string comparison in project import
This resolves an "ArgumentError: comparison of String with 0 failed"
issue where the visibility_level is stored as a string in the project
import data because the value comes directly from the Web form. This
problem happened upon creating a project from a template or restoring a
project.

We now cast the value to an integer to guard against these kinds of
failures.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61692
2019-05-22 11:32:23 -07:00
..
access
action_view_output Fix slow performance with compiling HAML templates 2019-04-29 05:33:50 -07:00
auth Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
background_migration Fix typos in the whole gitlab-ce project 2019-05-20 14:11:44 +00:00
badge Add :preparing status to HasStatus 2019-03-20 11:48:31 +11:00
bare_repository_import
bitbucket_import Refactor spec to reload existing_label right after creation 2019-05-08 12:39:54 +00:00
bitbucket_server_import Fix issuables state_id nil when importing projects from GitHub 2019-05-06 19:45:17 +00:00
cache
chat
checks Add feature flag to disable LFS check 2019-04-23 13:01:17 +00:00
ci Jobs should be better isolated to avoid interference with other image or before_script statements. 2019-05-21 14:09:49 +00:00
cleanup
cluster
config Fix typos in the whole gitlab-ce project 2019-05-20 14:11:44 +00:00
conflict
cross_project_access
cycle_analytics
danger Add haml-lint.yml to FE for roulette 2019-05-13 22:16:17 +00:00
data_builder Update deployment chat message notification 2019-05-02 16:07:26 +00:00
database Add remove_foreign_key_if_exists 2019-05-07 15:38:43 +08:00
dependency_linker
diff Memoize old_blob and new_blob to improve performance 2019-03-28 12:11:37 +00:00
discussions_diff Remove cleaned up OIDs from database and cache 2019-05-06 11:35:03 +01:00
downtime_check
email
error_tracking
etag_caching Fix real-time updates for projects that contain a reserved word 2019-04-05 11:59:20 -07:00
external_authorization Move Contribution Analytics related spec in spec/features/groups/group_page_with_external_authorization_service_spec to EE 2019-04-09 15:38:58 +00:00
fogbugz_import
gfm
git API: Fix recursive flag not working with Rugged get_tree_entries flag 2019-05-20 12:19:15 -07:00
git_access_result Allow console messages be sent to gitlab-shell 2019-04-04 14:20:11 +11:00
gitaly_client Fix typos in the whole gitlab-ce project 2019-05-20 14:11:44 +00:00
github_import Fix issuables state_id nil when importing projects from GitHub 2019-05-06 19:45:17 +00:00
gitlab_import
gl_repository Make Gitlab::GlRepository#types an instance method 2019-04-30 17:17:08 +02:00
google_code_import
gpg
grape_logging Migrate correlation and tracing code to LabKit 2019-04-18 09:57:16 +02:00
graphql Add opentracing integration for graphql 2019-05-02 07:01:14 +00:00
graphs
hashed_storage Fix storage migration check for non-empty queues 2019-03-17 00:27:38 +01:00
health_checks Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
hook_data [CE] Support multiple assignees for merge requests 2019-04-08 18:40:00 -03:00
i18n
import Improve performance of PR import 2019-04-08 15:45:06 +02:00
import_export Fix invalid visibility string comparison in project import 2019-05-22 11:32:23 -07:00
kubernetes Teach Helm::Api about #uninstall 2019-04-29 22:55:11 -07:00
legacy_github_import Merge branch '47327-fix-github-project-import-visibility' into 'master' 2019-04-10 09:10:37 +00:00
lets_encrypt Add Let's Encrypt client 2019-05-16 09:32:25 +00:00
manifest_import
metrics Revert "Merge branch '56850-add-new-unicorn-metrics' into 'master'" 2019-05-20 14:34:00 +00:00
middleware Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
patch
performance_bar Upgrade Rails to 5.1.6.1 2019-04-23 08:31:23 +08:00
popen
profiler
project_authorizations
prometheus Remove legacy Kubernetes #actual_namespace 2019-05-21 11:38:11 -05:00
query_limiting
quick_actions Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
redis
request_profiler
sanitizers Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
search
serializer
sherlock Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
sidekiq_logging
sidekiq_middleware Migrate correlation and tracing code to LabKit 2019-04-18 09:57:16 +02:00
sidekiq_status
sidekiq_versioning
slash_commands Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
sql Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
template Merge branch 'require-all-templates-to-include-default-stages' into 'master' 2019-04-15 12:47:35 +02:00
testing
untrusted_regexp Allow to use untrusted Regexp via feature flag 2019-04-04 15:00:56 +00:00
utils
verify
view/presenter
webpack
access.rb Add part of needed code 2019-04-05 18:49:46 +00:00
action_rate_limiter.rb
allowable.rb
app_logger.rb
asciidoc.rb
audit_json_logger.rb
auth.rb Added write_repository scope for personal access token 2019-04-15 13:05:55 +00:00
authorized_keys.rb Handle cases when authorized_keys doesn't exist 2019-03-20 09:16:26 +08:00
background_migration.rb Add methods to check dead and retrying jobs 2019-04-08 19:47:36 -03:00
base_doorkeeper_controller.rb
blame.rb
blob_helper.rb
branch_push_merge_commit_analyzer.rb
build_access.rb
changes_list.rb
chat.rb
chat_name_token.rb
ci_access.rb
closing_issue_extractor.rb
color_schemes.rb
config_helper.rb
content_disposition.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
contributions_calendar.rb
contributor.rb
correlation_id.rb
cross_project_access.rb
crypto_helper.rb
current_settings.rb Use a Gitlab::FakeApplicationSettings when migrations are pending 2019-03-26 23:02:57 +01:00
daemon.rb
database.rb Add helper method to return a human-friendly name for database adapter 2019-03-21 19:03:26 -03:00
dependency_linker.rb
downtime_check.rb
ee_compat_check.rb
emoji.rb
encoding_helper.rb Allow streaming io objects into Gitaly 2019-04-01 20:17:40 +02:00
environment.rb
environment_logger.rb
exclusive_lease.rb
exclusive_lease_helpers.rb
external_authorization.rb Move Contribution Analytics related spec in spec/features/groups/group_page_with_external_authorization_service_spec to EE 2019-04-09 15:38:58 +00:00
fake_application_settings.rb Introduce ApplicationSettingImplementation yay 2019-03-19 13:01:37 +08:00
favicon.rb Refactor Gitlab::Favicon for EE 2019-03-12 11:10:40 +01:00
file_detector.rb Update metrics dashboard API to load yml from repo 2019-05-01 10:16:03 +00:00
file_finder.rb
file_markdown_link_builder.rb
file_type_detection.rb
git.rb
git_access.rb Port changes for design management to CE 2019-04-29 08:28:43 +02:00
git_access_wiki.rb
git_logger.rb
git_post_receive.rb Use Gitlab::PushOptions for ci.skip push option 2019-04-09 10:03:26 +12:00
git_ref_validator.rb
gitaly_client.rb Register "gitaly_delta_islands" feature flag 2019-05-07 15:18:08 +00:00
github_import.rb
gl_id.rb
gl_repository.rb Make Gitlab::GlRepository#types an instance method 2019-04-30 17:17:08 +02:00
gon_helper.rb feat: allow Sentry configuration to be passed on gitlab.yml 2019-04-30 18:10:57 +02:00
gpg.rb
graphql.rb
group_search_results.rb Add improvements to the global search process 2019-05-07 11:08:25 +00:00
highlight.rb
http.rb
http_io.rb
i18n.rb
identifier.rb
import_export.rb
import_formatter.rb
import_sources.rb
incoming_email.rb
insecure_key_fingerprint.rb
issuable_metadata.rb
issuable_sorter.rb
issuables_count_for_state.rb
issues_labels.rb
job_waiter.rb
json_cache.rb Gracefully handles excluded fields from attributes during serialization 2019-03-20 13:21:29 -03:00
json_logger.rb Migrate correlation and tracing code to LabKit 2019-04-18 09:57:16 +02:00
kubernetes.rb Update dashboards to additionally use new environment selector 2019-03-21 08:06:47 +00:00
language_data.rb
language_detection.rb
lazy.rb
lfs_token.rb Geo: Remove Gitlab::LfsToken::LegacyRedisDeviseToken implementation 2019-05-22 16:11:08 +10:00
logger.rb
loop_helpers.rb
mail_room.rb
markup_helper.rb
metrics.rb
multi_collection_paginator.rb
namespace_sanitizer.rb
namespaced_session_store.rb Session stored globally per request 2019-05-02 12:28:26 +07:00
null_request_store.rb
object_hierarchy.rb Prevent infinite loops in ObjectHierarchy 2019-04-05 07:56:21 +08:00
omniauth_initializer.rb
optimistic_locking.rb Forbid the use of #reload and prefer #reset 2019-04-15 13:05:14 +02:00
other_markup.rb
otp_key_rotator.rb
pages.rb
pages_client.rb
pages_transfer.rb
path_regex.rb Add new version of script 2019-05-17 15:01:01 +00:00
performance_bar.rb
plugin.rb
plugin_logger.rb
polling_interval.rb
popen.rb
private_commit_email.rb
profiler.rb Fix Profiler to work with Ruby 5.1 2019-04-26 21:22:23 -07:00
project_search_results.rb Add improvements to the global search process 2019-05-07 11:08:25 +00:00
project_service_logger.rb
project_template.rb Add Android template 2019-03-07 20:02:40 +01:00
project_transfer.rb
prometheus_client.rb Add a proxy method to PrometheusClient 2019-04-05 08:05:54 +00:00
protocol_access.rb
proxy_http_connection_adapter.rb
push_options.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
query_limiting.rb
recaptcha.rb Apply recaptcha API changes in 4.0 2019-03-08 15:04:04 +01:00
reference_counter.rb
reference_extractor.rb
regex.rb
repo_path.rb Fall back to project repository type by default 2019-04-05 10:51:42 +00:00
repository_cache.rb
repository_cache_adapter.rb
repository_check_logger.rb
request_context.rb Fix health checks not working behind load balancers 2019-03-12 12:46:40 -07:00
request_forgery_protection.rb
request_profiler.rb
route_map.rb
routing.rb Fix typos in the whole gitlab-ce project 2019-05-20 14:11:44 +00:00
safe_request_store.rb
search_results.rb Add improvements to the global search process 2019-05-07 11:08:25 +00:00
seeder.rb
sentry.rb Add correlation id to all sentry errors 2019-05-13 13:27:41 -05:00
session.rb Session stored globally per request 2019-05-02 12:28:26 +07:00
setup_helper.rb
shard_health_cache.rb
shell.rb Integrate Gitlab::Keys with Gitlab::Shell 2019-03-19 11:16:21 +00:00
shell_adapter.rb
sherlock.rb
sidekiq_config.rb Change path of bin/sidkiq-cluster in comments 2019-04-29 10:32:33 +10:00
sidekiq_logger.rb
sidekiq_signals.rb
sidekiq_status.rb
sidekiq_versioning.rb
snippet_search_results.rb
ssh_public_key.rb
string_placeholder_replacer.rb
string_range_marker.rb
string_regex_marker.rb
task_helpers.rb
tcp_checker.rb
template_helper.rb
temporarily_allow.rb
themes.rb
time_tracking_formatter.rb
timeless.rb
tracing.rb
tree_summary.rb
untrusted_regexp.rb Bring back Gitlab::UntrustedRegexp.with_fallback 2019-04-03 15:31:56 +08:00
update_path_error.rb
uploads_transfer.rb
url_blocker.rb Align UrlValidator to validate_url gem implementation. 2019-04-11 06:29:07 +00:00
url_builder.rb Update deployment chat message notification 2019-05-02 16:07:26 +00:00
url_helpers.rb Renamed terminal_specification to channel_specification 2019-04-04 18:32:02 +00:00
url_sanitizer.rb
usage_data.rb Add PoolRepository to the usage ping 2019-05-17 09:10:29 +00:00
user_access.rb
user_extractor.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
utils.rb Backport try_megabytes_to_bytes from EE 2019-03-12 14:04:05 +01:00
version_info.rb
visibility_level.rb Squashed commits and modified visibility level output 2019-04-12 05:00:50 +00:00
web_ide_commits_counter.rb
wiki_file_finder.rb
workhorse.rb Add a feature flag for subdirectory archives 2019-04-16 15:16:23 +01:00