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

N21-2023 Add validity period provisioning to groups #5075

Merged
merged 9 commits into from
Jun 26, 2024

Conversation

MarvinOehlerkingCap
Copy link
Contributor

@MarvinOehlerkingCap MarvinOehlerkingCap commented Jun 21, 2024

Description

Links to Tickets or other pull requests

Changes

Datasecurity

Deployment

New Repos, NPM pakages or vendor scripts

Approval for review

  • DEV: If api was changed - generate-client:server was executed in vue frontend and changes were tested and put in a PR with the same branch name.
  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

Notice: Please remove the WIP label if the PR is ready to review, otherwise nobody will review it.

@arnegns
Copy link
Contributor

arnegns commented Jun 26, 2024

Can you add "object: true" to @Embedded at entities in group.entity for validPeriod and also for externalSource?

image


@IsOptional()
@IsString()
bislernperiode?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

It is possible to have a response with "von" and with "vonlernperiode" and "bislernperiode".

... "gruppe": { "id": "bc1036fb-9767-4ef0-8584-2a6c4941d954", "bezeichnung": "Gruppe_Test_X", "typ": "Klasse", "laufzeit": { "von": "2022-08-31", "vonlernperiode": "2022-1", "bislernperiode": "2024-2" }, "organisation": { "id": "a9a7d3f4-d4b0-4804-bf15-275637cb3bee", "kennung": "NI_00100", "name": "Testschulebfemaxypml_new", "typ": "Schule", "anschrift": { "ort": "Hannover" } } }, ....

At the moment the login fails with an validation error "property personenkontexte[0].gruppen[1].gruppe.laufzeit.von has failed the following constraints: von must be a Date instance".

You can use brando wolf and "Gruppe_Test_X"
image


export class SchulconnexLaufzeitResponse {
@IsOptional()
@IsDate()
Copy link
Contributor

@arnegns arnegns Jun 26, 2024

Choose a reason for hiding this comment

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

This is what we get from api: "2022-08-31" and the at moment the validation fails

Copy link

@MarvinOehlerkingCap MarvinOehlerkingCap merged commit b319e57 into main Jun 26, 2024
54 of 56 checks passed
@MarvinOehlerkingCap MarvinOehlerkingCap deleted the N21-2023-group-validity branch June 26, 2024 12:23
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.

2 participants