Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset sharing API is broken #809

Closed
flekschas opened this issue Dec 8, 2015 · 2 comments
Closed

Dataset sharing API is broken #809

flekschas opened this issue Dec 8, 2015 · 2 comments
Assignees
Milestone

Comments

@flekschas
Copy link
Member

The sharing on the dataset preview doesn't work anymore.

When accessing the sharing API for datasets:

http://192.168.50.50:8000/api/v1/data_sets/<UUID>/sharing/?format=json

Django is throwing the following error:

{"error_message": "'list' object has no attribute 'model'", "traceback": "Traceback (most recent call last):\n\n  File \"/home/vagrant/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/tastypie/resources.py\", line 202, in wrapper\n    response = callback(request, *args, **kwargs)\n\n  File \"/vagrant/refinery/core/api.py\", line 295, in res_sharing\n    return self.process_get(request, res, **kwargs)\n\n  File \"/vagrant/refinery/core/api.py\", line 217, in process_get\n    mod_res_list = self.transform_res_list(user, [res], request, **kwargs)\n\n  File \"/vagrant/refinery/core/api.py\", line 139, in transform_res_list\n    res_list_unique = res_list.model.__name__\n\nAttributeError: 'list' object has no attribute 'model'\n"}
@flekschas flekschas added this to the Next milestone Dec 8, 2015
@flekschas
Copy link
Member Author

The issue seems to be related to https://github.com/parklab/refinery-platform/blob/develop/refinery/core/api.py#L139.

It looks like this line is related to caching. @scottx611x could you have a look?

@ngehlenborg ngehlenborg modified the milestones: Next, Lakeville Dec 8, 2015
@scottx611x
Copy link
Member

Data import UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants