OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
replace map.compact with filter_map in OpenProject::PostgresEnvironment
Ivan Kuchin6803646515c6
diff --git a/lib/open_project/postgres_environment.rb b/lib/open_project/postgres_environment.rbindex 32f92bec66b..8ec97dcef0a 100644--- a/lib/open_project/postgres_environment.rb+++ b/lib/open_project/postgres_environment.rb@@ -43,7 +43,7 @@ module OpenProjectdef pg_envdatabase_config = ActiveRecord::Base.connection_db_config.configuration_hash- entries = PG_ENV_TO_CONNECTION_CONFIG.map do |key, config_key|+ PG_ENV_TO_CONNECTION_CONFIG.filter_map do |key, config_key|possible_keys = Array(config_key)value = possible_keys.lazy@@ -51,9 +51,7 @@ module OpenProject.first[key.to_s, value.to_s] if value.present?- end-- entries.compact.to_h+ end.to_hendendend