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
Deprecated fix for 1.8 #84
Conversation
Note: I've had to cherry pick this into the demo theme branch as the facets were dead |
I'm really sorry this was broken and you had to spend time debugging it. :-( This latest commit fixes up the old function. The problem was that there was more than one instance of the StackedObjectProxy class hanging around; hence calling This caused the bug you found because the global object, I've checked the tests pass; and I've checked your bug (visit /dateset ; hit refresh). If you're happy, I'll merge this into master. |
This reverts commit 3ae477b. thread unsafe
I don't know what's happened with github notifications but I hadn't seen any of this discussion up til now :-( (Github asked me validate by email address yeterday, so maybe related). So sorry if I've seemed tardy over this, but I haven't read this til now. I really don't understand what the issue with the original (fixed) code is:
I personally think the original code is cleaner, more concise and as far as I can see correct. I'm willing to be proved wrong. On balance, I don't like the use of the private function, Maybe it's the "effects of this living on after the request is over" that you don't like, in which case, I think your solution is what's required. However, it has a race-condition:
Consider the following interleaving:
And depending upon whether the
|
Deprecated fix for 1.8, merged.
…olumn-types Qol 6127 add paster task to migrate existing data types to Data Dictionary ckan#84
The deprecated feature was broken and not returning the correct values the first commit fixes that but would not work when methods like .get() where called
The second commit allows these methods to work as well as returning the object itself when needed
The code is quite horrible but hopefully make enough sense
This bug caused the search facets to become unstable and disappear after the first time they where used to see this in action run release-v1.8 branch goto /dataset see the facets then refresh the page - they disapear