Little mongo script to report server-side on who's subscribed to a tool: ~~~~js db.mailbox.find({project_id: pid, app_config_id: ac_id}).forEach(function(m){ user = db.user.findOne(m.user_id); username = user ? user.username : '<no user>'; print(username, m.artifact_title, m.artifact_url); }); ~~~~
And to see everything a user is subscribed to: ~~~~js db.mailbox.find({user_id: uid}).forEach(function(m){ artifact_url = ''; if (m.artifact_url) { artifact_url = m.artifact_url; } else { p = db.project.findOne({_id: m.project_id}); if (p) { ac = db.getSiblingDB('project-data').config.findOne({_id: m.app_config_id}); if (ac) { artifact_url = p.shortname + '/' + ac.options.mount_point + '/'; } } } print(m._id, artifact_url); }); ~~~~ --- ** [tickets:#5185] site/neighborhood admin user subscription check** **Status:** open **Milestone:** unreleased **Labels:** for-support **Created:** Thu Oct 25, 2012 05:39 PM UTC by Chris Tsai **Last Updated:** Mon Mar 09, 2015 09:45 AM UTC **Owner:** nobody >From a support perspective, it would be really, really great to be able to >view a user's subscriptions, and ideally, also be able to unsubscribe when >appropriate. --- Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.