Skip to content
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

🐛 omit storing force flag in config #5309

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

afiune
Copy link
Contributor

@afiune afiune commented Mar 11, 2025

Additionally, we have a way to add more fields we want to omit from storing
in the config.

@afiune afiune force-pushed the afiune/viper/omit-fields-from-config branch from 710d923 to 7858522 Compare March 11, 2025 16:50
Copy link
Contributor

github-actions bot commented Mar 11, 2025

Test Results

3 551 tests  +5   3 547 ✅ +5   1m 38s ⏱️ -8s
  394 suites ±0       4 💤 ±0 
   30 files   ±0       0 ❌ ±0 

Results for commit f803086. ± Comparison against base commit 4cdbfbc.

♻️ This comment has been updated with latest results.

@afiune afiune force-pushed the afiune/viper/omit-fields-from-config branch from 7858522 to d529e03 Compare March 11, 2025 17:01
@@ -200,9 +200,6 @@ func register(token string, annotations map[string]string, timer int, splay int,
}

log.Debug().Msg("store configuration")
// overwrite force, otherwise it will be stored
viper.Set("force", false)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This never worked. And it was trying to unset a config setting in a single place. Moved it to the storing of the config instead.

Additionally, we have a way to add more fields we want to omit from
storing in the config.

Signed-off-by: Salim Afiune Maya <[email protected]>
@afiune afiune force-pushed the afiune/viper/omit-fields-from-config branch from d529e03 to f803086 Compare March 11, 2025 17:06
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