Skip to content
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

Support retrieving a subset of subscriptions / affiliations #309

Open
lloydwatkin opened this issue May 29, 2015 · 3 comments
Open

Support retrieving a subset of subscriptions / affiliations #309

lloydwatkin opened this issue May 29, 2015 · 3 comments

Comments

@lloydwatkin
Copy link
Member

Use case: To help us with things like this project-isizwe/wifi-chat#16 (comment)

Affiliation retrieval

Filters affiliations list to those with 'member' affiliation:

<iq type='get'
    from='hamlet@denmark.lit/elsinore'
    to='pubsub.shakespeare.lit'
    id='ent1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub' xmlns:bc='http://buddycloud.org/v1'>
    <affiliations node='princely_musings' bc:affiliation='member' />
  </pubsub>
</iq>

Subscription retrieval

<iq type='get'
    from='francisco@denmark.lit/barracks'
    to='pubsub.shakespeare.lit'
    id='subscriptions1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub' xmlns:bc='http://buddycloud.org/v1'>
    <subscriptions bc:subscription='subscribed' />
  </pubsub>
</iq>

Rules

Only moderators and owners can retrieve outcast or none. Only users with a status of subscribed can retrieve data*.

  • Only if this matches current functionality otherwise to match current.
@imaginator
Copy link
Member

Any thoughts on how we could page results? Use case: asking for subscriptions of all-users-auto-subscribed-channel@domain.

@lloydwatkin
Copy link
Member Author

It just needs someone to implement RSM for subscription/affiliation
gathering again. It was taken out so we could switch to node memberships
more easily but there's no big reason we can't add it back in again.

I'm also thinking we should implement a 'memberships' stanza which is a
combo of subscription and affiliation.


Steven Lloyd Watkin
Software Engineer
PHP ::: Java ::: Ruby ::: Node.js ::: XMPP :: + many more
lloyd@evilprofessor.co.uk (email+jid) ::: http://www.evilprofessor.co.uk
Github / Twitter / Flickr / Facebook: lloydwatkin

Organiser of WORLD RECORD breaking charity event:
Scuba Santas ::: http://www.scuba-santas.co.uk
Supporting the RNLI & DDRC - 14th December 2014 - NDAC, Chepstow

On 3 June 2015 at 09:58, Simon Tennant notifications@github.com wrote:

Any thoughts on how we could page results? Use case: asking for
subscriptions of all-users-auto-subscribed-channel@domain.


Reply to this email directly or view it on GitHub
#309 (comment)
.

@imaginator
Copy link
Member

A membership stanza would make a lot of sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants