[SQL][Instrument List][Battery Manager] Move DDE Enabled to Test_Battery
Brief summary of changes
- Changed the logic for DDE being enabled to be moved from Config to Test_Battery so that it can be managed on a visit-instrument basis instead of just instrument.
- Modified Battery Manager to have a section for editing which battery has DDE enabled
- Modifies Raisinbread to match the sql changes
Testing instructions (if applicable)
- Confirm that the sql patch copies over the selected DDE instruments to the test_battery field properly
- Test all affected tools and confirm they still work as intended
- Confirm that the correct tests show the DDE option in instrument list for the visit-instrument tuple as defined in test_battery
@driusan removing from release unless you wanted it for 26 ?
No, I thought I had already removed it from the release.
Move from Instrument_Manager to Battery_Manager
That stack trace has a project/libraries/NDB_BVL_Battery.class.inc file in it. Are you sure you don't have overrides that are breaking @skarya22's change?
@shonibare from the stack trace it looks like the problem is that there is likely an override like @driusan mentioned in NDB_BVL_Battery.class.inc, specifically here:
$config->getSetting("DoubleDataEntryInstruments") should no longer be present in the function, but the stack trace has "Config setting DoubleDataEntryInstruments does not exist in database"
@skarya22 could you take a look at this function https://github.com/aces/Loris/blob/b5e10cabd89fa6efed76a0b529f446a414c9b641/php/libraries/NDB_Config.class.inc#L430
@shonibare That function is alright, other parts of LORIS need it, however it should not be called with "DoubleDataEntryInstruments" as the name since that was removed from Config
@shonibare That function is alright, other parts of LORIS need it, however it should not be called with "DoubleDataEntryInstruments" as the name since that was removed from Config
@skarya22 is it not breaking on your VM? cos I did fetch your PR and ran the patch. I also searched for this DoubleDataEntryInstruments in the files in your PR in my VM but didn't find it.
Yeah it works for me
Confirmed that this is working when I check out Saagar's PR, run the patch, and compile:
I also tested the other relevant modules and those all loaded also
@driusan I think I made the necessary adjustments. I could not find anything in the swagger documentation to update however.
0.0.4-dev:
0.0.3:
@skarya22 can you rebase this? There is a conflict
@skarya22 There are still conflicts that prevent this from being merged
@driusan sorry everything has conflicts after the lint changes this morning