Aperto Chiuso

ABP Suite changes wipe out code #969


User avatar
0

using ABP Suite, how is it possible to change what is set in ABP suite without redoing all the work that has been put in to the controllers etc?

  • ABP Framework version: v4.2.1
  • UI type: / MVC
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

5 risposte
  • User Avatar
    0
    yekalkan creato
    Team di supporto Fullstack Developer

    Hi,

    Suite overrides any changes on created files when you re-crete them. You can copy your changes to somewhere and re-apply them after re-creation.

  • User Avatar
    0

    Hi Surely this isn’t great for a user experience.

    would a 'if file not default' then copy content to temp file and put back after migrations? as part of using the Suite.

    this is a premium product of ABP and the usability of the suite isn’t that great in this regard

  • User Avatar
    0
    alper creato
    Team di supporto Director

    hi jon, yes it would be great if Suite will keep your changes. this is a task on our milestone. this is hard to implement because it's not always replacing a file with a newer one but sometimes modifying an existing class. (Forexample Suite changes some information in DbContext classes.) So this is a known drawback and we'll try to cover this gap.

  • User Avatar
    0

    even comment the changes. and say this is saved in this location. then I can do the changes + Migration and carry on with my code.

    OR in Suite it shows what the changes have been without just wiping out the code. then in suite it could ask do you want to put i back? yes no etc

  • User Avatar
    0
    alper creato
    Team di supporto Director

    are you using some source control platform something like GitHub? if so commit your changes before generating the entity and you can easily see the difference. this can allow you to pick your custom code to the new one

Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11