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

Search by term: extend to entries url #2832

Merged
merged 1 commit into from Feb 19, 2017
Merged

Search by term: extend to entries url #2832

merged 1 commit into from Feb 19, 2017

Conversation

Kdecherf
Copy link
Member

@Kdecherf Kdecherf commented Feb 2, 2017

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? idk
Documentation no
Translation no
Fixed tickets -
License MIT

This PR extends search to entries url to provide an alternative way to domain filtering.

Copy link
Member

@j0k3r j0k3r left a comment

Choose a reason for hiding this comment

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

This is a good idea


$form = $crawler->filter('form[name=search]')->form();
$data = [
'search_entry[term]' => 'domain', // a string not available in the database
Copy link
Member

Choose a reason for hiding this comment

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

You might change the comment and maybe use a real domain name instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I will update the comment to say that the filtering is not limited to domains but is applied to the whole url.

For the value used for the test, I took the value from testFilterOnDomainName.

@j0k3r j0k3r added this to the 2.2.2 milestone Feb 3, 2017
@Kdecherf
Copy link
Member Author

Kdecherf commented Feb 4, 2017

The current change is expected to fail with PostgreSQL. It will help confirm if there is case sensitivity issue on the search part.

@Kdecherf Kdecherf changed the title Search by term: extend to entries url WIP: Search by term: extend to entries url Feb 5, 2017
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
@Kdecherf
Copy link
Member Author

Ready for review

@Kdecherf Kdecherf changed the title WIP: Search by term: extend to entries url Search by term: extend to entries url Feb 16, 2017
@j0k3r
Copy link
Member

j0k3r commented Feb 19, 2017

Great!

@j0k3r j0k3r merged commit bba94d7 into wallabag:master Feb 19, 2017
@Kdecherf Kdecherf deleted the search-domain branch November 19, 2017 13:46
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

4 participants