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

[#1764] Reorder the creation of the SOLR cache of the validated package_... #1765

Merged
merged 7 commits into from
Jun 30, 2014

Conversation

davidread
Copy link
Contributor

...dict so that it does not include the unvalidated package_dict.

This relates to:
https://github.com/ckan/ckan/pull/1078/files
by @wardi

…ge_dict so that it does not include the unvalidated package_dict.
@wardi
Copy link
Contributor

wardi commented Jun 13, 2014

@davidread this looks clearly correct, but could we have a regression test to make sure this stays fixed?

@davidread
Copy link
Contributor Author

I guess the reason you didn't write tests for this feature is because it is switched on with config ckan.cache_validated_datasets, you can't change config during tests, and it's probably better to do all tests with it off rather than on.

@wardi
Copy link
Contributor

wardi commented Jun 23, 2014

When #1664 gets merged there will be a way to change config in tests: https://github.com/ckan/ckan/pull/1664/files#diff-5a91024560ddfe8fe0acb0d0ee83f738R144 (cherry picked commit from @vitorbaptista )

@wardi
Copy link
Contributor

wardi commented Jun 23, 2014

Oh, that doesn't matter in this case, though -- this config setting defaults to True.

The reason I didn't write tests for this feature is probably just because I'm a terrible developer. Or maybe because the person reviewing my PR didn't insist on it.

@davidread
Copy link
Contributor Author

ah great, will have a stab - can't be too difficult for this one-liner...

@davidread
Copy link
Contributor Author

Hopefully these tests suit

@davidread
Copy link
Contributor Author

travis is ok now, so ready to review test

David Read and others added 2 commits June 30, 2014 17:20
Conflicts:
	ckan/new_tests/helpers.py
@wardi wardi merged commit cdf8dfd into master Jun 30, 2014
@davidread davidread deleted the 1764-solr-rubbish branch July 1, 2014 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants