Custom Query (2152 matches)
Results (1465 - 1467 of 2152)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#2602 | fixed | Users can set a dataset's organization to None, and then they cannot edit it | seanh | |
Description |
With the organizations and organizations_dataset plugins enabled login and create a new dataset, adding it to a group that you are a member of. Edit the dataset and set the group to none. Now you can no longer edit your own dataset. (You can also specify None for the organization when first creating the dataset, same problem.) |
|||
#2604 | fixed | Add Requests as requirement for tests | amercader | amercader |
Description |
Requests (http://python-requests.org) is really useful to deal with http requests and saves a lot of time. I propose we include it as a requirement for the tests for the time being, and even for core if necessary at a later stage. |
|||
#2605 | fixed | Problem with user.get_groups | ross | ross |
Description |
From DR at DGU Basically get_groups() appears to cache its results, but this falls down when subsequent calls are in a different session. We get this when saving a dataset. get_groups() first gets called in the controller when it is trying to work out what permissions the user has. It later gets called, and by this time c.userobj is detached, so get_groups() fails. I'm working around this by refreshing c.userobj (from c.user) before calling get_groups(), but I wonder if the get_groups caching could detect the detached session and bypass the cache in this case? diff at https://gist.github.com/3003117 |