Project

General

Profile

Actions

Bug #4924

closed

[SDKs] Improve arv edit error handling UX

Added by Tom Clegg over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
0.5

Description

To do:
  • Error messages should be visible after a failure.
  • User should always be given a chance to re-edit after a failure. (Currently, (some?) API request failures just cause 'arv edit' to exit and save a temp file.)
  • Try: Show the errors by reopening the editor, with error messages in a comment block at the top. Strip the comment block when saving. This avoids the extra "try again? y/n" prompt which is nearly always what the user wants to do.
    • Exit if the temp file (minus leading comment block and whitespace) is empty.
    • Prompt (exit or try again) if the user saves the same bogus JSON twice in a row. (Maybe the user is just trying to escape!)
  • Unchanged attributes should not be sent in the API update call. (This is a common cause of failures.)

Subtasks 3 (0 open3 closed)

Task #4933: Review 4924-arv-edit-error-handlingResolvedPeter Amstutz09/02/2014Actions
Task #3655: [SDKs] "arv edit" should not fail just because some special attribute (which I didn't edit) is rejected by the "update" call.ResolvedPeter Amstutz01/07/2015Actions
Task #3786: [SDK] `arv edit` errors should be visible after failure, even if the edited JSON is longResolvedPeter Amstutz09/02/2014Actions
Actions

Also available in: Atom PDF