-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[external-renames] ExternalTargetData -> TargetSnap #20787
Conversation
003b588
to
82ff688
Compare
85a10ca
to
ddd5a2d
Compare
ddd5a2d
to
71c8f79
Compare
@@ -166,7 +166,7 @@ def get_sensors_for_pipeline( | |||
results = [] | |||
for external_sensor in external_sensors: | |||
if pipeline_selector.job_name not in [ | |||
target.job_name for target in external_sensor.get_external_targets() | |||
target.job_name for target in external_sensor.get_targets() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're establishing new conventions, should this be get_target_snaps
or get_targets
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The convention I've been following in this stack is that accessors on a Snap
class that return other snaps are not qualified with "snap". Snaps are implicitly understood to contain other snaps.
Open to debate on this but IMO it makes for more readable code in a world where you can use editor hover to get type information for an accessor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q mgmt
71c8f79
to
697178a
Compare
697178a
to
e1b3f6c
Compare
e1b3f6c
to
0c73a24
Compare
Summary & Motivation
Renames:
ExternalTargetData
->TargetSnap
How I Tested These Changes
Existing test suite.