TkTech / ckanext-cloudstorage

Implements support for resource storage against multiple popular providers via apache-libcloud (S3, Azure Storage, etc...)
MIT License
35 stars 56 forks source link

Fix for dataset state after creating resource #21

Closed Engerrs closed 7 years ago

Engerrs commented 7 years ago

When we create upload and create new resource at second step after creating dataset, datasets state is not changed to active one.

Reproduce: 1.Click on add new dataset.

  1. Complete the form and click on Next stage.
  2. Click on Upload and select a file.
  3. Complete the form and click Finish.
  4. Dataset will appear as draft.

To fix this, I've added new property in data_dict(save_action, similar to save_action in package.py), so finish logic will work as it was designed.

TkTech commented 7 years ago

Thank you @Engerrs!