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

[scan-9] Update enumeration logic #3626

Merged
merged 8 commits into from
Nov 25, 2024
Merged

[scan-9] Update enumeration logic #3626

merged 8 commits into from
Nov 25, 2024

Conversation

0x1
Copy link
Contributor

@0x1 0x1 commented Nov 19, 2024

Added functionality to enumerate Source with Unit information. Renamed older functions to reflect new functionality.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@0x1 0x1 marked this pull request as ready for review November 21, 2024 18:07
@0x1 0x1 requested review from a team as code owners November 21, 2024 18:07
Copy link
Collaborator

@rosecodym rosecodym left a comment

Choose a reason for hiding this comment

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

Looks good - just one question about naming.

@@ -103,6 +103,30 @@ type SourceUnitEnumerator interface {
Enumerate(ctx context.Context, reporter UnitReporter) error
}

// BaseUnitReporter is a helper struct that implements the UnitReporter interface
// and includes a JobProgress reference.
type baseUnitReporter struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What makes this a "base" unit reporter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the passed-in reporter gets wrapped into this, and so this reporter becomes the parent. 'base' made sense in that respect.

@0x1 0x1 merged commit 1276d26 into main Nov 25, 2024
13 checks passed
@0x1 0x1 deleted the scan-9-sjr-enumerate-api branch November 25, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants