formz icon indicating copy to clipboard operation
formz copied to clipboard

async validation support

Open jopmiddelkamp opened this issue 3 years ago โ€ข 3 comments

Description

I've added code to support async form validations.

Type of Change

  • [x] โœจ New feature (non-breaking change which adds functionality)
  • [ ] ๐Ÿ› ๏ธ Bug fix (non-breaking change which fixes an issue)
  • [ ] โŒ Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] ๐Ÿงน Code refactor
  • [ ] โœ… Build configuration change
  • [x] ๐Ÿ“ Documentation
  • [ ] ๐Ÿ—‘๏ธ Chore

jopmiddelkamp avatar Aug 25 '22 21:08 jopmiddelkamp

@felangel @jorgecoca could one of you take a look at this PR?

jopmiddelkamp avatar Aug 30 '22 19:08 jopmiddelkamp

@felangel @jorgecoca

jopmiddelkamp avatar Oct 06 '22 11:10 jopmiddelkamp

@felangel @jorgecoca

Sorry for the delay! Iโ€™ll have a look shortly ๐Ÿ‘

felangel avatar Oct 06 '22 13:10 felangel

@felangel @jorgecoca @renancaraujo @wolfenrain

Sorry for the delay! Iโ€™ll have a look shortly ๐Ÿ‘

Friendly reminder :)

jopmiddelkamp avatar Oct 27 '22 21:10 jopmiddelkamp

Another friendly reminder :) @felangel @jorgecoca @renancaraujo @wolfenrain

Would really appreciate it if one of you guys could free up some time to look at this PR and let me know if you agree or reject the change. Then I can focus again on getting the ugly temporary package out of my project..

jopmiddelkamp avatar Nov 10 '22 19:11 jopmiddelkamp

Hi @jopmiddelkamp, sorry for the delay we will try to get to it this week!

For now i'll at least run the workflows to validate if it also succeeds :D

wolfenrain avatar Nov 15 '22 17:11 wolfenrain

Hi @jopmiddelkamp, sorry for the delay we will try to get to it this week!

For now i'll at least run the workflows to validate if it also succeeds :D

Thanks/bedankt @wolferain!

jopmiddelkamp avatar Nov 16 '22 13:11 jopmiddelkamp

Hello @jopmiddelkamp, Thanks for all that effort, and forgive us for the huge delay in responding ๐Ÿ™๐Ÿฝ.

After looking into the code and having a conversation with the team, we decided that async validation has use cases that may need a more careful look into. So we won't merge this. Also, I left some more comments below with feedback on some points we noticed with your approach.

Thanks again for your contribution!

renancaraujo avatar Nov 30 '22 14:11 renancaraujo

@renancaraujo could this PR be taken as a base for a new one? Or better raise a new PR having this proposal in mind?

gugadev avatar Apr 16 '23 15:04 gugadev

@gugadev yeah, this is still on our backlog of things to do. The specifics of this pr (including the things exposed by comments) for sure will be base for the implementation.

renancaraujo avatar Apr 18 '23 15:04 renancaraujo

@renancaraujo I have made this one https://github.com/VeryGoodOpenSource/formz/pull/93 as a initial setup to bring back to discussion if using FutureOr as mentioned by https://github.com/VeryGoodOpenSource/formz/issues/15#issuecomment-1134691056 is a good idea. I would appreciate more thoughts on how we can do the async validation. If we want to have FutureOr at the FormzInput abstract class we would force who is just using sync validators to use the await keyword as you can see at my initial PR.

gabrielchaves7 avatar Jun 09 '23 01:06 gabrielchaves7