Ends in:
7 DAYS
20 HRS
3 MIN
41 SEC
Ends in:
7 D
20 H
3 M
41 S
Open Closed

ABP Suite changes wipe out code #969


User avatar
0
jon.hallam@managed-desktop.com created

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 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team 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
    jon.hallam@managed-desktop.com created

    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 created
    Support Team 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
    jon.hallam@managed-desktop.com created

    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 created
    Support Team 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 v9.1.0-preview. Updated on November 20, 2024, 13:06