Closed saracarl closed 1 month ago
I was able to change the description and add tags to this collection, so it's not a generalized settings problem.
I also enabled document sets on a different customer's collection yesterday, so it's not a generalized document set settings problem.
Here's what I see in the logs when I reproduced this:
I, [2024-09-19T18:41:31.838886 #2941536] INFO -- : Started POST "/collection/update/virginia-untold-commonwealth-causes"
for 12.236.180.18 at 2024-09-19 18:41:31 +0000
I, [2024-09-19T18:41:31.841106 #2941536] INFO -- : Processing by CollectionController#update as JS
I, [2024-09-19T18:41:31.841332 #2941536] INFO -- : Parameters: {"authenticity_token"=>"NtTeOyRksY28MkxGwS7QTNDe6z2BdODn
qN0nhkqdebZhHgZopA4xgbBQx/C+pJDdNl+tQV5dIV9bjkOTKA4Yhw==", "collection"=>{"default_orientation"=>"ltr", "user_download"=>"
0", "alphabetize_works"=>"1", "hide_completed"=>"1", "messageboards_enabled"=>"0", "supports_document_sets"=>"1", "facets_
enabled"=>"0", "enable_spellcheck"=>"0", "voice_recognition"=>"0"}, "commit"=>"Save Changes", "id"=>"virginia-untold-commo
nwealth-causes"}
I, [2024-09-19T18:41:33.175855 #2941536] INFO -- : Completed 500 in 1334ms (ActiveRecord: 307.7ms | Allocations: 815091)
I, [2024-09-19T18:41:33.175855 #2941536] INFO -- : Completed 500 in 1334ms (ActiveRecord: 307.7ms | Allocations: 815091)
F, [2024-09-19T18:41:33.181145 #2941536] FATAL -- :
ActiveRecord::RecordInvalid (Validation failed: Name has already been taken):
app/models/collection.rb:178:in `enable_messageboards'
app/controllers/collection_controller.rb:475:in `update'
app/controllers/application_controller.rb:64:in `switch_locale'
Researching more, it turns out that there was a Thredded::MessageboardGroup
with the same title as the colleciton, probably created when someone enabled forums.
We need to make sure that either,
SusanGrey at LVA can't enable document sets. The setting isn't saved.
javascript console has this:
Failed to load resource: the server responded with a status of 422 (Unprocessable Entity) on: https://fromthepage.com/collection/update/virginia-untold-commonwealth-causes
And I found this in the log:
I'm logged in as the lva account to do this, so I don't know why authorized? would be failing, which is how I read that.
They do have an existing document set on this collection (which is also a bit weird); I'm wondering if that document set might be owned by a different user or have different authorization?