Open Closed

why abp suite make changes to old pages #8566


User avatar
0
sayedzakaria created

i created pages and add a Custome code to it when i add new page using abp suite it make changes to old pages how to prevent this behaver


5 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Can you provide more some steps to reprodce this issue.

  • User Avatar
    0
    sayedzakaria created

    i have this code export interface IFormFile { contentType?: string; contentDisposition?: string; headers: Record<string, any>; length: number; name?: string; fileName?: string; }

    if i adding any new entity it changed to export interface IFormFile { contentType?: string; contentDisposition?: string; headers: Record<string, StringValues>; length: number; name?: string; fileName?: string; }

    also i have this method uploadExcelTemplateByFile = (file: any, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, ); it changed to uploadExcelTemplateByFile = (file: any, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, );

    file: any changed to IFormFile

    uploadExcelTemplateByFile = (file: IFormFile, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, );

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello

    Thank you for providing this code. However, we need the steps to reproduce this issue. Please provide the steps.

    Thank you.

  • User Avatar
    0
    sayedzakaria created

    the steps is add new entity using abp suite then add new method in angular project for uploading this entity data from excel using this method

    uploadExcelTemplateByFile = (file: any, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, ); in the method i use file as any then add othe new entity using abp suite and it will change the type of the file from any to IFormFile

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Adding extra functions directly to the proxy file is not recommended, as they will be overwritten by the next code generation. Instead, you may create a separate service to handle these additional operations.

    If you suspect this issue is related to specific suite configurations or selections, please provide more details so I may assist further.

Made with ❤️ on ABP v9.1.0-preview. Updated on January 02, 2025, 07:06