Bug #16116

Can't rename collection

Added by Peter Amstutz almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench2
Target version:
Start date:
02/05/2020
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Story points:
-

Description

Create a collection.

Open the "Edit collection" dialog.

Change the name and hit save.

Gets an error:

request failed: http://localhost:8004/arvados/v1/collections/ce8i5-4zz18-sb9yyc73x4bgesv: 422 Unprocessable Entity: #<ActiveModel::UnknownAttributeError: unknown attribute 'menu_kind' for Collection.> (req-xa053an8rm8h1tzbmf4f)

After taking a quick look: "menuKind" is a field of ContextMenuResource, so probably what is happening is that when you hit "save" it just sends entire object without regard for whether the fields exist on the resource being edited.

Which means this particular bug probably affects every place "ContextMenu" is used.


Subtasks

Task #16117: Review 16116-collection-rename-fixResolvedPeter Amstutz


Related issues

Related to Arvados - Bug #16125: Can't copy collectionDuplicate

Blocks Arvados - Story #16015: Release 2.0Resolved01/28/2020

Associated revisions

Revision ccec2628
Added by Lucas Di Pentima almost 2 years ago

Merge branch '16116-collection-rename-fix'

Closes #16116

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <>

History

#1 Updated by Peter Amstutz almost 2 years ago

  • Status changed from New to In Progress

#2 Updated by Peter Amstutz almost 2 years ago

  • Description updated (diff)

#3 Updated by Peter Amstutz almost 2 years ago

  • Assigned To deleted (Peter Amstutz)

#4 Updated by Peter Amstutz almost 2 years ago

  • Description updated (diff)

#5 Updated by Peter Amstutz almost 2 years ago

  • Description updated (diff)

#6 Updated by Lucas Di Pentima almost 2 years ago

  • Assigned To set to Lucas Di Pentima

#7 Updated by Peter Amstutz almost 2 years ago

  • Related to Bug #16125: Can't copy collection added

#8 Updated by Peter Amstutz almost 2 years ago

#9 Updated by Lucas Di Pentima almost 2 years ago

Updates at commit 070f8413 - branch 16116-collection-rename-fix
Test run: https://ci.arvados.org/view/Developer/job/developer-tests-workbench2/10/

Unifies how project and collection edit dialogs are handled with how it's being done on the process edit dialog: passing explicitly all the fields to the PUT call to avoid passing illegal data.

#10 Updated by Anonymous almost 2 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Resolved

Also available in: Atom PDF