Closed JazzarKarim closed 1 year ago
I thought all the tests passed previously?
I wouldn't approve all these changes on a Friday afternoon, but you're in tomorrow, right? :)
Sev, 99% of the changes here are from npm build storybook. The actual changes are at the end (only a handful).
PS It would be nice to separate the SB files from the other changes. 179 is a large number to review (even if I skip over most of them).
Actually, Travis noted recently that we should not commit the SB files, and the CI job should re-create them. We need to bug @pwei1018 to help us with this :)
I thought all the tests passed previously?
Yup, they do. I re-ran the job, all is green now.
PS It would be nice to separate the SB files from the other changes. 179 is a large number to review (even if I skip over most of them).
Actually, Travis noted recently that we should not commit the SB files, and the CI job should re-create them. We need to bug @pwei1018 to help us with this :)
Oh shoot. Shall I fix that? I'll only commit my changes?
@severinbeauvais Should be much much cleaner now. No more committed SB files.
PS It would be nice to separate the SB files from the other changes. 179 is a large number to review (even if I skip over most of them).
Actually, Travis noted recently that we should not commit the SB files, and the CI job should re-create them. We need to bug @pwei1018 to help us with this :)
Oh shoot. Shall I fix that? I'll only commit my changes?
We haven't implemented the auto-Storybook-build yet. See 17345.
For now, please commit the SB files.
I'm playing with this locally. It appears that validations are not working. I'm seeing this in the console.log when I make the address editable in SB for CompletingParty:
I tried adding "vuelidate-property-decorators" as a dependency for CompletingParty but that doesn't seem to help.
I tried adding "vuelidate-property-decorators" as a dependency for CompletingParty but that doesn't seem to help.
^^ This may or may not be needed but that's not the issue here.
The issue is with the way that validations are working. Previously, in the validation-mixin, this.$v[prop][key].$params.maxLength
had a prop max
with a value, but at the moment maxLength=null.
I tried adding "vuelidate-property-decorators" as a dependency for CompletingParty but that doesn't seem to help.
^^ This may or may not be needed but that's not the issue here.
The issue is with the way that validations are working. Previously, in the validation-mixin,
this.$v[prop][key].$params.maxLength
had a propmax
with a value, but at the moment maxLength=null.
Sev, I just noticed that this issue has been present even before this PR. I went to the SB in the main repo (without my changes), and I can also see this error.
I was also having this issue in my Vite PR. I fixed it by playing with the vuelidate version. I'll check how things are going in here.
The issue is with the way that validations are working. Previously, in the validation-mixin,
this.$v[prop][key].$params.maxLength
had a propmax
with a value, but at the moment maxLength=null.
We don't see this error in SB BaseAddress because no schema is declared.
With a schema:
^^ This may or may not be needed but that's not the issue here.
The issue is with the way that validations are working. Previously, in the validation-mixin,
this.$v[prop][key].$params.maxLength
had a propmax
with a value, but at the moment maxLength=null.
Please try now Sev. Should be fine. The key is downgrade Vuelidate (https://github.com/bcgov/business-create-ui/pull/556/files#r1281230913).
Please try now Sev. Should be fine.
Indeed, now it works!
Can you please add an address schema to BaseAddress? You can prob use the same one as in the CompletingParty story.
And then we'll be good to merge this!
lerna notice
Successfully published:
- @bcrs-shared-components/base-address@2.0.3
- @bcrs-shared-components/completing-party@2.1.30
lerna success published 2 packages
lerna notice Successfully published: - @bcrs-shared-components/base-address@2.0.3 - @bcrs-shared-components/completing-party@2.1.30 lerna success published 2 packages
Thanks Sev!
Issue #: /bcgov/entity#17118
Description of changes:
vue-plugin-helper-decorator
tovuelidate-property-decorators
. The former is a very outdated and old package. I've tested and the way we're using the decorator works the exact same way with both.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the business-filings-ui license (Apache 2.0).