Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

holatuwol
Copy link
Member

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 a TreeMap. 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.

Copy link
Member

@drewbrokke drewbrokke left a 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!

…lper container wouldn't have been created, so make sure it's created
@drewbrokke
Copy link
Member

Changes merged here: #103. Thank you! @holatuwol at this point I'd say rebase your branch onto the dev branch and send a new PR against dev to push any new changes. Thanks!

@drewbrokke drewbrokke closed this Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants