Skip to content

Command introspection - #66

Merged
GDYendell merged 11 commits into
mainfrom
41-command-introspection
Jun 10, 2025
Merged

GDYendell merged 11 commits into
mainfrom
41-command-introspection

Conversation

@ajgdls

@ajgdls ajgdls commented Jun 2, 2025 •

Copy link
Copy Markdown
Contributor

This PR stops command URIs from being autogenerated into standard attributes.
It then builds Command objects for each command listed within the "allowed" commands endpoint.

Fixes #41
Fixes #68 - the failing parameters are command/.../allowed, so this will fix the problem

@ajgdls
ajgdls requested a review from GDYendell June 2, 2025 10:19
@ajgdls ajgdls changed the title 41 command introspection Command introspection Jun 2, 2025
@ajgdls
ajgdls force-pushed the 41-command-introspection branch from a36eac5 to cce30c8 Compare June 2, 2025 10:26

@GDYendell GDYendell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good so far, just a few comments.

This also needs

  • a unit test of _create_commands
  • some addition to the _walk_odin_metadata unit tests to check that commands are skipped
  • to update the dumped json response to include commands and update the tests that use it

Comment thread src/fastcs_odin/util.py Resolved
Comment thread src/fastcs_odin/util.py Resolved
@codecov

codecov Bot commented Jun 4, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.96%. Comparing base (a42c48e) to head (69da49b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #66      +/-   ##
==========================================
+ Coverage   91.57%   91.96%   +0.38%     
==========================================
  Files          11       11              
  Lines         475      498      +23     
==========================================
+ Hits          435      458      +23     
  Misses         40       40              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ajgdls
ajgdls marked this pull request as ready for review June 6, 2025 09:42
Comment thread src/fastcs_odin/util.py Resolved
Comment thread src/fastcs_odin/frame_processor.py Resolved
Comment thread src/fastcs_odin/frame_processor.py Resolved
Comment thread src/fastcs_odin/frame_processor.py Resolved

@GDYendell GDYendell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks much neater now that create_commands is in FrameProcessorController. Tests look good. Just a few minor things.

@ajgdls
ajgdls force-pushed the 41-command-introspection branch from 4fd44f7 to 7183e17 Compare June 9, 2025 15:24
@GDYendell
GDYendell merged commit 8a9ae8c into main Jun 10, 2025
@GDYendell
GDYendell deleted the 41-command-introspection branch June 10, 2025 07:49
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.

Introspection is failing to intercept some list parameters and trying to validate them Add introspection of commands in odin data applications

2 participants