-
- Downloads
There was an error fetching the commit references. Please try again later.
Persist tmp snippet uploads
It persist temporary personal snippets under user/:id namespaces temporarily while creating a upload record to track it. If an user gets removed while it's still a tmp upload, it also gets removed. If the tmp upload is sent, the upload gets moved to personal_snippets/:id as before. The upload record also gets updated to the new model type as well.
Showing
- app/controllers/snippets_controller.rb 1 addition, 1 deletionapp/controllers/snippets_controller.rb
- app/controllers/uploads_controller.rb 16 additions, 3 deletionsapp/controllers/uploads_controller.rb
- app/helpers/snippets_helper.rb 10 additions, 0 deletionsapp/helpers/snippets_helper.rb
- app/uploaders/file_mover.rb 17 additions, 10 deletionsapp/uploaders/file_mover.rb
- app/views/layouts/snippets.html.haml 3 additions, 2 deletionsapp/views/layouts/snippets.html.haml
- changelogs/unreleased/osw-persist-tmp-snippet-uploads.yml 5 additions, 0 deletionschangelogs/unreleased/osw-persist-tmp-snippet-uploads.yml
- config/routes/uploads.rb 2 additions, 2 deletionsconfig/routes/uploads.rb
- spec/controllers/snippets_controller_spec.rb 2 additions, 2 deletionsspec/controllers/snippets_controller_spec.rb
- spec/controllers/uploads_controller_spec.rb 108 additions, 69 deletionsspec/controllers/uploads_controller_spec.rb
- spec/features/snippets/user_creates_snippet_spec.rb 1 addition, 1 deletionspec/features/snippets/user_creates_snippet_spec.rb
- spec/routing/uploads_routing_spec.rb 31 additions, 0 deletionsspec/routing/uploads_routing_spec.rb
- spec/uploaders/file_mover_spec.rb 26 additions, 12 deletionsspec/uploaders/file_mover_spec.rb
spec/routing/uploads_routing_spec.rb
0 → 100644
Please register or sign in to comment