Open relrod opened 9 years ago
This isn't closable yet because there is likely some fallout from 51cf251. This also breaks the GCM code a bit because right now they share the JSON deserialization code but it is different on datagrepper and HRF. But since the GCM code isn't actually used right now (and can't be now, until fedora-infra/fmn.consumer#34 lands), committing this and letting it land in the CI build isn't a huge issue.
Also need to talk with @ralphbean next week and see about getting 'title' added to grouped messages. This might not work because of how 'grouped' works (can grouped messages have different title
fields, or will they all be the same org.fedoraproject.prod.x.y.z
?). But this is fairly low priority (well, at least as low as UI stuff is in general right now, in Mobile).
can grouped messages have different title fields?
I imagine they would have different title fields. Take for instance, badges. You might have three messages like "ricky got the foobar badge", "ricky got the fizbuzz badge", and "ricky advanced to position numbah 1" that could be combined into "ricky got the foobar and fizbuzz badges making him numbah 1".
Right now, the grouped messages return a list of the msg_ids of the constituent messages. We could move to instead providing a dict of those msg_ids that map to further metadata (the subtitle of each message, the title, etc..). I can see that being useful in lots of places -- imagine a UI that includes an "expand" button to expand a grouped message into a view of its constituents.
That change would just need to take place in fedmsg_meta (with a small docs change in fedmsg itself..).
HRF is being deprecated because datagrepper is better and does pretty much everything we need now (and does it way better than HRF did).