Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make datastore search whitelist case insensitive#5969

Merged
amercader merged 2 commits into
ckan:masterfrom
qld-gov-au:make-datastore-search-whitelist-case-insensitive
Mar 24, 2021
Merged

Make datastore search whitelist case insensitive#5969
amercader merged 2 commits into
ckan:masterfrom
qld-gov-au:make-datastore-search-whitelist-case-insensitive

Conversation

@ThrawnCA
Copy link
Copy Markdown
Contributor

@ThrawnCA ThrawnCA commented Mar 18, 2021

Proposed fixes:

Make the datastore search SQL function whitelist case-insensitive, since PostgreSQL function calls are typically case-insensitive.

If case-sensitivity is desired, it can be achieved by enclosing a whitelist entry in "double quotes".

Features:

  • includes tests covering changes
  • includes bug fix for possible backport

@ThrawnCA
Copy link
Copy Markdown
Contributor Author

I took the liberty of making the test module pass Flake8 checks while I was at it.

@amercader amercader self-assigned this Mar 18, 2021
@amercader
Copy link
Copy Markdown
Member

@ThrawnCA many thanks for this. We don't merge new branches to old release ones, all pull requests should target master. Do you mind resubmitting it?

Comment thread ckanext/datastore/backend/postgres.py Outdated
@ThrawnCA ThrawnCA changed the base branch from 2.8 to master March 24, 2021 05:39
@ThrawnCA ThrawnCA closed this Mar 24, 2021
@ThrawnCA ThrawnCA force-pushed the make-datastore-search-whitelist-case-insensitive branch from df240dc to 08a8c31 Compare March 24, 2021 05:42
@ThrawnCA ThrawnCA reopened this Mar 24, 2021
@ThrawnCA
Copy link
Copy Markdown
Contributor Author

@ThrawnCA many thanks for this. We don't merge new branches to old release ones, all pull requests should target master. Do you mind resubmitting it?

Done. I've added a checklist entry for possible backporting.

@amercader
Copy link
Copy Markdown
Member

Thanks @ThrawnCA

@ThrawnCA ThrawnCA deleted the make-datastore-search-whitelist-case-insensitive branch April 16, 2021 07:05
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.

2 participants