kiesraad / abacus

Abacus, software voor verkiezingsuitslagen en zetelverdeling
https://kiesraad-abacus.pages.dev
European Union Public License 1.2
8 stars 2 forks source link

Implement validation copy using unique codes #266

Closed Lionqueen94 closed 1 week ago

Lionqueen94 commented 1 month ago

Closes #136 Closes #85 Closes #86 Closes #185 Closes #150 Closes #151 Closes #186

jorisleker commented 4 weeks ago

@Lionqueen94 Ik ben ze allemaal langsgelopen. Zie hieronder. Alles met een unchecked checkbox werkte nog niet

Fouten

Waarschuwingen

praseodym commented 4 weeks ago

Most of the unchecked ones are not implemented yet because they are to be done in other issues that are part of #99.

Lionqueen94 commented 4 weeks ago

@jorisleker Thanks a lot for testing everything! Have I implemented the multiple errors/warnings at once design well also? What @praseodym says is correct, the plausibility checks in the W range still will be implemented in this epic. F.204, F.301 and F.303 should be fixed after https://github.com/kiesraad/abacus/pull/233 will be merged.

jorisleker commented 4 weeks ago

@Lionqueen94 Yes, multiple errors on 1 page is implemented according to design, however, it would be nicer to sort the errors/warnings based on their code (saw a case where F.202 was shown before F.201)

Wasn't completely sure which warnings/errors to test, so just tested all of them :-)

Lionqueen94 commented 4 weeks ago

@jorisleker F.201-F.203 should be in order now, and these should have been the only ones that potentially were out of order. Please let me know if there are any other issues with ordering if you see them.

Lionqueen94 commented 3 weeks ago

@jorisleker I have added the remaining plausibility checks, you can test W.206-208 on stembureau 34, which now has 50 kiesgerechtigden in the database.

jorisleker commented 3 weeks ago

@Lionqueen94, tested the rules you added:

jschuurk-kr commented 3 weeks ago

@Lionqueen94 Can you update the d2d tests for displaying an error / a warning on the Voters and Votes page to be a more specific now that we have the design fully implemented?

We might also want to add some more d2d tests for errors/warnings, but that makes more sense to do in #233, so we can take navigation etc into account.

jorisleker commented 3 weeks ago

We might also want to add some more d2d tests for errors/warnings, but that makes more sense to do in #233, so we can take navigation etc into account.

Let's not add more work to #233. After 233 has been merged, it makes sense to add these tests here.

jschuurk-kr commented 3 weeks ago

We might also want to add some more d2d tests for errors/warnings, but that makes more sense to do in #233, so we can take navigation etc into account.

Let's not add more work to #233. After 233 has been merged, it makes sense to add these tests here.

233 should contain the tests that cover the changes of #233, but agreed that anything more should get a separate issue.

Lionqueen94 commented 3 weeks ago

@jorisleker Can you review again and check the issues that are now fixed in your previous comments? The errors/warnings showing too early should be fixed once Les' PR is merged, but I'll test it then to confirm.

jorisleker commented 3 weeks ago

Re-tested

New issue:

Lionqueen94 commented 3 weeks ago

New issue:

* [ ]  W.206 is always shown, no matter which numbers I enter. Can't get it to go away. It is shown immediately when I load `/numbers` for a polling station with number of kiesgerechtigden filled in. It is not shown if number of kiesgerechtigden is not filled in. Fields D and/or H are only hightlighted when they are actually higher then the number of kiesgerechtigden

This is fixed in 106b7bc6f1a4ab707162fae7e43b49603e870a4d

praseodym commented 2 weeks ago

I removed 164e034 from this PR because it was already merged as part of #281. @Lionqueen94 please make sure not to include that commit when you update this branch.

praseodym commented 1 week ago

Resolved merge conflict.