8000 logic of read-only flags for legacy tools · Issue #1419 · aces/cbrain · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

logic of read-only flags for legacy tools #1419

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

Open
MontrealSergiy opened this issue Aug 1, 2024 · 0 comments
Open

logic of read-only flags for legacy tools #1419

MontrealSergiy opened this issue Aug 1, 2024 · 0 comments
Labels
Priority: Low To implement when someone actually requests it! Security User Interface

Comments

@MontrealSergiy
Copy link
Contributor
MontrealSergiy commented Aug 1, 2024

Compared to the recent integration method, tools that were integrated earlier have somewhat more convoluted read-only flag logic for input files. At the least, the UX can be adjusted to better reflect peculiarities of old-style integration: 1) either by making the said flag uneditable on configuration page when it does not affect the CBRAIN behaivor and/or 2) adding some fine print warning note.

Context:
Tools integrated using legacy methods (either hard-coded in Ruby or via old boot-time Boutiques integrator) often have a task class attribute :read_only_input. In the same time the tool config model also has a Boolean attribute inputs_readonly, rendered with label Does not modify its input files on a tool config page.

Current Behavior :
When :read_only_input_files is set to true, the CBRAIN tool configuration page field Does not modify its input files (represented by inputs_readonly) does not affect CBRAIN behavior. This behaviour is counter-intuitive, a CBRAIN admin might expect a config page field to have some effect.

Above does not affect much the newest scientific tools, because the new style integrator only sets the initial value of config's read-only attribute, and not the class attributed.

Proposed Workaround:
To mitigate this issue, an easy workaround could be to make the field Does not modify its input files read only on whenever a task class attribute if set to true. I think is fine to modify only config page and keep the config model as is.

Other consideration:
With an effort, it should be possible to correct the cbrain:read-only-input/read_only_input_files property is interpreted with legacy integration method, yet is could get clumsy.

Potential Separate Ticket:
Yet another flag, cbrain:alters-input-files is used only by old-style Boutiques integrator, yet has no effect on the new style integrator. Not sure that discrepancy deserve any effort, maybe it is enough to document the flag as deprecated by the new integrator.

@MontrealSergiy MontrealSergiy changed the title read-only flags for legacy tools logic of read-only flags for legacy tools Aug 5, 2024
@MontrealSergiy MontrealSergiy added the Priority: Low To implement when someone actually requests it! label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low To implement when someone actually requests it! Security User Interface
Projects
None yet
Development

No branches or pull requests

1 participant
0