Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why?
After we added feature to export application from v2 platform to v2 platform
We will add now a feature to import applications from v2 platform to v2 platform.
Links / Ressources
#355
Actual status / Investigations
SaggieUtils
we already have :getAppListByProjectIdRequest
: it will return the list of apps for a specific projectgetAppTechnologiesList
: it will return the list of existing technologiesupdateAppVersion
: it will update the version of the appgetProjectCreateAppRequest
: it will create an appHow?
SaagieClient.groovy
appsConfigFromExportedZip
toimportArtifacts
as below :importArtifacts
toadd methode
addAppVersion(app,appVersion)
: update existing app with a new versionclass
SaggieClientUtils.groovy
Add new variable :
static final EXPORTED_APP_CONFIG_FILENAME = 'app.json'
add methode
extractAppConfigAndPackageFromExportedApp
: extract all apps configuration from the zip file that will be stored inside the variableappsConfigFromExportedZip
class
TechnologyService.groovy
add variavle
appTechnologyList
add methode
checkTechnologyIdExistInappTechnologyList
: it will check if the technologyId exist in the appTechnologylistCreate class importVariableService that will contain this method :`
importAndCreateApps
: will transform the extracted apps into useable objects to be used in the callback methodprocessAppImportation
processAppImportation
: create app and appVersion ,if the app exist ,it wil add a new version ( we need the check if the id of technoly exist)Add unit tests for importing new artifact App.`