-
Notifications
You must be signed in to change notification settings - Fork 5
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
Changed enum values back to uint8 before updating the table #58
Changed enum values back to uint8 before updating the table #58
Conversation
52bd496
to
2e7892f
Compare
Requires release of PandABlocks/PandABlocks-client#58 before merging, tested against https://github.com/evalott100/PandABlocks-client/tree/make_conversion_to_string_enums_optional |
Added a test to add to the panda table after initially leaving it blank
2e7892f
to
f02b869
Compare
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58 +/- ##
==========================================
+ Coverage 86.20% 86.26% +0.06%
==========================================
Files 7 7
Lines 1131 1136 +5
Branches 185 171 -14
==========================================
+ Hits 975 980 +5
Misses 121 121
Partials 35 35
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need a couple more tests, especially as the one line of actual code change doesn't have a test covering it.
TESTINGEDIT: will try this again later today and better track what values the PVs are expectingOn an old commit https://github.com/PandABlocks/PandABlocks-ioc/tree/a8586b9fde836a8a8eceda770c935f39af57f98cSEQ2 Table not defined yet
The ioc outputted
SEQ1 Table set up in web ui
The ioc outputted
None of the trigger values were changed on the webui. On this branch (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for testing those situations. To me it looks like this branch is now behaving as expected: Attempting to add a new row by only extending 1 of the waveforms triggers an error.
Do you think this PR is a suitable place to add a test that properly adds a row via EPICS, i.e. does a caput
to each and every column in a table?
Otherwise, please fix the CI linting errors and then two minor cleanup comments, then this is good to go.
Putting it back to how it was before all this,
I've made a new branch on the client which allows for packing of empty tables (it gives things default values if columns are missing). |
ee7ec2c
to
22df0d6
Compare
@AlexanderWells-diamond I've now put this back to how it was, before any of these changes. Whenever PVs are changed internally we push the enums as strings. |
894864e
to
952efe5
Compare
… before submitting it to the panda
1a3877b
to
76cd50e
Compare
Closes #55
Added a test to add to the panda table after initially leaving it blank
update_table
will currently not work for enum values in the table since they'reList[str]
and have to be converted back to their integer index values.Added a test to
update_table
for a table which is[]
on ioc start up, then is added to on the panda side.