Skip to content

Conversation

@ekohl
Copy link
Member

@ekohl ekohl commented Oct 18, 2024

This refactors load_configuration to return a simple hash and do the caching in the method configuration. It then also uses URI and CGI to parse the Candlepin DB URL instead of using regular expressions.

@ekohl ekohl force-pushed the clean-db-load-config branch from f94f236 to 2b6a059 Compare October 18, 2024 17:16
@configuration['password'] = db_config['PASSWORD']
@configuration
{
'adapter' => 'postgresql',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We never use this, so why do we need this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be dropped, I guess

Comment on lines +48 to 53
'ssl' => query['ssl']&.first == 'true',
'sslfactory' => query['sslfactory']&.first,
'driver_class' => full_config['jpa.config.hibernate.connection.driver_class'],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We never use these, so why do we have these?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty sure we don't need them and can drop 'em

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants