Skip to content

Deduplicate/lib get_section - and some other config improvements#3357

Merged
sgoggins merged 6 commits intomainfrom
deduplicate/lib-get_section
Oct 31, 2025
Merged

Deduplicate/lib get_section - and some other config improvements#3357
sgoggins merged 6 commits intomainfrom
deduplicate/lib-get_section

Conversation

@MoralCode
Copy link
Contributor

Description
lib.py has a function called get_section that retrieves a value from the config database. This function duplicates functionality from the augur.application.config.AugurConfig class.

It is currently causing issues with new installs. Users are seeing python KeyError when trying to read config values that are newly added to the database, such as facade_contributor_full_recollect that was added in #3303.

While this PR doesnt fix the KeyError, it ensures that the config is not being read in multiple ways, allowing for a simpler implementation in #3356

This PR migrates the remaining few uses of the old function over to the new implementation

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…ters of varying types

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…m an existing config object

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode added the config Items related to configuring augur settings/state to change how it behaves label Oct 30, 2025
@MoralCode MoralCode added this to the v0.91.0 Release milestone Oct 30, 2025
@MoralCode MoralCode force-pushed the deduplicate/lib-get_section branch from 190bd00 to 0310d32 Compare October 30, 2025 21:34
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode force-pushed the deduplicate/lib-get_section branch from 0310d32 to 6e47e06 Compare October 30, 2025 21:40
@MoralCode
Copy link
Contributor Author

Runs on my machine. Found the missing import causing issues with the CI jobs

@MoralCode MoralCode added the ready Items tested and seeking additional approvals or a merge. Usually for items under active development label Oct 30, 2025
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

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

LGTM!

@sgoggins sgoggins merged commit 6e179cc into main Oct 31, 2025
18 of 19 checks passed
@sgoggins sgoggins deleted the deduplicate/lib-get_section branch November 12, 2025 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config Items related to configuring augur settings/state to change how it behaves ready Items tested and seeking additional approvals or a merge. Usually for items under active development tech debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants