Skip to content

Support retrieving a subset of subscriptions / affiliations #309

Description

@lloydwatkin

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.

Activity

  1. imaginator commented on Jun 3, 2015

    @imaginator
    Member

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

  2. lloydwatkin commented on Jun 3, 2015

    @lloydwatkin
    MemberAuthor

    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)
    .

  3. imaginator commented on Jun 3, 2015

    @imaginator
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions