Skip to content

Implement regex filtering#2515

Merged
weiznich merged 20 commits intodiesel-rs:masterfrom
TaKO8Ki:filter-regex
Sep 29, 2020
Merged

Implement regex filtering#2515
weiznich merged 20 commits intodiesel-rs:masterfrom
TaKO8Ki:filter-regex

Conversation

@TaKO8Ki
Copy link
Member

@TaKO8Ki TaKO8Ki commented Sep 24, 2020

Since #1914 is not completed and has conflicts, I've taken over it.
closes #1911, closes #1914

@TaKO8Ki TaKO8Ki requested a review from a team September 24, 2020 09:33
@TaKO8Ki TaKO8Ki requested a review from weiznich September 24, 2020 14:59
@TaKO8Ki TaKO8Ki force-pushed the filter-regex branch 2 times, most recently from 1939ee2 to 448661b Compare September 25, 2020 15:15
@TaKO8Ki TaKO8Ki requested a review from a team September 26, 2020 03:52
Copy link
Member

@weiznich weiznich left a comment

Choose a reason for hiding this comment

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

Please remove whitelist/blacklist completely from diesel-cli. It has been deprecated since 1.3, so diesel_cli 2.0 does not need to support it anymore.

.collect::<Result<_, _>>()
.map_err(|e| format!("invalid argument for table filtering regex: {}", e));

if matches.is_present("whitelist") {
Copy link
Member

Choose a reason for hiding this comment

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

As already written: whiteliste/blacklist has been deprecated since version 1.3.0 we should completely remove them from the CLI.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, I misunderstood. I'm going to remove these flags.

@TaKO8Ki
Copy link
Member Author

TaKO8Ki commented Sep 28, 2020

@weiznich
I'm ready for your reveiw!

@TaKO8Ki TaKO8Ki requested a review from weiznich September 28, 2020 15:22
@weiznich weiznich merged commit d7ce43d into diesel-rs:master Sep 29, 2020
@TaKO8Ki TaKO8Ki deleted the filter-regex branch September 29, 2020 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature request][CLI] allow filtering to take glob or regexp

3 participants