moqui-framework icon indicating copy to clipboard operation
moqui-framework copied to clipboard

Add check-empty-type support to explicit load calls.

Open eigood opened this issue 2 years ago • 3 comments

If "load" is requested from the moqui cli, then all given data load types are always run. However, if moqui is started normally, it has special support to load certain data items only the first time, when the database is empty(checked via looking for Enumeration records).

This feature lets one specify check-empty-types, and load types. Then, always call "load" in the deployment process, and the first time through(empty database) it'll load seed,seed-initial, etc, and subsequent calls will just load seed.

eigood avatar May 08 '23 19:05 eigood

I'm not sure what the objective or use case of this change is. Do you mind explaining that?

It seems like you are adding another way to specify types of data to load conditionally if the database is not loaded (through an enumeration) unless they are specified in the load parameter (where they will always load) in a command line setting.

acetousk avatar Jul 23 '23 03:07 acetousk

There is a recently added feature to load data on start, separate from the empty db load, which sounds similar to what you describe.

Here is the commit:

https://github.com/moqui/moqui-framework/commit/9bd047b797a8136f02461997fe3789aac2ba6679

jonesde avatar Jul 24 '23 17:07 jonesde