Activities of "OsmanAmanjee"

  • ABP Framework version: latest
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Failed to load api defintion. response status is 404 https://medistat.co.za/medistatapi/swagger/swagger/v1/swagger.json
  • Steps to reproduce the issue:"
  • After deploying my application to IIS, I'm not able to open the swagger ui. Below are my configuration details.

{ "App": { "SelfUrl": "https://medistat.co.za/MedistatApi", "AngularUrl": "https://medistat.co.za/MedistatWeb", "CorsOrigins": "https://.Medistat.com,https://medistat.co.za/MedistatWeb", "RedirectAllowedUrls": "https://medistat.co.za/MedistatWeb" }, "Redis": { "Configuration": "127.0.0.1" }, "ConnectionStrings": { "Default": "Server=MedistatDB;Database=MedistatABP;Trusted_Connection=false;User ID=MedistatUser;Password=L#vaH4buZ25WjB9;Connect Timeout=1000", "Discovery": "Server=MedistatDB;Database=MedistatABPDiscovery;Trusted_Connection=false;User ID=MedistatUser;Password=L#vaH4buZ25WjB9;Connect Timeout=1000", "Edi": "Server=MedistatDB;Database=MedistatABPEdi;Trusted_Connection=false;User ID=MedistatUser;Password=L#vaH4buZ25WjB9;Connect Timeout=1000", "Msv": "Server=MedistatDB;Database=MedistatABPMsv;Trusted_Connection=false;User ID=MedistatUser;Password=L#vaH4buZ25WjB9;Connect Timeout=1000" }, "AuthServer": { "Authority": "https://medistat.co.za/MedistatApi", "RequireHttpsMetadata": "false", "SwaggerClientId": "Medistat_Swagger", "SwaggerClientSecret": "1q2w3e" }, "StringEncryption": { "DefaultPassPhrase": "fsfXFsKSwfobK4Fr" },

Question
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How do I change the theme on an existing Angular Commercial Angular app, I would like to change from Material Theme Pro to Dark Blue Theme Pro

  • ABP Framework version: latest

  • UI type: Angular

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): yes / no

  • Exception message and stack trace: 2022-03-24 14:47:22.685 +02:00 [ERR] GetHealthReport threw an exception when trying to get report from /health-status configured with name Medistat Health Status. System.InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set. at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request) at HealthChecks.UI.Core.HostedService.HealthCheckReportCollector.GetHealthReport(HealthCheckConfiguration configuration)

  • Steps to reproduce the issue:" I've published my host project and copied the contents of the published folder to the server that I'm deploying to. When I try to open swagger to test my services I am presented with the above error. Any idea why I'm getting this error

I have a class which I detail below. Because it has a compisite primary key I cannot use the generic repository. I have created a custom repo to return the records from this entity but I cannot figure out how to return the list as an async result. I've also attached my custom repo interface and class implementation. I'm trying to follow the example from the documentation from this link https://docs.abp.io/en/abp/latest/Repositories, but I'm not able to figure out how to return the result as an async. Please help

public partial class PracticeICD10 : Entity
{
    public int PracticeId { get; set; }
    public int ICD10Id { get; set; }

    public virtual Practice Practice { get; set; }
    public virtual Icd10 ICD10 { get; set; }

    public override object[] GetKeys()
    {
        return new object[] { PracticeId, ICD10Id };
    }
    

public interface IPracticeICD10Repository : IRepository<PracticeICD10>
{
    Task<List<PracticeICD10>> GetPracticeICD10sByPracticeAsync(int practiceId);
}

public class PracticeICD10Repository : EfCoreRepository<MedistatDbContext, PracticeICD10>, IPracticeICD10Repository
{
    public PracticeICD10Repository(IDbContextProvider<MedistatDbContext> dbContextProvider)
        : base(dbContextProvider)
    {

    }

    public async Task<List<PracticeICD10>> GetPracticeICD10sByPracticeAsync(int practiceId)
    {
        var dbContext = await GetDbContextAsync();
        
        return await dbContext.Set<PracticeICD10>()
            .Where(p => p.PracticeId == practiceId).ToList();
    }
}

Hi

I'm currently using the lastest version of ABP, I think its 5.1.

I have an existing entity called Practice which has an existing primary key called PracticeId. I want to inherit from AuditEntity to include the audit properties on the class and use the repositories in my application service to retrieve the data. What is the implementation that I should use in order to be able to add the audit properties and use the repositories without adding the id property to my class.

Showing 1 to 5 of 5 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11