Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SearchFilter with unaccent#7733

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
gdvalderrama wants to merge2 commits intoencode:masterfromgdvalderrama:feature/search-filter-unaccent
Closed

SearchFilter with unaccent#7733

gdvalderrama wants to merge2 commits intoencode:masterfromgdvalderrama:feature/search-filter-unaccent

Conversation

gdvalderrama
Copy link

Description

Implements#7727

New restriction for SearchFilter:& Accent-insensitive search.

As this is only supported by Django'sPostgreSQL backend.), no test was added (same case as the Full-text search restriction).

This uses the__unaccent lookup, allowing for accent-insensitive searches.

josewitei, victorwitei, luisgomez29, diniguezcabrera, kmahelona, carloswitei, alvarovmz, and MehdiDRISSIB reacted with thumbs up emojialvarovmz reacted with rocket emoji
@Sharpek
Copy link

Hello, what about this PR ? It's look good

Copy link
Member

@auvipyauvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

can you also add a small unit test for this change?

@gdvalderrama
Copy link
Author

can you also add a small unit test for this change?

As I explain in the PR description:

As this is only supported by Django's PostgreSQL backend, no test was added (same case as the Full-text search restriction).

I've followed what was done in the Full-text search, which is basically that there is no test.

Adding test for this would involve spinning up a PostgreSQL in order to do so, and it feels outside the scope of the intended change.

tomchristie and alvarovmz reacted with thumbs up emojialvarovmz reacted with rocket emoji

@stale
Copy link

stalebot commentedApr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

gdvalderrama reacted with confused emoji

@stalestalebot added the stale labelApr 17, 2022
@gdvalderrama
Copy link
Author

@auvipy could you take another look at this?

@auvipy
Copy link
Member

it should be mr.@tomchristie

gdvalderrama reacted with thumbs up emoji

@alixleger
Copy link

Hello, what about this PR ?

gdvalderrama reacted with eyes emoji

@stalestalebot removed the stale labelSep 21, 2022
@stale
Copy link

stalebot commentedNov 23, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

gdvalderrama reacted with confused emoji

@stalestalebot added the stale labelNov 23, 2022
@gdvalderrama
Copy link
Author

Hey@tomchristie , do you think you could take a look at this PR?

@auvipy
Copy link
Member

I will also have a look

gdvalderrama reacted with hooray emoji

@stalestalebot removed the stale labelNov 23, 2022
@@ -45,6 +45,7 @@ class SearchFilter(BaseFilterBackend):
'=': 'iexact',
'@': 'search',
'$': 'iregex',
'&': 'unaccent',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

can you please add relevant test for this search feature? or they are already covered?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@auvipy hey! echoing a bit whatI mentioned last year:
This feature is only for Django's PostgreSQL backend, which does not include tests in this repo.
Adding tests could be more complex than the scope of this PR, I think it's a perfectly valid issue to open, but would not block this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@auvipyauvipy closed thisNov 23, 2022
@auvipy
Copy link
Member

I tried to trigger new CI but it seems the repository from which the PR was originated has been removed! so can not re open it! might do it myself in another PR

gdvalderrama reacted with thumbs up emoji

auvipy added a commit that referenced this pull requestNov 23, 2022
@auvipyauvipy mentioned this pull requestNov 23, 2022
BestFriend1106 added a commit to BestFriend1106/django-rest-framework that referenced this pull requestJun 11, 2023
mgaligniana added a commit to mgaligniana/django-rest-framework that referenced this pull requestApr 15, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@auvipyauvipyauvipy requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@gdvalderrama@Sharpek@auvipy@alixleger

[8]ページ先頭

©2009-2025 Movatter.jp