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

Include Pending Events in Event Log #1467

Merged
merged 4 commits into from
Jun 27, 2024
Merged

Conversation

Mythicaeda
Copy link
Contributor

@Mythicaeda Mythicaeda commented Jun 6, 2024

Description

Two changes have been made to support NASA-AMMOS/aerie-ui#1326:

  1. The function to get the event logs now includes pending events. This was done by performing a left join from hdb_catalog.event_log to the invocation logs instead of the default inner join. The return of the function has also been tweaked to include a pending status column to easily identify these rows. An event is pending if it has not been invoked (identified by the invocation log's primary key being NULL).
  2. The event triggers for Mission Model have been updated so that they will now only automatically trigger when jar_id is updated. Additionally, then can now be manually triggered via either the Hasura Console or the Hasura Metadata API (the latter of which is used by the Gateway in this PR)

Verification

E2E tests have been updated to fetch and check the new pending column.

Documentation

No docs need to be updated.

Future work

@Mythicaeda Mythicaeda added the database Anything related to the database label Jun 6, 2024
@Mythicaeda Mythicaeda requested a review from skovati June 6, 2024 22:51
@Mythicaeda Mythicaeda self-assigned this Jun 6, 2024
@Mythicaeda Mythicaeda requested a review from a team as a code owner June 6, 2024 22:51
@Mythicaeda Mythicaeda requested a review from JoelCourtney June 6, 2024 22:51
@Mythicaeda Mythicaeda force-pushed the feat/pending-hasura-events branch from 138e89c to 12b53a4 Compare June 6, 2024 23:03
@Mythicaeda Mythicaeda force-pushed the feat/pending-hasura-events branch from 12b53a4 to b88a02c Compare June 6, 2024 23:14
@Mythicaeda Mythicaeda force-pushed the feat/pending-hasura-events branch from b88a02c to e204c1a Compare June 7, 2024 22:58
@Mythicaeda Mythicaeda force-pushed the feat/pending-hasura-events branch from e204c1a to 5b79f79 Compare June 7, 2024 23:28
@Mythicaeda Mythicaeda force-pushed the feat/pending-hasura-events branch from fce3d8b to 49cd32a Compare June 7, 2024 23:47
Also, since Javalin uses "Title" instead of "Message", attempt to fallback to the error's "title" if there is no message
…updated

- `enable_manual` is set to `true` so the Gateway may invoke them
- `jar_id` is included, as if the underlying Jar is updated, the model has fundamentally changed and must be re-extracted

Fix missiion_model.yaml
- Remove unthrown exception from `getActivityTypes`
@Mythicaeda Mythicaeda force-pushed the feat/pending-hasura-events branch from 940bfaf to 899da1b Compare June 27, 2024 20:41
@Mythicaeda Mythicaeda merged commit 0da0b93 into develop Jun 27, 2024
10 checks passed
@Mythicaeda Mythicaeda deleted the feat/pending-hasura-events branch June 27, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Anything related to the database
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Hasura Event Views to Show Pending Events
2 participants