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

Create CAN History GET endpoint #3288

Merged
merged 6 commits into from
Jan 16, 2025
Merged

Create CAN History GET endpoint #3288

merged 6 commits into from
Jan 16, 2025

Conversation

rajohnson90
Copy link
Contributor

What changed

Creating /can-history endpoint so users can retrieve the history of all actions performed on can. Adding test data to the database so that the can history can be interacted with from the front end in dev environments before any can history events have been triggered.

Issue

OPS-3276

How to test

Run all tests

Definition of Done Checklist

  • OESA: Code refactored for clarity
  • OESA: Dependency rules followed
  • Automated unit tests updated and passed
  • Automated integration tests updated and passed
  • Automated quality tests updated and passed
  • Automated load tests updated and passed
  • Automated a11y tests updated and passed
  • Automated security tests updated and passed
  • 90%+ Code coverage achieved
  • Form validations updated

class CANHistoryItemSchema(Schema):
id = fields.Integer(required=True)
can_id = fields.Integer(required=True)
ops_event_id = fields.Integer(required=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we add/update the openAPI spec to match?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose it probably wouldn't hurt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@rajohnson90 rajohnson90 removed the request for review from Santi-3rd January 16, 2025 15:05
@rajohnson90 rajohnson90 merged commit b6fd256 into main Jan 16, 2025
42 checks passed
@rajohnson90 rajohnson90 deleted the OPS-3276/get-can-history branch January 16, 2025 20:47
Copy link

🎉 This PR is included in version 1.24.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants