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

Propagate context.Context to operations with support for it #181

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

chrisgacsal
Copy link
Contributor

Description

Use a single context.Context tree by propagating ctx to functions interacting with external resources, although there are couple operations that do not support context.Context yet.

Type of Change

[ ] Bug Fix
[ ] New Feature
[ ] Breaking Change
[x] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@chrisgacsal chrisgacsal requested a review from a team as a code owner March 23, 2023 09:19
@chrisgacsal chrisgacsal marked this pull request as draft March 23, 2023 09:19
@chrisgacsal chrisgacsal marked this pull request as ready for review March 23, 2023 09:21
@chrisgacsal chrisgacsal marked this pull request as draft March 23, 2023 09:31
@chrisgacsal chrisgacsal marked this pull request as ready for review March 23, 2023 09:49
@chrisgacsal chrisgacsal force-pushed the refactor-ctx-in-cli branch 2 times, most recently from ad028b1 to bf4562c Compare March 23, 2023 11:18
FrimIdan
FrimIdan previously approved these changes Mar 23, 2023
Use a single context.Context tree by propagating ctx to functions
interacting with external resources, although there are couple
operations that do not support context.Context yet.
@chrisgacsal chrisgacsal merged commit ad589c5 into main Mar 23, 2023
@chrisgacsal chrisgacsal deleted the refactor-ctx-in-cli branch March 23, 2023 14:19
shalevr added a commit that referenced this pull request Mar 28, 2023
* main: (31 commits)
  Improve error messages and add missing comments in Lynis scanner
  Add lynis scanner to the misconfiguration family
  fix nil summary crash in Region findings widget (#194)
  Switch result processor vulnerabilties map print to debug level (#192)
  UI dashboard (#191)
  set disabled to true for a non periodic scan once scan started
  Add infrastructure for scan result post processing (#136)
  Add a new DB error type for validation errors (#189)
  Findings trends dashboard widget (#182)
  Fix odata queries for TargetScanResult/Status (#184)
  UI null fields (#188)
  Fix exporter check in waitFroAttached
  Malware family and ClamAV implementation (#118)
  Propagate Context (#181)
  Add support for comparing datetimes to odatasql
  Most risky assets dashboard widget (#172)
  Make sure that scan init failures are captured by scan state (#144)
  UI config updates new (#180)
  Fix error message in misconfiguration family
  Add missing misconfiguration scan scanners field
  ...

# Conflicts:
#	cli/cmd/exportresults.go
#	cli/cmd/root.go
#	runtime_scan/pkg/config/config.go
#	runtime_scan/pkg/scanner/job_managment.go
shalevr added a commit that referenced this pull request Mar 28, 2023
* main: (31 commits)
  Improve error messages and add missing comments in Lynis scanner
  Add lynis scanner to the misconfiguration family
  fix nil summary crash in Region findings widget (#194)
  Switch result processor vulnerabilties map print to debug level (#192)
  UI dashboard (#191)
  set disabled to true for a non periodic scan once scan started
  Add infrastructure for scan result post processing (#136)
  Add a new DB error type for validation errors (#189)
  Findings trends dashboard widget (#182)
  Fix odata queries for TargetScanResult/Status (#184)
  UI null fields (#188)
  Fix exporter check in waitFroAttached
  Malware family and ClamAV implementation (#118)
  Propagate Context (#181)
  Add support for comparing datetimes to odatasql
  Most risky assets dashboard widget (#172)
  Make sure that scan init failures are captured by scan state (#144)
  UI config updates new (#180)
  Fix error message in misconfiguration family
  Add missing misconfiguration scan scanners field
  ...

# Conflicts:
#	cli/cmd/exportresults.go
#	cli/cmd/root.go
#	runtime_scan/pkg/config/config.go
#	runtime_scan/pkg/scanner/job_managment.go
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.

None yet

3 participants