-
Notifications
You must be signed in to change notification settings - Fork 89
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
[scd] oir upsert: factor out determination of subscriptions to notify #1092
[scd] oir upsert: factor out determination of subscriptions to notify #1092
Conversation
@@ -508,6 +508,56 @@ func validateUpsertRequestAgainstPreviousOIR( | |||
return nil | |||
} | |||
|
|||
func incrementIndicesAndGetRelevantSubscriptions( |
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.
nit: I think the primary thing this function is doing is getting relevant subscriptions, with a sub-behavior of incrementing notification indices
func incrementIndicesAndGetRelevantSubscriptions( | |
func getRelevantSubscriptionsAndIncrementIndices( |
c4bdf24
to
47e45c3
Compare
@@ -517,6 +517,56 @@ func validateUpsertRequestAgainstPreviousOIR( | |||
return nil | |||
} | |||
|
|||
func getRelevantSubscriptionsAndIncrementIndices( |
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.
Drive-by comment: also use this in DeleteOperationalIntentReference
? There seems to be some common logic (although maybe there are some small deviations)
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.
Good point. I'll quickly check: if the method can be used as-is I'll update to use it, otherwise I'll keep that for another day
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.
Ended up doing it as it was an easy fix.
8228781
to
8eed218
Compare
8eed218
to
46d34f0
Compare
Another step towards #1088