missing imageUrl and elasticsearch saves, various other updates with pending pull request
See original GitHub issueOverview of the issue
Bug/Issues:
Issue 1: UserService.updateUser() and AccountResource.saveAccount() imageUrl user update from /account REST layer is missing
Issue 2: UserService.updateUser(UserDTO userDTO) elasticsearch save missing here, so “Admin Panel->User management” items aren’t updated, query is getting stale data.
Issue 3: creationEmail.html Email’s link is for password reset key, not new account activation
Issue 4: User.java email min size of 5 is missing from the Size annotation
Issue 5: AccountResourceIntTest.testRegisterDuplicateLogin(): “getLogin()” called twice instead of “getLastName()”
Issue 6: AccountResourceIntTest.testGetExistingAccount(): Add missing langKey insertion and check
SMALLER ITEMS - Code Cleanup Items
- User.equals(): replace if else block with “return login.equals(user.login)”
- activate.json: “Your user has been activated.” to “Your user account has been activated.”
- activate.json: “Please” to “Please sign in.”
- comment updates: “succesful” to “successful” and “doesnt” to "doesn’t"1
- ManagedUserVM.java: “, imageUrl” to “, imageUrl”
- pom.xml: " </plugins" to “</plugins” (one extra space above </pluginManagement)
- ProfileInfoResourceIntTest.java: remove unused import …beans.factory.annotation.Autowired;
- RateLimiting.java: remove unused import … javax.servlet.http.HttpServletResponse;
- user-management.components.ts: constructor alignment fixed
- user-management.components.html: "<th " to "<th "
- UserResourceIntTest.java: rename “autorities” to “authorities” across file
- UserResourceIntTest.updateUserExistingEmail(): remove unused variable “databaseSizeBeforeUpdate”
- UserResourceIntTest.updateUserExistingLogin(): remove unused variable “databaseSizeBeforeUpdate”
- UserService.java: "@Transactional(readOnly = true) " to “@Transactional(readOnly = true)”
Motivation for or Use Case
These are issues and code clean up that is needed by the community.
Reproduce the error
For elasticsearch issue:
- Use Elasticsearch enabled project
- Update a setting from a normal user, e.g. change the email
- Go to admin panel - User management and see the update has not come
Related issues
No
Suggest a Fix
Already made a pull request with all the fixes. https://github.com/jhipster/generator-jhipster/pull/5440 #5440
JHipster Version(s)
4.0.8 w/ Angular 2
JHipster configuration
yo jhipster:info Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
+-- UNMET PEER DEPENDENCY @angular/compiler@2.4.7
+-- UNMET PEER DEPENDENCY @angular/core@2.4.7
`-- generator-jhipster@4.0.8
JHipster configuration, a .yo-rc.json
file generated in the root folder
{
"generator-jhipster": {
"jhipsterVersion": "4.0.8",
"baseName": "gtw",
"packageName": "x.gtw",
"packageFolder": "x/gtw",
"serverPort": "8080",
"authenticationType": "jwt",
"hibernateCache": "hazelcast",
"clusteredHttpSession": "hazelcast",
"websocket": "spring-websocket",
"databaseType": "sql",
"devDatabaseType": "postgresql",
"prodDatabaseType": "postgresql",
"searchEngine": "elasticsearch",
"messageBroker": "kafka",
"serviceDiscoveryType": "eureka",
"buildTool": "maven",
"enableSocialSignIn": false,
"jwtSecretKey": "xxxxxxxxxxxxxx",
"clientFramework": "angular2",
"useSass": true,
"clientPackageManager": "yarn",
"applicationType": "gateway",
"testFrameworks": [
"gatling",
"cucumber",
"protractor"
],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "en",
"languages": [
"en",
"es",
"tr"
]
}
}
Entity configuration(s) entityName.json
files generated in the .jhipster
directory
ls: no such file or directory: .jhipster/*.json
Browsers and Operating System
java version “1.8.0_121” Java™ SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot™ 64-Bit Server VM (build 25.121-b13, mixed mode)
git version 2.12.0.windows.1
node: v6.10.0
npm: 3.10.10
yeoman: 1.8.5
yarn: 0.21.3
Docker version 1.13.1, build 092cba3
docker-compose version 1.11.1, build 7afaa436
Entity configuration(s) entityName.json
files generated in the .jhipster
directory
N/A
Browsers and Operating System
Windows 10. I used Chrome in normal and in private browsing mode.
- [ X ] Checking this box is mandatory (this is just to show you read everything)
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
@tezcane I know its frustrating, so I’m cutting you some slack. I have merged some of your PR but one of it needs change can you take a look. Next time please do smaller PRs 😃
Its ok for this time. Next time please group relevant items into separate tickets