-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrade from 7.3 to 8.0.4 The local bus event is not working on update data #19266
Comments
The code for update I make as generic
|
hi Can you share a minimal project? |
@maliming |
hi Please share a minimal project. |
@maliming Hi, I'm facing the same issue as described on this thread. I have a minimal sample project here. Calling the endpoint shown below must trigger the local event bus handler called You should uncomment the creation line on the I tested it with dotnet 7 and ABP 7.3.3, and everything worked as expected. After upgrading to dotnet 8 and ABP 8.0.4 the event handler is not being called anymore. |
You can make your app service methods virtual. I tested in a unit test. public virtual async Task<bool> AddItemAsync()
public virtual async Task<bool> ChangeOwnerAsync() |
@maliming it partially worked. 2 -Is required to make these methods virtual? Is there any workaround? I have an application with several AppServices methods (aka endpoints) and I'd like to avoid having to modify every single method with the Thanks in advance. |
|
@maliming cool. Could you describe or is somewhere in the doc the benefits of using virtual methods? |
https://docs.abp.io/en/abp/latest/Unit-Of-Work#iunitofworkenabled-interface |
Tried to navigate to the dynamic proxy/ interception and still in progress. Not sure what that dynamic proxy/interceptor does at this level. What changed from the last version that now requires having that |
hi I will cherry-pick it to |
Done by #19079 |
@maliming thanks! What's the release plan for that? Want to know the version that I should use to get that fix applied. |
We will release the |
@maliming did it got released? Seems like the fix got released with v8.1.1 but I'm still facing the same behavior. If one of the props of the root is modified the event EDIT: I tested also with v8.1.0 because I saw the PR on these release notes but still not working as it is on v7.3.3 |
@maliming adding more context to this. I've the entity Order( public override object[] GetKeys()
{
return [OrderId, ItemId];
} The interesting thing about is: Again, this code is working perfectly with 7.3.3. |
You can test your project by latest source code reference. |
@maliming you mean by the latest code on dev branch? Or tag 8.1.1 ? |
hi Latest code on |
@maliming is out there a nuget package that contains the latest code in rel-8.0? |
8.0.5 has not released yet, you can add source code references to test. |
Hi @maliming as far as I can see 8.0.5 has been released, but on the notes your PR is not referenced there. Either the code added on your PR is not on 8.0.5, but it is referenced on 8.1.0 (and so on). I've tested on 8.1.0 and 8.1.1 and the error is still present. Am I missing something? Checking the test for that, seems like it should alternate between true and false, right? If any update triggers the local event bus, shouldnt that change the value of the variable? |
hi I may have misremembered. It should be 8.0.6. you can share a test application, I'll test it in the source code |
Hi
I have an issue after upgrading to 8 with the local bus event the event update is not working when updating data with other events like create or delete is working fine
`public class TagEventHandler : ILocalEventHandler<EntityChangedEventData>,
ITransientDependency
{
private readonly IDistributedCache<IEnumerable> _tagCache;
}
public class SupportPhoneNumberHandler : ILocalEventHandler<EntityChangedEventData>,
ILocalEventHandler<EntityUpdatedEventData>,
ITransientDependency
{
private readonly IDistributedCache<List> _supportPhoneNumbersCache;
}
`
@maliming Can check this issue for me??
The text was updated successfully, but these errors were encountered: