Open Closed

Audit Logs - Entity Changes table sort criteria is only working for the current page (MongoDB) #692


User avatar
0
michael.sudnik created
  • ABP Framework version: v4.0.0
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:
  • **Database: MongoDB

Hi,

I am implementing my own entity change tracking and am using MongoDB.

There is a bug, which means that the sorting is only being applied to the current page of entity change results. https://github.com/abpframework/abp/blob/f4c7def47a97c77e4fa2813f52e8ebe61598f095/modules/audit-logging/src/Volo.Abp.AuditLogging.MongoDB/Volo/Abp/AuditLogging/MongoDB/MongoAuditLogRepository.cs#L179

Paging should be performed after the sort, same as this line: https://github.com/abpframework/abp/blob/f4c7def47a97c77e4fa2813f52e8ebe61598f095/modules/audit-logging/src/Volo.Abp.AuditLogging.MongoDB/Volo/Abp/AuditLogging/MongoDB/MongoAuditLogRepository.cs#L58

Best regards,

Mike


3 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    hi michael,

    yeah that seems to be a bug. sorting must be put before the fetch operation. Even though it's on the open-source side, nobody has reported this yet. Maybe because MongoDB is not used by many people. I created an issue on the ABP repo. Also I increased your question credits. Let's track the issue at https://github.com/abpframework/abp/issues/6706

  • User Avatar
    0
    michael.sudnik created

    Thanks for that. We actually purchased the upgrade to the business license recently, but the question credits did not increase with the upgrade. Maybe you could bump it up a bit more? Hopefully, I won't need them, but you never know.

  • User Avatar
    0
    alper created
    Support Team Director

    now you have enough credits :)

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09