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

BonFire does not contain Resource #130

Open
oksanasalohubova opened this issue Oct 12, 2021 · 2 comments
Open

BonFire does not contain Resource #130

oksanasalohubova opened this issue Oct 12, 2021 · 2 comments
Labels
bonfire-migration Issues linked to ZenPub to Bonfire migration

Comments

@oksanasalohubova
Copy link
Collaborator

oksanasalohubova commented Oct 12, 2021

Linked with Asses ZenPub replacement with BonFire #121

Resource

We have no way to get Resource in these requests and mutations

fragment ResourcePreview on Resource {
    id
    icon{ id, url }
    name
    summary
    canonicalUrl
    payload:content{
      id
      mediaType
      mirror {url}
      upload {size}
      url
    }
    myLike { id }
    myFlag { id }
    likers { totalCount }
    collection {
      id
      name
      preferredUsername
      canonicalUrl
      icon{ id, url }
      summary
      community {
        id
        ...CommunityInfo
      }
    }
    license
    # likerCount
}
fragment AddResourceCreateResourceMutationResult on Resource {
    id
    ...ResourcePreview
}
fragment CollectionPageResource on Resource {
  id
  createdAt
  ...ResourcePreview
}
fragment ActivityPreview on Activity {
  id
  verb
  createdAt
  user {
    icon {
      id
      url
    }
    image {
      id
      url
    }
    userId: id
    userName: name
    canonicalUrl
  }
  context {
    ... on Community {
      ...CommunityPreview
    }
    ... on Collection {
      ...CollectionPreview
    }
    ... on Resource {
      ...ResourcePreview
    }
    ... on User {
      ...UserPreview
    }
    ... on Comment {
      ...CommentPreview
    }
    ... on Flag {
      ...FlagPreview
    }
    ... on Like {
      ...LikePreview
    }
    ... on Follow {
      ...FollowPreview
    }
  }
}
fragment CommentPreview on Comment {
  ...CommentPreviewBase
  id
  inReplyTo { ...CommentPreviewBase }
  likerCount
  myLike{ id }
  myFlag{ id }
  thread {
    id
    comments(limit:1){
      edges{
        ...CommentPreviewBase
      }
    }
    context {
      ...on Flag {
        id
      }
      ...on Community {
        id
        ...CommunityInfo
      }
      ...on Collection {
        id
        community {
          id
          ...CommunityInfo
        }
      }
      ...on Resource {
        id
        collection {
          id
          community {
            id
            ...CommunityInfo
          }
        }
      }
    }
  }
}
fragment CommentPreviewThread on Thread {
  id
  isLocal
  canonicalUrl
  context {
    ...on Collection {
      ...CollectionPreview
    }
    ...on Resource {
      ...ResourcePreview
    }
    ...on Community {
      ...CommunityPreview
    }
  }
}
fragment FlagPreview on Flag{
  id
  message
  isResolved
  creator{
    ...UserPreview
  }
  createdAt
  context{
    ...on Community {
      ...CommunityPreview
    }
    ...on Collection {
      ...CollectionPreview
    }
    ...on Resource {
      ...ResourcePreview
    }
    ...on User {
      ...UserPreview
    }
    ...on Comment {
      ...CommentPreview
    }
  }
}
fragment LikePreview on Like{
  id
  createdAt
  
  context{
    ...on Community {
      ...CommunityPreview
    }
    ...on Collection {
      ...CollectionPreview
    }
    ...on Resource {
      ...ResourcePreview
    }
    ...on User {
      ...UserPreview
    }
    ...on Comment {
      ...CommentPreview
    }
  }
}
fragment ThreadPreview on Thread {
  id
  lastActivity
  createdAt
  context{
    ...on Community {
      ...CommunityPreview
    }
    ...on Collection {
      ...CollectionPreview
    }
    ...on Resource {
      ...ResourcePreview
    }
    ...on Flag {
      ...FlagPreview
    }
  }
  comments(limit:1){
    totalCount
    edges{
     ...on Comment {
          ...CommentPreview
        }
    }
  }
}
fragment CollectionResource on Resource{
  ...CollectionPageResource
}
@VolodymyrPavlichenko
Copy link
Collaborator

Resources

@pral2a
Copy link

pral2a commented Oct 15, 2021

We should deprecate all the functionalities linked to resources, not to confuse with economic resources. In Weloop views resources are called "Publications".

Screenshot 2021-10-15 at 18 48 12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bonfire-migration Issues linked to ZenPub to Bonfire migration
Projects
None yet
Development

No branches or pull requests

3 participants