activity-streams

Transforming JSON from API into an activity stream

那年仲夏 提交于 2020-01-14 14:33:28
问题 I am doing a project for fun and one of the requirements is to the JSON data from an API of my choice and transform it into an activity stream using angularjs. I've googled and read what an activity stream is and I believe I have a basic understanding of it. It's essentially transforming an action into a specific JSON format using the keywords "actor", "verb", "object", and "target". When I look at examples, I understand why that specific JSON string is considered an activity stream. Example:

Django activity stream filter Actions by foreignkey in target model

六月ゝ 毕业季﹏ 提交于 2019-12-08 03:16:57
问题 I would like to filter Actions for particular queryset. To this moment I was grabbing data by generating a model stream on desired model. model_stream(FillingSystem) I would like to extend this functionality and have something like this model_stream(FillingSystem.objects.filter(client__slug='my-slug')) or model_stream(FillingSystem.objects.filter(client=Client.objects.get(slug='my-slug'))) this model looks like this: class FillingSystem(models.Model): client = models.ForeignKey('accounts

Django-way for building a “News Feed” / “Status update” / “Activity Stream”

家住魔仙堡 提交于 2019-11-28 15:49:45
I'd like to create a reusable Django app that handles status updates of the Users. Much like facebook's "news feed". Use cases includes, for example: A Professor can create an Assignment due to an specific date and every student can see on the news feed that the assignment was created, with a short description, the date that it's due and a link to see the full description . He also can upload a new PDF that he finds interesting for his students. On the news feed, the info regarding this should be displayed, eg, the description of the pdf, an link to download and a link to preview it . A link

Django-way for building a “News Feed” / “Status update” / “Activity Stream”

狂风中的少年 提交于 2019-11-27 09:35:53
问题 I'd like to create a reusable Django app that handles status updates of the Users. Much like facebook's "news feed". Use cases includes, for example: A Professor can create an Assignment due to an specific date and every student can see on the news feed that the assignment was created, with a short description, the date that it's due and a link to see the full description . He also can upload a new PDF that he finds interesting for his students. On the news feed, the info regarding this