Ticket #4622 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Change MWRunFiles to Disallow Mutilple Files by Default

Reported by: Peter Parker Owned by: Peter Parker
Priority: major Milestone: Release 2.0
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Stuart Campbell

Description

Hi all

Just a quick heads up about an upcoming change I’ll be making to the MWRunFiles class.

Currently, a user navigating to a file via the “Browse” button sees that file *appended* to the text field, rather than seeing it replace what is there already. This seems fine in places where multiple runs are supported and so might be expected, but there are places where it only makes sense to have a single run. In these cases reusing the widget can produce unexpected results, or at the very least force the user to clear the field each and every time they want to use it.

With this is mind, I will be turning the “append” functionality off by default; developers wanting to use it specifically for their interfaces can use the allowMultipleFiles(bool) function to turn it back on where it is needed.

Regards

P

Change History

comment:1 Changed 9 years ago by Peter Parker

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Peter Parker

Refs #4622 - appending files now off by default.

Changeset: 1b8eb7bec800033ac290332a8db75b708e6c2f18

comment:3 Changed 9 years ago by Peter Parker

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:4 Changed 9 years ago by Peter Parker

  • Status changed from verify to reopened
  • Resolution fixed deleted

Files are still appended in cases where the multiple files option has been turned on specifically.

comment:5 Changed 9 years ago by Peter Parker

Refs #4622 - Files are never appended. Multi files still supported.

Changeset: c0f743bd59eaca7c7958f036ad3e16d6843188a8

comment:6 Changed 9 years ago by Peter Parker

  • Status changed from reopened to accepted

comment:7 Changed 9 years ago by Peter Parker

  • Status changed from accepted to verify
  • Resolution set to fixed

The decision was made to stop the appending functionality altogether.

To test:

  • Find where a MWRunFiles widget is used and check that repeatedly using the browse button no longer appends files in a comma separated list. For example the "Run Files" field of the Energy Tranfer tab on the Convert to Energy interface.
  • Find where a MWRunFiles widget is used that has "multi file" usage enabled, and check that you can still select multiple files, but that repeated use of the browse button no longer appends files. For example the "Run No" field of the Calibration tab on the same interface.

comment:8 Changed 9 years ago by Peter Parker

Refs #4622 - Change multi file setting of a MWRunFiles widget.

Previously this was set to true by default, but since default behaviour has been switched to false, multi file support was lost for the "Run Files" field of the Energy Tranfer tab of the CTE interface. Changed the multi file property to true for this widget so multiple files can be run.

Changeset: da14aa4c23d528c8dffecdc28c1e6b3f39e47d06

comment:9 Changed 9 years ago by Stuart Campbell

  • Status changed from verify to verifying
  • Tester set to Stuart Campbell

comment:10 Changed 9 years ago by Stuart Campbell

  • Status changed from verifying to closed

The behaviour seems to be if I select multiple files on a single 'browse...' then I get multiple filenames in the filename box. If I use multiple 'browse' then I only get the last file browsed to.

I think this is the intended behaviour.

comment:11 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5469

Note: See TracTickets for help on using tickets.