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

[uss_qualifier] SCD DSS0210,A2-7-2 – OIR key validation when creating or updating an OIR #543

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

Shastick
Copy link
Contributor

@Shastick Shastick commented Mar 11, 2024

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

@Shastick Shastick force-pushed the dss0210-oir-key-validation branch 3 times, most recently from e5bc1a4 to 2c1e517 Compare March 11, 2024 18:11
@Shastick Shastick changed the title [uss_qualifier] SCD: cover oir key validation when creating or updating an OIR [uss_qualifier] SCD DSS0210,A2-7-2 – cover oir key validation when creating or updating an OIR Mar 11, 2024
@Shastick Shastick changed the title [uss_qualifier] SCD DSS0210,A2-7-2 – cover oir key validation when creating or updating an OIR [uss_qualifier] SCD DSS0210,A2-7-2 – OIR key validation when creating or updating an OIR Mar 11, 2024
Comment on lines 462 to 503
@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]

Copy link
Contributor Author

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

@Shastick Shastick force-pushed the dss0210-oir-key-validation branch from 2c1e517 to 71c2fd6 Compare March 11, 2024 19:47
@Shastick
Copy link
Contributor Author

Parked as draft: this will require interuss/dss#1006 to be merged and released first.

@Shastick Shastick force-pushed the dss0210-oir-key-validation branch 5 times, most recently from 075dea4 to e028eff Compare March 21, 2024 07:36
@Shastick Shastick marked this pull request as ready for review March 21, 2024 07:37
@Shastick Shastick force-pushed the dss0210-oir-key-validation branch 4 times, most recently from 2ca081e to bc23f51 Compare March 21, 2024 16:25
Copy link
Contributor

@mickmis mickmis left a 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.

@Shastick Shastick force-pushed the dss0210-oir-key-validation branch from f3bd4a3 to 8812e81 Compare March 22, 2024 11:39
@Shastick
Copy link
Contributor Author

Updated the following:

  • few code changes as suggested
  • fragments for reusable creation/mutation conflict checks
  • separated things into their own steps
  • creation and mutation are now in their own test cases

@Shastick Shastick force-pushed the dss0210-oir-key-validation branch from 8812e81 to 53e8bb5 Compare March 22, 2024 11:41
@Shastick Shastick requested a review from mickmis March 22, 2024 11:41
@Shastick Shastick force-pushed the dss0210-oir-key-validation branch from 53e8bb5 to ee8ef32 Compare March 22, 2024 11:45
Copy link
Contributor

@mickmis mickmis left a 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.

@Shastick Shastick force-pushed the dss0210-oir-key-validation branch from ee8ef32 to e7b7570 Compare March 22, 2024 14:35
@mickmis mickmis merged commit 0abfa9f into interuss:main Mar 22, 2024
9 checks passed
github-actions bot added a commit that referenced this pull request Mar 22, 2024
… or updating an OIR (#543)

DSS0210 OIR Awareness (key must be correct) 0abfa9f
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.

DSS0210,A2-7-2,2(a|b) create/update Op. Intent Ref. requires correct OVNs in keys (standalone)
2 participants