-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor BaseDatabase class for simplicity #945
Open
ekohl
wants to merge
14
commits into
theforeman:master
Choose a base branch
from
ekohl:clean-up-base-db
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+221
−85
Commits on Oct 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 470a5ea - Browse repository at this point
Copy the full SHA 470a5eaView commit details -
Drop config parameter on database instance methods
The configuration is an instance level setting that is never passed in. This simplifies the code by avoiding the need to pass it around.
Configuration menu - View commit details
-
Copy full SHA for 747e89e - Browse repository at this point
Copy the full SHA 747e89eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d75f89b - Browse repository at this point
Copy the full SHA d75f89bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66cf3f7 - Browse repository at this point
Copy the full SHA 66cf3f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a2fad6e - Browse repository at this point
Copy the full SHA a2fad6eView commit details -
Pass in PostgreSQL credentials via environment variables
This avoids the need to build a complex command. On the plus side, it avoids the risk of leaking anything about the database access. On the downside, that can make debugging harder.
Configuration menu - View commit details
-
Copy full SHA for de4e060 - Browse repository at this point
Copy the full SHA de4e060View commit details -
Also pass in the database name via an environment variable
This avoids the need for another helper command and simplifies the commands.
Configuration menu - View commit details
-
Copy full SHA for fba403a - Browse repository at this point
Copy the full SHA fba403aView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf26905 - Browse repository at this point
Copy the full SHA cf26905View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac61072 - Browse repository at this point
Copy the full SHA ac61072View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa0407e - Browse repository at this point
Copy the full SHA aa0407eView commit details -
Completely cache the Debian PostgreSQL versions
This uses a block that won't run if @deb_postgresql_versions is already set.
Configuration menu - View commit details
-
Copy full SHA for 974d33d - Browse repository at this point
Copy the full SHA 974d33dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 62caf3e - Browse repository at this point
Copy the full SHA 62caf3eView commit details -
Use <<~ for more predictable indenting
This wasn't used in the past for Ruby 1.9 or 2.0 support, but we can now rely on this. It makes testing easier.
Configuration menu - View commit details
-
Copy full SHA for 591bbc1 - Browse repository at this point
Copy the full SHA 591bbc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bed8ed - Browse repository at this point
Copy the full SHA 9bed8edView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.