Activities of "sean.alford"

We need to build a service that will manage sequential numbers across multiple modules.

ISequentialNumberManager _sequentialNumberManager

// Get the next ticket number
Ticket.Number = await _sequentialNumberManager.GetNextAsync("TicketNumber");

Should we simply create a module without a UI, or is there a better best practice?

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.0.0
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): MVC Tiered
  • Exception message and stack trace: N/A
  • Steps to reproduce the issue: N/A

We have three instances of Redis running using different ports. redis-dev(port:6377) redis-test(port:6378), and redis-prod(port:6379). How do you change the Redis port configuration in appsettings?

NOTE: We tried this but it doesn't seem to work.

"Redis": {
    "Configuration": "127.0.0.1:####"    

How do you add a new action like (+ New Entity) to the Navigation Property picker, and it's modal picker so the user can create a new Entity if the one they're looking for doesn't exist?

Fianlly, how do you render multiple properties on the modal picker?

For example, Name, Surname, Phone

According to the comments here in the Acme.HelpDesk.Domain.Users.AppUser.cs, I should be able to extend AppUser by adding new properties. (i.e. public virtual Guid OrganizationId { get; set; })

Acme.HelpDesk.Domain.Users.AppUser.cs

Next, I would need to configure the mapping for the properties here: HelpDeskDbContext.OnModelCreating

Then I would need to update HelpDeskEfCoreEntityExtensionMappings

Finally, I created the migration; however, as you can see the FK mapping did not get created as expected.

How do I correct this?

Overview

I'm building a simple Help Desk application that will allow us to manager our support tickets and assign them to users who's belong to the Support Technician role. The Ticket entity is pretty simple.

Ticket : FullAuditedAggregateRoot

Properties
  • Number (int) -> auto generated (read/only) identiy field
  • Issue (string)
  • Tags (string)
  • Solution (string)

Number Property Modifications

  1. After creating the Ticket entity with ABP Suite, I added .UseIdentityColumn(1000, 1); to the Ticket's auto generated context model located here: HelpDeskDbContextModelCreatingExtensions.cs
builder.Entity<Ticket>(b =>
{
    b.ToTable(HelpDeskConsts.DbTablePrefix + "Tickets", HelpDeskConsts.DbSchema);
    b.ConfigureByConvention();

    b.Property(x => x.TenantId).HasColumnName(nameof(Ticket.TenantId));
    b.Property(x => x.Number).HasColumnName(nameof(Ticket.Number)).UseIdentityColumn(1000, 1);
    b.Property(x => x.Tags).HasColumnName(nameof(Ticket.Tags));
    b.Property(x => x.Issue).HasColumnName(nameof(Ticket.Issue));
    b.Property(x => x.Solution).HasColumnName(nameof(Ticket.Solution));
});
  1. Next, I removed the Number field from the create UI, and set the Number field to read only on the edit UI. This all works fine! I was able to create a new Ticket, and sure enough the Number field was auto generated to 1000 as expected.

  1. After creating the Ticket, I then click Actions -> Edit, set the Solution to "Turn on RTU."

  1. Next I clicked Save

Error

I suspect this error is caused when the UpdateAsync(Id, Ticket) tries to update the Number identiy field.

Question # 1

How do I correct this issue? Note this also happens when I try to delete the ticket.

I'm assuming I need to modify the TicketAppService Update/Delete

[Authorize(HelpDeskPermissions.Tickets.Edit)]
public virtual async Task<TicketDto> UpdateAsync(Guid id, TicketUpdateDto input)
{
    var ticket = await _ticketRepository.GetAsync(id);
    ObjectMapper.Map(input, ticket);
    var updatedTicket = await _ticketRepository.UpdateAsync(ticket);
    return ObjectMapper.Map<Ticket, TicketDto>(updatedTicket);
}

Support Technication (Owner) Navigation Link

Where is the AppUserDto located?

I am using abp cli and abp suite version 2.6.2.0. As you can see in the domain project below, I followed Alper's instructions Volo.Abp.Commercial.SuiteTemplate.dll from #48. However, I am still receiving this error.

<i>NOTE:</i> I did not receive any errors when restoring NuGet packages.

Module - (Created with abp cli 2.6.2 while logged in)

abp new Eagle.Aery.Core -t module-pro

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