appsody / appsody

Appsody command line tool. This repo will be archived soon.
https://appsody.dev
171 stars 46 forks source link

Request for update feature for existing appsody projects #341

Open mtamboli opened 5 years ago

mtamboli commented 5 years ago

Is your feature request related to a problem? Please describe. Here is the problem scenario: New developer creates appsody project and an applications using appsodyhub repository Java-microprofile stack, tested and checked in new appsody project in Github.

But later it was found that the organization really needs to use a java-microprofile stack/collection from different repository. There are no easy steps to clone and update the project. Manual steps that I can think of are (do not like step 3 and 4):

  1. Clone the existing appsody project
  2. Create a new directory and initialize it with the correct collection
  3. Copy your code to the new directory
  4. Now link this new project to old git appsody project to check in the new pom.xml and other generated files.

Describe the solution you'd like A clear and concise description of what you want to happen.

Looking for something like update command below but I am not aware of any such appsody command. So this request and this is how it could work:

  1. Clone the appsody project
  2. Run appsody update - Does not exist update command will not overwrite the code directory but other files. It can give a warning to the user about all the files which will be overwritten in the project as result of this command.
  3. Test and push the updates to same git repository

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here. There will be many cases when existing projects need to be rebuild with the latest stack/collection. Creating new project every time and copying the code seems like too much to expect. So this feature will help with quick updates to the appsody projects.

sympatheticmoose commented 5 years ago

Hi @mtamboli quick q - you're using the term collection a lot - are you referring to kabanero collections and is this part of your issue?

mtamboli commented 5 years ago

@sympatheticmoose I am testing this in context of Kabanero but the idea is same if using stack or collection. How do you update your existing appsody project with new/updated stack or collection?

kylegc commented 5 years ago

@mtamboli this is a very valid requirement/use-case. We should provide a path to migrate a project from one stack to another. Moving this to our triage to get designed and prioritized.

For now you can manually edit the .appsody-config.yaml file in the appsody project to point to the new stack. Obviously like you state, some of the project files may also need to change, and it would be currently up to you to properly update the files as the new stack expects.