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
refactor: Unify user value objects and validation (DEV-3155) #2980
refactor: Unify user value objects and validation (DEV-3155) #2980
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2980 +/- ##
==========================================
- Coverage 11.74% 11.60% -0.14%
==========================================
Files 246 255 +9
Lines 22907 22989 +82
==========================================
- Hits 2690 2669 -21
- Misses 20217 20320 +103 ☔ View full report in Codecov by Sentry. |
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.
Please do not reuse the UserErrorMessages
constants in the test code. See my comment below for an explanation.
webapi/src/test/scala/org/knora/webapi/slice/admin/domain/model/UserSpec.scala
Outdated
Show resolved
Hide resolved
webapi/src/test/scala/org/knora/webapi/slice/admin/domain/model/UserSpec.scala
Outdated
Show resolved
Hide resolved
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.
That was quick one, nothing special found, you can ignore or take it:
import org.knora.webapi.slice.admin.domain.model.Email | ||
import org.knora.webapi.slice.admin.domain.model.FamilyName | ||
import org.knora.webapi.slice.admin.domain.model.GivenName | ||
import org.knora.webapi.slice.admin.domain.model.Password | ||
import org.knora.webapi.slice.admin.domain.model.SystemAdmin | ||
import org.knora.webapi.slice.admin.domain.model.UserStatus | ||
import org.knora.webapi.slice.admin.domain.model.Username |
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.
import org.knora.webapi.slice.admin.domain.model.Email | |
import org.knora.webapi.slice.admin.domain.model.FamilyName | |
import org.knora.webapi.slice.admin.domain.model.GivenName | |
import org.knora.webapi.slice.admin.domain.model.Password | |
import org.knora.webapi.slice.admin.domain.model.SystemAdmin | |
import org.knora.webapi.slice.admin.domain.model.UserStatus | |
import org.knora.webapi.slice.admin.domain.model.Username | |
import org.knora.webapi.slice.admin.domain.model.* |
import org.knora.webapi.slice.admin.domain.model.Email | ||
import org.knora.webapi.slice.admin.domain.model.Password | ||
import org.knora.webapi.slice.admin.domain.model.SystemAdmin | ||
import org.knora.webapi.slice.admin.domain.model.User | ||
import org.knora.webapi.slice.admin.domain.model.UserStatus | ||
import org.knora.webapi.slice.admin.domain.model.Username |
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.
import org.knora.webapi.slice.admin.domain.model.Email | |
import org.knora.webapi.slice.admin.domain.model.Password | |
import org.knora.webapi.slice.admin.domain.model.SystemAdmin | |
import org.knora.webapi.slice.admin.domain.model.User | |
import org.knora.webapi.slice.admin.domain.model.UserStatus | |
import org.knora.webapi.slice.admin.domain.model.Username | |
import org.knora.webapi.slice.admin.domain.model.* |
Pull Request Checklist
Task Description/Number
Issue Number: DEV-
PR Type
Basic requirements for bug fixes and features
Does this PR introduce a breaking change?
Does this PR change client-test-data?