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
Custom AggregatedActivity not working #23
Comments
Yes the serializer class in this case needs to know about which object you use.
That should ensure it returns the right type of object. At the moment some serializers need to know about the type of object, others don't. |
Thanks for quick response. I am working heavily on this so more questions may come in future :) |
You need both, the serializer doesn't always need it. This serializer is optimized for storage space and doesn't store the object type in the serialization. |
Thanks for your help, so far so good. Now stuck again. I am trying to change the criteria to identify duplicate activity, so i override
It is obvious that this should be called but not. My feed is working fine with the custom aggregator and assume that the previous issue is also fixed. |
The contains method should be called by the aggregator class in the merge method. |
Strange it is not called though. For testing purpose I have tried to copy the same
Doing so now |
Forget it, i found it the problem, it was my fault. You can close this issue. Thanks |
I have this group logic for aggregator:
According to this group logic there will be similar activities from actors but on same action object. There will never be an activity in aggregated activity whose
Why the previous activity in aggregated activity get lost? Is there any false assumption somewhere that if different activities has similar object_id those should be consider duplicate? My Duplicate checking logic:
|
P.S This is the last issue i am facing i will not bother again :) |
Hi, 2014/1/17 intellisense notifications@github.com
|
Yes sure here they are: NewsFeedAggregatedActivity:
Custom Aggregator:
Activity Serializer:
Feeds:
Feedly Feeds:
|
It seems as though object_id isn't unique. For Fashiolista the object_ids are unique. For commenting. Comment 1: User A commented on 22 (user a, object id 1, target_id 22) I didn't have a chance to have a good look at it just yet, but i have the feeling you swapped the target_id and object_id. Object id is usually unique. |
PS don't worry, we'll keep on replying till it works :) |
Funny+Weird I have tested my aggregator in shell console and it works fine as expected:
So i think the problem is here |
As you can see in above testing the |
Think I found it :)
|
I have tried the merge, here are the results, assuming we have aggregated activities from my previous testing code
I can't see the problem here as well :( |
Thanks i have fixed it :) |
@intellisense can you just point where the issue was ? I am now studying this example as I would like to achieve simmmilar results. Regards, Jorge |
@xsanch i have addressed multiple issues here, can you please point to the specific issue so that i can help? Thanks |
I have created a
CustomAggregatedActivity
extended fromfeedly.activity.AggregatedActivity
:And then i have used this in my custom aggregator:
Then i have assigned the
CustomAggregator
in:and finally:
Now when i get user aggregated feed:
It says:
Can you tell me why this happened?
Thanks!
The text was updated successfully, but these errors were encountered: