-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#2863] When retrieving eHerkenning-cases, filter on either vestigingsnummer or rsin/kvk, but not both #1488
[#2863] When retrieving eHerkenning-cases, filter on either vestigingsnummer or rsin/kvk, but not both #1488
Conversation
67e7e1c
to
eab2d78
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1488 +/- ##
========================================
Coverage 94.29% 94.29%
========================================
Files 1066 1066
Lines 40141 40185 +44
========================================
+ Hits 37849 37894 +45
+ Misses 2292 2291 -1 ☔ View full report in Codecov by Sentry. |
Waiting until I can conform this works as expected |
Confirmed to be working for Venray, to be double-checked by both @pi-sigma and @swrichards |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. The vestigingsnummer
is validated in the CompanyBranchChoiceForm
to correspond to one of the branches retrieved from the KVK API. The logic for retrieval/validation of vestigingsnummer
will have to be adapted when when we support eHerkenning login scoped to a vestigingsnummer
.
Converting to a draft PR, as when clicking through the user gets a 403 |
b2b571c
to
5b268e3
Compare
@pi-sigma FYI my first approach was too simplistic, in that retrieval using vestigingnummer is also done within the openzaak app. A few tests still fail but I'm not sure if this is due to having to update the mocks or that my approach is incorrect. |
5b268e3
to
5e69cac
Compare
5e69cac
to
db46c84
Compare
@alextreme The test for retrieving cases with |
@swrichards FYI, and I'm starting to agree with Paul's opinion that subtests are making debugging failing tests quite a bit more complicated (in this case it was anything but obvious why a test is failing from the Github actions output), we may need to re-evaluate using them. But because of this please do a double-check |
I think parametrized tests are a very valuable pattern that improves test readability and coverage, but at the same time, I Agree |
1658eb1
to
4f5cf5d
Compare
Did a bit of debugging this evening to figure this out, and noticed that the roles were being checked versus the kvk/rsin via the detail mixin. Also increased the loglevel to info and ensured that the logmessages were distinct from each other to assist in figuring this out quicker next time |
4f5cf5d
to
68bd74b
Compare
…snummer or rsin/kvk, but not both
68bd74b
to
74d168e
Compare
To be verified on Venray install just in case |
@pi-sigma solution verified to be working on venray testenvironment |
No description provided.