-
Notifications
You must be signed in to change notification settings - Fork 20
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] SCD DSS0210,A2-7-2 – OIR key validation when creating or updating an OIR #543
Conversation
e5bc1a4
to
2c1e517
Compare
@property | ||
def last_status_code(self) -> int: | ||
"""Returns the status code of the last query present in this QueryError, | ||
or 999 if this error contains no queries.""" | ||
if len(self.queries) == 0: | ||
return 999 | ||
return self.queries[-1].status_code | ||
|
||
@property | ||
def query_timestamps(self) -> List[datetime.datetime]: | ||
"""Returns the timestamps of all queries present in this QueryError.""" | ||
return [q.request.timestamp for q in self.queries] | ||
|
||
@property | ||
def last_query(self) -> Optional[Query]: | ||
"""Returns the last query present in this QueryError, or None if this error contains no queries.""" | ||
if len(self.queries) == 0: | ||
return None | ||
return self.queries[-1] | ||
|
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.
These changes are copied from #536, if they need to be discussed please comment over there
2c1e517
to
71c2fd6
Compare
Parked as draft: this will require interuss/dss#1006 to be merged and released first. |
075dea4
to
e028eff
Compare
2ca081e
to
bc23f51
Compare
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.
Here is a first pass with some comments - I'm not completely done though as I'm running out of time for the day.
monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_key_validation.md
Outdated
Show resolved
Hide resolved
monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_key_validation.md
Outdated
Show resolved
Hide resolved
monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_key_validation.md
Show resolved
Hide resolved
monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_key_validation.py
Outdated
Show resolved
Hide resolved
monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_key_validation.py
Outdated
Show resolved
Hide resolved
monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_key_validation.py
Outdated
Show resolved
Hide resolved
monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_key_validation.py
Show resolved
Hide resolved
monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_key_validation.py
Show resolved
Hide resolved
f3bd4a3
to
8812e81
Compare
Updated the following:
|
8812e81
to
53e8bb5
Compare
53e8bb5
to
ee8ef32
Compare
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.
TY for the changes, that was a lot easier to follow. LGTM, just 2 tiny issues.
monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_key_validation.md
Outdated
Show resolved
Hide resolved
monitoring/uss_qualifier/scenarios/astm/utm/dss/op_intent_ref_key_validation.py
Outdated
Show resolved
Hide resolved
ee8ef32
to
e7b7570
Compare
Covers the implicit requirements DSS0210,A2-7-2,2a and DSS0210,A2-7-2,2b:
These are about making sure that an operational intent reference can only be created or mutated if they include the OVNs for (possibly) conflicting entities in their geotemporal vicinity in the creation request.
(Builds on top of #535 for the OIR fragments – please look at the last commit of this PR only)
Resolves #539