-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
Rewrite actionlogs not to specify constants based on other apps #229
Comments
Rough plan/notes, assuming use of django-activity stream:
That said, considering what django-activity-stream would actually add for us, over collapsing the plethora of object fields into a single
That's a pretty inconclusive list of advantages to me—the main advantage would be collapsing eight fields into a |
One option would be to create a new |
Django-activity-stream sounds interesting; some of those URLs could be good drop-ins for the activity feeds on the dashboard. Plausibly there could be some actions marked as public if we ever wanted a public (sanitised) activity field. Not sure I entirely get the issue with the actor/user problem. Could there be an intermediary model (say |
Yeah, but it's not necessary to go that far. The actor field takes a In our case, logged-in user actions could just get the actor to point at the user, without any need for an intermediary model. The problem is that with anonymous users, there isn't currently an object associated with the actor at all. One way to resolve this would be to have a (different) model for anonymous users, one instance for each IP address. Unfortunately Django's I think the Activity Streams standard is actually a JSON/ATOM compatibility standard: http://activitystrea.ms/. I suppose in some distant future this would allow for third-party sites to pull information from Tabbycat sites as if they were a social activity stream? Relatedly, Activity Streams 2.0 is currently a W3C Candidate Recommendation. It does look quite different from Activity Streams 1.0 though (which is what django-activity-streams implements). Activity Streams 2.0 is a bit more specific about things, for example, it predefined a bunch of action and object types that make sense for social media sites, but not really for us. If we went there, we'd be defining our own objects a lot ("debate", "ballot"). On one hand, this makes it seem that we're probably not its primary use-case. On the other hand, defining our own objects is permitted, and it might be sensible for, say, debating software to have a standard "extended vocabulary" over the standard vocabulary. The compatibility stuff is all hypothetical though. If the question is, "would this help us now?", I don't know the answer. |
- Includes migrations and data migrations - Deprecated get_parameters_display in favour of get_content_object_display - Does NOT remove existing fields (that will come later)
I converted
Hopefully that's not too confusing (it's intuitive to me, but then, I wrote it). Basically, the bottom line is that if the relevant object isn't a tournament or round, you should set On the broader scale—I think this clears away most of the mess with |
Also, migrations here might be risky. There is a data migration so it's meant to be a seamless upgrade, but I've had issues with migrations involving |
Other view would be to remove public submissions, requiring all of them to be performed by a This is quite an old task :) |
Either write in a registration model like django-tagging, or better still, use an existing app that probably has the implementation done far better than we could, like (but not necessarily) django-activity-stream.
The text was updated successfully, but these errors were encountered: