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

1491 transactions websockets and versioning for transactions #1494

Merged

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented Nov 15, 2022

This PR enables the websockets usages from the FE as part of the transaction run page.

Changes

  • Listens to events during the transaction run execution.

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@xoscar xoscar self-assigned this Nov 15, 2022
@xoscar xoscar marked this pull request as ready for review November 15, 2022 21:32
Copy link
Member

@mathnogueira mathnogueira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BE looks fine

Comment on lines +68 to +69
var value model.TransactionRun = *v
mapped = e.mappers.Out.TransactionRun(value)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use this instead?

Suggested change
var value model.TransactionRun = *v
mapped = e.mappers.Out.TransactionRun(value)
mapped = e.mappers.Out.TransactionRun(*v)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that but the TransactionRun function expects a model instance value not a pointer 😢

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you tried the exact code as Matheus suggested? It’s the exact same way we’ve done it for test runs, so it should work

@xoscar xoscar merged commit b15c0b1 into main Nov 15, 2022
@xoscar xoscar deleted the 1491-transactions-websockets-and-versioning-for-transactions branch November 15, 2022 21:51
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.

None yet

3 participants