-
Notifications
You must be signed in to change notification settings - Fork 0
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
Consistent introduction of new property skill status property #85
Comments
Weltraumschaf
added a commit
that referenced
this issue
Mar 25, 2022
Various problems: 1. There is a new DTO created which have both the team and skill as null by default. Trying to set the ID on them results in NPE. 2. New introduced field sklillStatus is null by default, but must not be null The first problem is solved by resolving the team andskill according to their ids. If either of them is not present (does not exist) the method exits. An empty DTO is returned to prevent NPE by callers. The second problem is solved by assigning Skillstatus#ACHIEVED. New issue[1] created bc we must maintain this new field consistent in the whole code base. 1: #85 Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
rseedorff
changed the title
Consistent introduction of new property sklil status property
Consistent introduction of new property skill status property
Apr 7, 2022
Amar-Bolkan
added a commit
that referenced
this issue
Jun 13, 2022
Amar-Bolkan
added a commit
that referenced
this issue
Jun 13, 2022
This was previously hardcoded to always assign SkillStatus.ACHIEVED The change in TeamSkillDTO is done to prevent a type error at runtime. Previously the class used the SkillStatus enum generated by jhipster and not our custom one, which is returned by the getSkillStatus method.
Amar-Bolkan
added a commit
that referenced
this issue
Jun 13, 2022
Amar-Bolkan
added a commit
that referenced
this issue
Jun 13, 2022
Amar-Bolkan
added a commit
that referenced
this issue
Jun 13, 2022
rseedorff
added a commit
that referenced
this issue
Jun 16, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We introduced the new property
TeamSkillDTO#skillStatus
as@NotNull
. It must contain one of:SkillStatus#OPEN
SkillStatus#ACHIEVED
SkillStatus#EXPIRING
SkillStatus#EXPIRED
SkillStatus#IRRELEVANT
We must investigate the code base and identify the places where we must maintain this new property.
The text was updated successfully, but these errors were encountered: