Skip to content
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

Ci/#10 scenarios expressief documenteren #97

Merged
merged 66 commits into from
Oct 17, 2024

Conversation

nielskorporaal
Copy link
Contributor

No description provided.

| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum,geslachts_naam) VALUES($1,$2,$3,$4,$5,$6,$7) | 9999,0,0,P,000000012,19940923,Voorbeeld |
| | kind-1 | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum) VALUES($1,$2,$3,$4,$5,$6) | 9999,0,0,K,000000036,20070923 |
| 2 | ouder-1-1 | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum,geslachts_naam) VALUES($1,$2,$3,$4,$5,$6,$7) | 9999,0,0,1,000000012,19940923,Voorbeeld |
| | inschrijving | INSERT INTO public.lo3_pl(pl_id,mutatie_dt,geheim_ind) VALUES((SELECT COALESCE(MAX(pl_id), 0)+1 FROM public.lo3_pl),current_timestamp,$1) RETURNING * | 0 |
Copy link
Contributor

@fsamwel fsamwel Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deze moet denk ik naar boven, want de pl_id die hieruit komt heb je nodig voor een aantal inserts

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inschrijving is verplaatst naar boven

| stap | categorie | text | values |
| 1 | inschrijving | INSERT INTO public.lo3_pl(pl_id,mutatie_dt,geheim_ind) VALUES((SELECT COALESCE(MAX(pl_id), 0)+1 FROM public.lo3_pl),current_timestamp,$1) RETURNING * | 0 |
| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,voor_naam) VALUES($1,$2,$3,$4,$5,$6) | 9999,0,0,P,000000036,P1 |
| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum,geslachts_naam) VALUES($1,$2,$3,$4,$5,$6,$7) | 9999,0,0,P,000000012,19940923,Voorbeeld |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dit is de tweede persoon die je toevoegt, dus moet een andere pl_id krijgen: 10000

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

voor 1e persoon wordt nu pl_id 9999 gehanteerd, 2e persoon krijgt pl_id 10000 en evt 3e persoon pl_id 10001

| stap | categorie | text | values |
| 1 | inschrijving | INSERT INTO public.lo3_pl(pl_id,mutatie_dt,geheim_ind) VALUES((SELECT COALESCE(MAX(pl_id), 0)+1 FROM public.lo3_pl),current_timestamp,$1) RETURNING * | 0 |
| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,voor_naam) VALUES($1,$2,$3,$4,$5,$6) | 9999,0,0,P,000000036,P1 |
| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum,geslachts_naam) VALUES($1,$2,$3,$4,$5,$6,$7) | 9999,0,0,P,000000012,19940923,Voorbeeld |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ik denk dat het handig is dat de ouder als geslachtsnaam de naam krijgt die je opgeeft, in dit geval 'P2'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gewijzigd in stap-definities, aanduiding wordt bij ouder ingevuld als geslachtsnaam

| 1 | inschrijving | INSERT INTO public.lo3_pl(pl_id,mutatie_dt,geheim_ind) VALUES((SELECT COALESCE(MAX(pl_id), 0)+1 FROM public.lo3_pl),current_timestamp,$1) RETURNING * | 0 |
| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,voor_naam) VALUES($1,$2,$3,$4,$5,$6) | 9999,0,0,P,000000036,P1 |
| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum,geslachts_naam) VALUES($1,$2,$3,$4,$5,$6,$7) | 9999,0,0,P,000000012,19940923,Voorbeeld |
| | kind-1 | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum) VALUES($1,$2,$3,$4,$5,$6) | 9999,0,0,K,000000036,20070923 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ik denk dat je hier de gegevens van de persoon moet overnemen. Dus in dit voorbeeld voornaam=P1, geboortedatum=null.
Wanneer er eerder een stap "is minderjarig" of "is meerderjarig" is opgegeven zou wel die geboortedatum gevuld worden

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

step_definition hiervan is aangepast zodat geboortedatum leeg blijft indien niet vermeld

| 1 | inschrijving | INSERT INTO public.lo3_pl(pl_id,mutatie_dt,geheim_ind) VALUES((SELECT COALESCE(MAX(pl_id), 0)+1 FROM public.lo3_pl),current_timestamp,$1) RETURNING * | 0 |
| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,voor_naam) VALUES($1,$2,$3,$4,$5,$6) | 9999,0,0,P,000000036,P1 |
| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum,geslachts_naam) VALUES($1,$2,$3,$4,$5,$6,$7) | 9999,0,0,P,000000012,19940923,Voorbeeld |
| | kind-1 | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum) VALUES($1,$2,$3,$4,$5,$6) | 9999,0,0,K,000000036,20070923 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

de pl_id moet horen bij de ouder P1. dat is de tweede persoon die is opgevoerd, dus pl_id=10000

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pl_id aangepast zodat het overeenkomt met de tweede persoon

| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,voor_naam) VALUES($1,$2,$3,$4,$5,$6) | 9999,0,0,P,000000036,P1 |
| | persoon | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum,geslachts_naam) VALUES($1,$2,$3,$4,$5,$6,$7) | 9999,0,0,P,000000012,19940923,Voorbeeld |
| | kind-1 | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum) VALUES($1,$2,$3,$4,$5,$6) | 9999,0,0,K,000000036,20070923 |
| 2 | ouder-1-1 | INSERT INTO public.lo3_pl_persoon(pl_id,stapel_nr,volg_nr,persoon_type,burger_service_nr,geboorte_datum,geslachts_naam) VALUES($1,$2,$3,$4,$5,$6,$7) | 9999,0,0,1,000000012,19940923,Voorbeeld |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zie eerdere opmerking: ik denk dat het handig is dat de ouder als geslachtsnaam de naam krijgt die je opgeeft, in dit geval 'P2' (in plaats van 'Voorbeeld')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stap-definitie aangepast: ipv 'Voorbeeld' word de aanduiding als geslachtsnaam gebruikt

@FrozenSync FrozenSync marked this pull request as draft October 10, 2024 07:51
fsamwel added a commit that referenced this pull request Oct 10, 2024
@fsamwel
Copy link
Contributor

fsamwel commented Oct 10, 2024

aangezien adoptie nu wel zo'n beetje goed is heb ik de volgende feature toegevoegd: recente gebeurtenis hertrouwen.

In het eerste scenario (features/gezag-minderjarige/3.1-recente-gebeurtenis-hertrouwen.feature:68) gaat er iets niet helemaal goed.
De minderjarige 'Jaimy' wordt toegevoegd met pl_id=3 en vervolgens nog een keer met pl_id=6. Alleen bij pl_id=6 zijn de ouders toegevoegd.

@fsamwel
Copy link
Contributor

fsamwel commented Oct 11, 2024

aangezien adoptie nu wel zo'n beetje goed is heb ik de volgende feature toegevoegd: recente gebeurtenis hertrouwen.

In het eerste scenario (features/gezag-minderjarige/3.1-recente-gebeurtenis-hertrouwen.feature:68) gaat er iets niet helemaal goed. De minderjarige 'Jaimy' wordt toegevoegd met pl_id=3 en vervolgens nog een keer met pl_id=6. Alleen bij pl_id=6 zijn de ouders toegevoegd.

ik heb hiervoor issue #131 gemaakt, zodat deze PR gewoon gemerged kan worden

@fsamwel
Copy link
Contributor

fsamwel commented Oct 11, 2024

ik heb de features ook weggehaald zodat deze PR zonder features bestanden kan worden gemerged

@nielskorporaal nielskorporaal merged commit 043a6e7 into main Oct 17, 2024
1 check passed
@nielskorporaal nielskorporaal deleted the ci/#10-scenarios-expressief-documenteren branch October 17, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants