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

Move Ignore Origin rules to database #4026

Merged
merged 8 commits into from Apr 26, 2020
Merged

Move Ignore Origin rules to database #4026

merged 8 commits into from Apr 26, 2020

Conversation

Kdecherf
Copy link
Member

@Kdecherf Kdecherf commented Jun 23, 2019

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Documentation yes
Translation yes
CHANGELOG.md no
License MIT

Fixes #3760

@Kdecherf Kdecherf added this to the 2.4.0 milestone Jun 23, 2019
@tcitworld
Copy link
Member

Why the need for RuleInterface? What do tagging rules and these origin rules have in common ?

@Kdecherf
Copy link
Member Author

@tcitworld they have Config and Id getters and setters in common. Making an interface for these two entities makes me reuse ConfigController:validateRuleAction()

@Kdecherf
Copy link
Member Author

This PR is finally ready for review, enjoy @wallabag/core

@Kdecherf Kdecherf force-pushed the 3760-ignorelist-db branch 2 times, most recently from 361a189 to 125ec65 Compare April 15, 2020 20:44
j0k3r
j0k3r previously approved these changes Apr 16, 2020
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.

Looks ok to me 👍

@nicosomb
Copy link
Member

I will try the feature before merging it, ok?

@Kdecherf
Copy link
Member Author

@nicosomb yeah sure, go on

@j0k3r
Copy link
Member

j0k3r commented Apr 20, 2020

@nicosomb did you test it?

@nicosomb
Copy link
Member

Yes. As I said on gitter, I think that explanations are not so clear but I don't see how we can improve them.

nicosomb
nicosomb previously approved these changes Apr 24, 2020
Add IgnoreOriginUserRule for user-defined rules and
IgnoreOriginInstanceRule for system-wide rules. Add an interface for
these two new entities.

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commits adds a new helper like RuleBasedTagger for processing
ignore origin rules. It also adds a new custom RulerZ operator for the
'~' pattern matching rule.

Renames 'pattern' with '_all' in IgnoreOriginRule entity.

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Excluding this group can decrease the run time of tests during
development.

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
@Kdecherf Kdecherf merged commit 0e8a0f7 into master Apr 26, 2020
@Kdecherf Kdecherf deleted the 3760-ignorelist-db branch April 26, 2020 13:39
@j0k3r j0k3r mentioned this pull request Oct 25, 2020
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.

Move ignore list for origin url in the database
4 participants