21-points | ❤️ 21-Points Health is an app you can use to monitor | Security library
kandi X-RAY | 21-points Summary
kandi X-RAY | 21-points Summary
️ 21-Points Health is an app you can use to monitor your health.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a new user
- Send an email to a user
- Create a new user
- Adds audit event
- Convert webAuthenticationDetails to String
- Truncate event data
- Convert a UserDTO to a User Object
- Creates a set of authorities from a set of strings
- API to authenticate a user
- Create a JWTS token
- Add Logstash appender
- Add CORS configuration
- Init metrics
- Gets all points for a week
- Update a user
- Create a new WarPressure
- Retrieves all the warm pressure rates for a given month
- Creates new points
- Post - process a problem entity
- Create a new weight
- Create a new preferences
- Initializes the instance
- Default custom cache manager custom
- Framework configuration
- Configure and logback metrics for all appenders
- Gets the cold pressure readings for a month
21-points Key Features
21-points Examples and Code Snippets
Community Discussions
Trending Discussions on 21-points
QUESTION
I encountered (and resolved) a significant JHipster upgrade error. My questions are simple, but there is a little setup and back story first, so I'm going to break this into pieces.
(0) Dev Environment
(1) Upgrade Problem
(2) Investigation/fix strategy
(3) Solution
(4) Questions
Windows 10, Gradle 5.4.1, node 10.16.3, npm 6.11.2, yarn 1.16.0, MariaDB 10.3, JDK 11, IntelliJ 2019.2.2, git 2.23.0
My project: monolithic app, using Gradle, Angular, JWT authentication, MariaDB for BOTH test and production, no search.
(1) Upgrade ProblemMy code is the 21-Points project as outlined in Matt Raible's book: The JHipster Mini-Book v5.0.3. I started my development with JHipster 6.0. Over the summer, I have periodically reviewed the code, and applied upgrades: 6.0.1 to 6.1.1 to 6.1.2 (in each case, after resolving a handful of conflicts, the project would compile and run without hitch).
Last week, I noticed the release of JHipster 6.2.0. I made a copy/backup of the 6.1.2 working code, updated the generator(npm update -g generator-jhipster
), applied the upgrade (jhipster upgrade
), resolved the conflicts, and... fail. The stacktrace is fairly long and involved. If anyone likes, I'll add it to the post later. But, essentially, the tests failed, and the application would not launch (resulting only in an error page: "An error has occurred :-(", followed by lengthy text suggesting what might have gone wrong, and suggested fixes).
Reverting to the original code, everything still works. Performing a comparison of the two projects, the only changes are those associated with the upgrade. Being surprised by the failure, I scratched my head, then did the following.
(2) Investigation/fix strategyAt this point I had two versions of my project, which I shall label as: 6.1.2-working
(the original code before the upgrade) and 6.2.0-broken
(the original code + the Jhipster upgrade).
I created a third new fresh project (which I shall refer to as 6.2.0-fresh
) as follows:
- Created a new directory
- Copied the
6.1.2-working
.yo-rc.json
file into it, along with a JDL file (21points.jh
) - From bash, typed:
jhipster
jhipster import-jdl 21points.jh
npm install ng2-nvd3
<-- because Matt Raible makes use of some graph plotting
I then carried out a diff between 6.1.2-working
and 6.2.0-fresh
, and migrated the functional changes from 6.1.2-working
to 6.2.0-fresh
. Eventually, I got the new 6.2.0-fresh
to run as expected. Theoretically, I could have left things there, but:
- I wanted to find a proper upgrade solution, rather than a "port".
- This method fails to preserve my version control history. For a normal project, I need to keep that.
I carried out a diff between the new 6.2.0-fresh
and 6.2.0-broken
. The ONLY meaningful difference was a change in a particular file: package-lock.json
Simply:
- copy the new
package-lock.json
file into the6.2.0-broken
root directory - delete the
6.2.0-broken
node_modules
directory - type:
npm install
(to rebuild thenode_modules
directory)
I could now build/run the 6.2.0-broken
project without a problem!
To upgrade from JHipster 6.1.2 to 6.2.0:
- (Make a backup/copy of your working project code... always a good idea)
- Carry out the JHipster upgrade:
npm update -g generator-jhipster
jhipster upgrade
- Find/resolve any conflicts generated by the upgrade process
- Create a new temporary directory
- Copy your original
.yo-rc.json
file into it, along with any JDL files - From bash, in the temporary root, type:
jhipster
jhipster import-jdl (...your JDL files...)
npm install (...needed modules...)
- Make sure the temporary project works:
./gradlew integrationTest
- Copy/overwrite the newly created
package-lock.json
file from the temporary project root to your working project root - Delete the
node_modules
directory from your working project root - Type:
npm install
- Build/test/run your project, and enjoy
Everything should now work nicely.
(4) Questions- Is the problem I experienced common?
- Does anyone know why this occurred? Is this a problem with the JHipster upgrade process? Or, is it a natural by-product of JHipster upgrades that everyone already knows about (though undocumented on the JHipster site), and which I was simply lucky to have not bumped into previously?
- Did I miss something in my upgrade? Did I do something wrong?
- Is my solution appropriate? Are there potential problems with it?
- Is there a better way to resolve upgrade issues like this? A "standard operating procedure" to upgrade such projects?
Thanks!
...ANSWER
Answered 2019-Sep-11 at 07:39At least David Steiman ("Xetys", Stream Lead JHipster UAA) knows about the problems with upgrading a jhipster generated application with jhipster upgrade
, talked about "the dark side of jhipster" on his speech at JHipster Conf 2019 and presented a solution in a demo: https://www.youtube.com/watch?v=Gg5CYoBdpVo.
I try to follow his advices and not to touch the generated classes and configs - which is even more interesting, if someone tries to connect to two databases and stay upgradeable.
But that may only answer your last question, not the ones to the in-depth bugfix you had to do in this particular upgrade from 6.1.2 to 6.2.0.
QUESTION
I recently upgraded a JHipster 2.x application to 4.x as part of writing the JHipster Mini-Book's sample application. Lately, I've been experiencing quite a few issues with login and registration. It seems to be caused by the sequence keys in some of the auditing tables:
...ANSWER
Answered 2018-Oct-26 at 09:03The workaround I adopted was to set a rollbackFor=Exception.class in my CustomAuditEventRepository
It catch the exception and just rollback the transaction: so the login audit event will not be saved, but at least you are not going to have annoying exceptions that lock the app.
QUESTION
I'm trying to update my 21-points.com app to use the latest code from the JHipster Mini-Book. Here’s what I’ve done so far:
Use Heroku’s
...pg:pull
command to copy my production database to a local database:
ANSWER
Answered 2017-Oct-25 at 23:50I would do almost the same: on step 7 I wold relay on liquibase methods for working with the checksum, i.e. I would use clearCheckSums from command line and then on next run all the checksums are gone be recomputed and if there still is an error about a script that wants to run again like in step 8 then you can use changelogSync from command line like:
./liquibase --driver=org.postgresql.Driver --url=jdbc:postgresql://localhost:5432/health
--username=postgres clearCheckSums
./liquibase --driver=org.postgresql.Driver --url=jdbc:postgresql://localhost:5432/health
--username=postgres changelogSync
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install 21-points
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page