-
Notifications
You must be signed in to change notification settings - Fork 29
[uss_qualifier] monitorlib: ISAChange exposes subscribers as returned by DSS #838
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
[uss_qualifier] monitorlib: ISAChange exposes subscribers as returned by DSS #838
Conversation
b9c3b9e to
8e46667
Compare
mickmis
left a comment
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.
PR title: this looks more like a monitorlib change.
monitoring/monitorlib/mutate/rid.py
Outdated
| notifications: Dict[str, ISAChangeNotification] | ||
| """Mapping from USS base URL to change notification query""" | ||
|
|
||
| subscribers: List[SubscriberToNotify] |
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.
It looks this always contains dss_query.subscribers: rather than a new field why not adding a property returning that?
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.
Indeed, that is the straightforward solution
| import arrow | ||
| import s2sphere | ||
| from uas_standards.astm.f3411 import v19, v22a | ||
| from zope.event import subscribers |
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.
That looks fishy
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.
Auto-complete artifact, fishy indeed
8e46667 to
d0813ae
Compare
|
Updated as suggested. |
This allows users of the
DSSWrapperto easily check which subscribers were mentioned in a response to create, mutate or delete an ISA on the DSS.Up to now this could be reconstructed by looking at the notifications that were effectively sent by the wrapper, but this was needlessly cumbersome and breaks down when the qualifier ignores notifications that should be sent to itself.
(This change was required by #839)