Add promise support on filters #648
Open
gabskoro wants to merge 1 commits from
infinum/feature/filters-as-promise into development
pull from: infinum/feature/filters-as-promise
merge into: :development
:development
:rqx110/patch-1
:fix-publish-npm
:dependabot/npm_and_yarn/minimatch-3.0.5
:dependabot/npm_and_yarn/decode-uri-component-0.2.2
:dependabot/npm_and_yarn/loader-utils-and-loader-utils-and-angular-devkit/build-angular-and-nrwl/angular-3.2.1
:dependabot/npm_and_yarn/loader-utils-and-loader-utils-and-nrwl/angular-3.2.0
:dependabot/npm_and_yarn/marked-and-markdown-loader-4.1.0
:xCall/development
:yauhenkashko/fail-filter-index
:animalus/allow-params-null
:cagdasoezguer/queuesizelimit
:vmachavolu/development
:gh-pages
:duykhang53/development
:rahil471/development
:gkfirst8/development
:Marc-Hansen/development
:PauloPeres/development
:koenvanderlinden/queuesizelimit
:koenvanderlinden/democodepatch
:koenvanderlinden/add-dwf
:koenvanderlinden/multiupload-singlepost
:mattmcsparran/patch-2
:infinum/feature/filters-as-promise
:ravinderpayal/development
:master
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Sometimes you need to do something more in your filter function (will send you another PR for that) and because of that, it would be better to have the isValid method wrapped in a Promise.
There si one catch, cause of the variable
this._failFilterIndexwe need to resolve each time, so for the users who will use promises they always need to resolve, either with true or false.Codecov Report
39.7% <27.27%> (+14.51%)27.27% <0%> (+5.05%)57.14% <0%> (+14.28%)47.36% <0%> (+15.78%)53.84% <0%> (+30.76%)95.45% <0%> (+40.9%)87.03% <0%> (+49.3%)Continue to review full report at Codecov.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.