-
Notifications
You must be signed in to change notification settings - Fork 21
LPD-55579 #74
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
LPD-55579 #74
Conversation
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.
Just a quick review with a couple of small things. I'll keep testing this in the meantime. Also, some changes have been merged, so please rebase the PR. Thanks Minhchau!
…or SaaS backups, which require additional post-processing
…es file that Liferay will check
…t allow backups to be more easily used locally
…feray Spinner does
…t finding the environment folder
…lper container wouldn't have been created, so make sure it's created
Changes merged here: #103. Thank you! @holatuwol at this point I'd say rebase your branch onto the |
Summary of commits
Avoid using the "it" variable because it can get confusing with nested scopes
I was running into a hard to troubleshoot issue with Gradle, because Gradle tells you the task that failed but not really why that task failed because it doesn't include the Gradle text, and as part of debugging it, I changed all the
it
to actual variable names to make sure that I wasn't running into a weird variable naming issue. That turned out to be unrelated, but I felt that the code was more readable this way, albeit less compact.Separate database backup import from the image to prepare for SaaS backups
Once we bring Spinner into the picture, we'll need to perform some post-processing on the imported database to make the imported database usable in a local environment, so this commit prepares for that. Also includes a portal property (documented in the README) to decrypt any encrypted database backups using 7zip.
Update company web ID lookup to include any portal properties file that Liferay will check
Once we bring Spinner into the picture, there will be more portal properties files, and any of them might have information about which web ID corresponds to the admin/default instance, so this commit prepares for that.
Always a case-insensitive map instead of converting individual lookup keys
I noticed the addition of a
toTableName
function, which was already being done automatically for PostgreSQL (which had all lowercase columns returned) by using a case-insensitive comparator on aTreeMap
. While fixing that, I also moved all of the results processing to use common logic to hopefully make all of that more maintainable.Add user password reset and other features from spinner that allow backups to be more easily used locally
SaaS database support. After a database is imported, we run various queries to sanitize the data so that there are fewer issues when trying to use the database locally.
Load configurations from liferay-lxc repository, the way Liferay Spinner does
SaaS configuration files support. Adds a portal property (documented in the README) to specify where to copy the configurations from, where applicable.