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

Refactoring to support edge-tracking in graph #1078

Merged

Conversation

tpdownes
Copy link
Member

@tpdownes tpdownes commented Mar 23, 2023

  • Re-implement modReference and varReference structs to implement a new interface named reference
  • Adopt the reference interface in the ModConnection struct that tracks edges within the blueprint graph

These changes represent some design elements considered during implementation of references but weren't quite yet necessary to glue together.

Coverage in expand.go drops slightly due to the inclusion of new getter functions that seem too simple to merit unit testing. There appears to be no way to mark code as unreachable/not-meriting-testing for coverage percentages. This is area of active discussion in various Go channels.

Submission Checklist

  • Have you installed and run this change against pre-commit? (pre-commit install)
  • Are all tests passing? (make tests)
  • Have you written unit tests to cover this change?
  • Is unit test coverage still above 80%?
  • Have you updated all applicable documentation?
  • Have you followed the guidelines in our Contributing document?

- Re-implement `modReference` and `varReference` structs to implement
  a new interface named `reference`
- Adopt the `reference` interface in the `ModConnection` struct that
  tracks edges within the blueprint graph
pkg/config/expand.go Outdated Show resolved Hide resolved
pkg/config/expand.go Outdated Show resolved Hide resolved
pkg/config/expand.go Outdated Show resolved Hide resolved
pkg/config/expand.go Outdated Show resolved Hide resolved
pkg/config/config.go Outdated Show resolved Hide resolved
@nick-stroud nick-stroud assigned tpdownes and unassigned nick-stroud Mar 23, 2023
@tpdownes tpdownes assigned nick-stroud and unassigned tpdownes Mar 23, 2023
@nick-stroud nick-stroud assigned tpdownes and unassigned nick-stroud Mar 23, 2023
@tpdownes tpdownes merged commit f32b668 into GoogleCloudPlatform:develop Mar 24, 2023
@tpdownes tpdownes deleted the refactor_reference_interface branch March 24, 2023 00:32
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