Project

General

Profile

Actions

Feature #692

closed

Implement showOrSubmitCommand() for as many Appion functions as possible

Added by Neil Voss over 14 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
06/21/2010
Due date:
% Done:

0%

Estimated time:

Description

Implement showOrSubmitCommand() for as many Appion functions as possible


Related issues 3 (0 open3 closed)

Related to Appion - Feature #662: Pass all command line results from "Just Show Command" to a common functionClosedAmber Herold06/15/2010

Actions
Related to Appion - Feature #828: Add Appion Wrapper to commands - show and runClosedDmitry Lyumkis08/19/2010

Actions
Related to Appion - Bug #1460: DOgPicker test mode deos not work anymore???ClosedAmber Herold11/09/2011

Actions
Actions #1

Updated by Neil Voss over 14 years ago

  • Tracker changed from Bug to Feature
Actions #2

Updated by Neil Voss over 14 years ago

  • Target version set to Appion/Leginon 2.1.0
Actions #3

Updated by Amber Herold over 14 years ago

Neil, are you still actively working on this one? I'd like to get the wrapper stuff done as soon as possible, so I can take it over if needed. I'm trying to figure out what still needs to be done to the code to complete use of the wrapper. Looks like showing the command prepends the path to the wrapper, but submitting the command does not. Do we need to add the path to the submitted commands as well? Is there anything else that needs to be done for this?

Actions #4

Updated by Amber Herold over 14 years ago

r14692 changes $cmd to $command to match the call to showOrSubmitCommand(). I decided to go with $command rather than $cmd because it is more clear.

Actions #5

Updated by Neil Voss about 14 years ago

  • Assignee changed from Neil Voss to Amber Herold

No time, right now.

Actions #6

Updated by Amber Herold about 14 years ago

  • Target version changed from Appion/Leginon 2.1.0 to Appion/Leginon 2.2.0
Actions #7

Updated by Amber Herold about 14 years ago

  • Deliverable set to Appion Wrapper
Actions #8

Updated by Amber Herold over 13 years ago

I modified DogPicker to use showOrSubmitCommand. I'm not thrilled with how I'm handling testing of a single image...followed the example of runMaskMaker.php. I may try to refactor this portion if I find a good way to do it.

Actions #9

Updated by Neil Voss over 13 years ago

Hi Amber, you Dog picker example is why I left the particle picker untouched. I was not sure how to do the testing part. Sorry for the late reply.

Actions #10

Updated by Amber Herold over 13 years ago

Link to wrapper testing page: Wrapper_Testing

I updated runJpgMaker in r15490, but I'm not pleased with the way the test feature works. You need to press "show command" to get the test command, but an error is displayed because the test image has not yet been processed. Then the user needs to run the command and return to the form, select the option for testimage again and press "show command" again to see the test results. Very strange. I spent some time trying to change the interface so the user could press a button after running the command to show the results, but hit some snags. Rather than spend too much time on this one file, I just added some instruction for the user in the header, but it would be nice to return to this some day to improve the user experience.

Actions #11

Updated by Amber Herold over 13 years ago

For code review, the biggest thing to look for might be copy/paste errors.

This will be a difficult one to test. For each file changed:
0. make sure you are using an appion installation that has the wrapper path defined in the config.php file.
1. Fill out form and press just show command. Ensure the appion wrapper path as defined in config.php is prepended to the command.
2. Ensure there is a citation for the software used at the top of the page.
3. Fill in the form again and press the run button. I'll say this is almost optional since "show" and "run" go through the same function. But it can't hurt to test it.
4. Fill in the form again but leave out something that is required. Ensure an error message is displayed.
5. If there is an option to test an image, try testing an image using both "run" and "show". Ensure they use the wrapper path.

Actions #12

Updated by Amber Herold over 13 years ago

  • Status changed from Assigned to In Code Review
  • Assignee changed from Amber Herold to Eric Hou
Actions #13

Updated by Amber Herold over 12 years ago

  • Status changed from In Code Review to Closed
  • Assignee deleted (Eric Hou)

This has been in use sufficiently long enough to find errors. Closing out. Bugs related to this should be new issues.

Actions

Also available in: Atom PDF