Yoast / javascript

Monorepo for all the JavaScript within Yoast
131 stars 54 forks source link

P2 807 variation picker validation #1142

Closed increddibelly closed 3 years ago

increddibelly commented 3 years ago

Summary

This PR can be summarized in the following changelog entry:

Relevant technical choices:

Test instructions

Test this PR together with this MonoRepo PR This PR can be tested by following these steps:

overview

we'll fix these issues one by one and verify that the validation picks up the new changes.

detail

Impact check

UI changes

Quality assurance

Fixes #

andizer commented 3 years ago

It seems that the fix which is merged in #1124 is broken by this pull. The code from that pull is present, which gives me that the develop branch has been merged correctly.

When I fill in the title, description and location the job keeps saying that the required blocks aren't filled in. Edit_Post_‹_Basic_—_WordPress

When I fill in all blocks with a random value, thus also the recommended blocks I get this: Edit_Post_‹_Basic_—_WordPress

andizer commented 3 years ago

I also wanted to mention that the fix itself seems to work. You only have to fill in all the other fields. When leaving a block to the variation selector I will the job posting as invalid. When selecting a variation the bullet will become green when a value is present.

So I think the regression from #1124 needs to be fixed before merging this PR.

johannadevos commented 3 years ago

@increddibelly @hansjovis I have a couple of remarks (this is not a complete review):

johannadevos commented 3 years ago

CR:

I also did a smoke acceptance test while reviewing, and found the following:

hansjovis commented 3 years ago

@increddibelly Code looks good to me.

Did you have a chance to look into this comment by Johanna?

Your PR summary doesn't reflect the code changes very well. Please write a summary that covers the most important changes in the code. You can use multiple bullet points if you like, they would all end up in the changelog.

I see that you updated the test instructions but did not touch the changelog items.

I tend to agree with Johanna's comment. With the added refactoring the PR adds more than validation logic to the variation picker and I think the changelog items should reflect that.

hansjovis commented 3 years ago

Acceptance test: 🚫

Screenshot 2021-04-13 at 15 44 29
hansjovis commented 3 years ago

Acceptance test: ✅

There is still an issue, but we decided to split it off to P2-855.