Indeed, currently both import_for_purhcase_apps and import_app_install_data are creating Application instances for qreator.
If there is data in MyApps for an app, import_app_install_data should not update this, as we assume MyApps will have more up-to-date information.
Neither commands should create another instance for the same package_name and distroseries if one already exists.
import_app_install_data could check if the app has a non-null "Application id" field, and keep its hands off the app entirely if so.
Indeed, currently both import_ for_purhcase_ apps and import_ app_install_ data are creating Application instances for qreator.
If there is data in MyApps for an app, import_ app_install_ data should not update this, as we assume MyApps will have more up-to-date information.
Neither commands should create another instance for the same package_name and distroseries if one already exists.
import_ app_install_ data could check if the app has a non-null "Application id" field, and keep its hands off the app entirely if so.