feat(Scheduled Analysis): add scheduled analysis to the list of user-updatable parameters BED-7186#2299
Conversation
WalkthroughAdds a new public ParameterKey Changes
Sequence Diagram(s)(omitted — changes are localized and do not introduce a multi-component sequential flow) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| slog.WarnContext(ctx, "Failed to fetch CitrixRDPSupport configuration; returning default values") | ||
| } else if err := cfg.Map(&result); err != nil { | ||
| slog.WarnContext(ctx, fmt.Sprintf("Invalid CitrixRDPSupport configuration supplied, %v. returning default values.", err)) | ||
| slog.WarnContext(ctx, "Invalid CitrixRDPSupport configuration supplied, returning default values.", slog.String("invalid_citrix_rdp_support_configuration", err.Error())) |
There was a problem hiding this comment.
Thanks for improving the logs here! I actually think we can go a step further if you don't mind, the slog string keys are helpful to hinge filters on, what do you think about making all of these the same something like invalid_configuration and the value remains the error, and then adding another slog.String("parameter_key", ::value_is_the_key::) that way one can query logs for all or specific config loading issues?
mistahj67
left a comment
There was a problem hiding this comment.
Code LGTM, tested locally as well 🚀
Description
Updates the list of parameters that are user-updatable to include the scheduled analysis parameter.
Motivation and Context
Resolves BED-7186
This is part of the Scheduled Analysis epic. We want scheduled analysis to be user-updatable via the API, instead of users having to go through TAMs or modify the DB directly to edit this param.
Also fixed some slog lint warnings in the parameters file.
How Has This Been Tested?
Tested locally, received
200response.Screenshots (optional):
Types of changes
Checklist:
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.