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

Add active bots connection to current user #1474

Closed
toland opened this issue Apr 27, 2018 · 0 comments
Closed

Add active bots connection to current user #1474

toland opened this issue Apr 27, 2018 · 0 comments

Comments

@toland
Copy link
Contributor

toland commented Apr 27, 2018

The client would like to have bots retrieved with the VISITOR relationship to be sorted by last visit time.

After further discussion on the referenced ticket, it turns out that the client needs a new activeBots connection on the currentUser object. For our purposes, a bot is "active" if the current user is a guest and the bot has visitors. The connection should be sorted by the most recent visit time of each bot. Also, when retrieving the subscribers connection on Bot, the client would like the connection sorted by visit time when the type is VISITOR.

The proposed structure for the connection is:

{
  currentUser {
    activeBots(first: 10) {
      edges {
        node {
          id
          description
          image {
            thumbnailUrl
          }
          subscribers(first: 5, type: VISITOR) {
            edges {
              node {
                id
                handle
              }
            }
          }
        }
      }
    }
  }
}

See this ticket for context.

@toland toland self-assigned this Apr 27, 2018
@toland toland changed the title Implement sorting of bot visitors by last visit time Add active bots connection to current user Apr 30, 2018
@bengtan bengtan closed this as completed Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants