zend-inputfilter icon indicating copy to clipboard operation
zend-inputfilter copied to clipboard

Roadmap for V3 and V4

Open Maks3w opened this issue 10 years ago • 9 comments

Proposal of roadmap for next major versions.

V3: V3 should silently fail if any deprecation feature is used. i.e. No file/method removal/rename is allowed.

  • [x] Deprecate Continue If Empty & AllowEmpty
  • [ ] Silently ignore continue_if_empty / allow_empty options
  • [x] Let Input validate unknown value (not-set) or know value.
  • [x] Leverage InputFilter from apply complex rules for to determinate if input is valid/invalid
  • [x] Add a resetX method for clear the class state

V4: V4 does not (currently) restrict any bc break type.

  • [ ] Remove deprecated features
  • [ ] Fix class inheritance (subclasses must follow the api contract set by the parent) Affected: CollectionInputFilter, ArrayInput and FileInput
  • [ ] Make classes stateless
  • [ ] Adapted for zend-validator v3

Maks3w avatar Aug 24 '15 21:08 Maks3w

Hi,

We shoudl also have a look at the refactor I did: https://github.com/zendframework/zend-inputfilter/issues/13

It simplified A LOT of things regarding to continue/allow_empty, stateless, refactored collection input filter... and a lot of other things. I did that a lot of time ago so I don't exactly remember, but this refactor mostly answered to most of the problems you are referring to :).

I will start working again on this, but first we'll need to have the stateless zend-validator and zend-filter.

bakura10 avatar Aug 25 '15 07:08 bakura10

What is the status for the stateless input filters?

RalfEggert avatar Jan 07 '16 20:01 RalfEggert

@RalfEggert Still in planning stages, though @bakura10 has done significant work on a fork he's maintaining. (I've asked him to document usage so I can actually evaluate the changes and the migration/usage impact.)

weierophinney avatar Jan 07 '16 20:01 weierophinney

Stateless input filter can only be done once we have stateless validators :).

bakura10 avatar Jan 07 '16 20:01 bakura10

What do You think of renaming this component to something more accurate? I dont know, maybe inputparser? Inputfilter name is very confusing. What it does is filtration and validation. For someone who does not know Zend libraries it is hard to find the difference between filter and inputfilter.

xorock avatar Jun 08 '16 07:06 xorock

@bakura10 @weierophinney What is the status of this? Is it being abandoned in favor of the eventually up-coming zend-datavalidator in the future?

thexpand avatar Aug 13 '18 08:08 thexpand

@thexpand

Is it being abandoned in favor of the eventually up-coming zend-datavalidator in the future?

Please keep in mind that the input-filter is doing something more than validation for values. The zend-datavalidator will replace zend-validator and not zend-inputfilter.

froschdesign avatar Aug 13 '18 08:08 froschdesign

That's actually still to be determined. There's a fair amount of cross over in how validators and inputs report errors, and my current work has been around adding the input/data set functionality to the new component.

On Mon, Aug 13, 2018, 3:39 AM Frank Brückner [email protected] wrote:

@thexpand https://github.com/thexpand

Is it being abandoned in favor of the eventually up-coming zend-datavalidator in the future?

Please keep in mind that the input-filter is doing something more than validation for values. The zend-datavalidator https://github.com/weierophinney/zend-datavalidator will replace zend-validator and not zend-inputfilter.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zendframework/zend-inputfilter/issues/39#issuecomment-412447700, or mute the thread https://github.com/notifications/unsubscribe-auth/AABlV7_eltEVvx0oTyH-eRa0wXVewqOKks5uQTs_gaJpZM4FxUDt .

weierophinney avatar Aug 13 '18 11:08 weierophinney

This repository has been closed and moved to laminas/laminas-inputfilter; a new issue has been opened at https://github.com/laminas/laminas-inputfilter/issues/11.

weierophinney avatar Dec 31 '19 21:12 weierophinney