ApollosProject / apollos-embeds

Apollos React Embeds that can be used in Webflow and other third-party websites.
https://www.npmjs.com/package/@apollosproject/apollos-embeds
0 stars 0 forks source link

tagged events not showing up on web feeds #220

Closed redreceipt closed 5 months ago

redreceipt commented 6 months ago

What's the Problem?

Basecamp item

"Prep Meal" event should be showing up on the Mercer County events feed

Steps to reproduce

Screenshots/Recordings

Screenshot 2024-05-20 at 3 07 14 PM Screenshot 2024-05-20 at 3 10 08 PM
Sherange commented 6 months ago

@redreceipt when I check the graphql query result Im getting only above five events

https://github.com/ApollosProject/apollos-embeds/assets/28708210/06d2948b-3f4f-4e6b-81a8-d0cb6c785885

redreceipt commented 6 months ago

@Sherange looks like that query is missing ... on Event

Sherange commented 6 months ago

@Sherange looks like that query is missing ... on Event

@redreceipt do you mean adding ... on Event to CardListItem -> relatedNode ? but it didn't change the result right ?

redreceipt commented 6 months ago

@Sherange can you paste the query here that is being used so we can debug on the backend

Sherange commented 6 months ago

@Sherange can you paste the query here that is being used so we can debug on the backend

query featureFeed($itemId: ID!) {
  node(id: $itemId) {
    ... on FeatureFeed {
      features {
        id
        order
        __typename      
        ... on VerticalCardListFeature {
          title
          subtitle
          cards {
            ...ContentCard
          }
        }
      }
    }
  }
}

fragment ContentCard on CardListItem {
  id
  title
  labelText
  summary
  coverImage {
    name
    sources {
      uri
    }
  }
  hasAction
  action
  actionIcon
  relatedNode {
    id
    __typename
    ... on ContentItem {
      parentItem {
        title
      }
      title
    }
    ... on Url {
      url
    }
  }
}
redreceipt commented 6 months ago

We’ll need the feature feed ID too for the query variables Sent from my iPhoneOn May 21, 2024, at 3:18 PM, Sherange Fonseka @.***> wrote:

@Sherange can you paste the query here that is being used so we can debug on the backend

query featureFeed($itemId: ID!) { node(id: $itemId) { ... on FeatureFeed { features { id order __typename
... on VerticalCardListFeature { title subtitle cards { ...ContentCard } } } } } }

fragment ContentCard on CardListItem { id title labelText summary coverImage { name sources { uri } } hasAction action actionIcon relatedNode { id __typename ... on ContentItem { parentItem { title } title } ... on Url { url } } }

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Sherange commented 6 months ago

@redreceipt feed id fyr {"itemId" : "FeatureFeed:69cc8825bbc7612068c77496e3e2d9f48ad2b8906c455d95fdbba65e3b0fe30043d83c63592e2b9827777c0c311f2481db9397d1ae6fb376c2f14202e6d92b630b1aefda88740028cfaf9718c06bd477419b58c73d6f979ae403ee7ea6aaa1f7ede715c0b0f2f1a9178352ecc65278d5a3955b361ab50e9450305229ecef654f51b29ce2b2aaaa9823e9152541a07ce221c52a59768379b22100b8928f12d8fa13005e4c95d0b622749dd131217db27cddaf10a5bb13d00645fa60cdb3849f9f5af6b2467db0dba0ee44f29ca5a609cf"}

redreceipt commented 6 months ago

@Sherange can you share how that feature feed ID was generated?

Sherange commented 6 months ago

@Sherange can you share how that feature feed ID was generated?

@redreceipt I took it from above link https://www.liquidchurch.com/af/FeatureFeed-69cc8825bbc7612068c77496e3e2d9f48ad2b8906c455d95fdbba65e3b0fe30043d83c63592e2b9827777c0c311f2481db9397d1ae6fb376c2f14202e6d92b630b1aefda88740028cfaf9718c06bd477419b58c73d6f979ae403ee7ea6aaa1f7ede715c0b0f2f1a9178352ecc65278d5a3955b361ab50e9450305229ecef654f51b29ce2b2aaaa9823e9152541a07ce221c52a59768379b22100b8928f12d8fa13005e4c95d0b622749dd131217db27cddaf10a5bb13d00645fa60cdb3849f9f5af6b2467db0dba0ee44f29ca5a609cf

redreceipt commented 6 months ago

@vinnyjth do you know how I can see what's in that encoded feature ID? trying to debug why all their Mercer events aren't showing up.

redreceipt commented 6 months ago

@Sherange I think this is still a website problem. Something about how that ID is being generated is wrong. The events show up in the app. You'll need to figure out where that ID comes from to continue to debug it. You get there by clicking this button:

Screenshot 2024-05-23 at 12 55 15 PM
Sherange commented 6 months ago

@redreceipt difference we having in mobile and web-embeds is the user token

I test with mobile app query and feature feed id and I get all the events but when I remove the user token from the request I get the same 5 result as in web

then I cross checked with the web query by adding user token to it and I get all the events

https://github.com/ApollosProject/apollos-embeds/assets/28708210/56c259c8-a486-4fc2-93bd-ebc38890ea86

redreceipt commented 6 months ago

So can you please lay out the queries required to reproduce the problem starting all the way from login? To debug this on the backend, we need to identify where it goes wrong on the front end. So we need all the queries in the chain.

Sherange commented 6 months ago

@redreceipt Issue re-create steps with graphql queries

1 - get user token from login query 2 - feature feed query to get event list 3 - Add authorization token to step 2 query to get all events

redreceipt commented 6 months ago

@Sherange where is the itemId coming from for the feature feed? I have no way of knowing if that feature feed ID is valid. do you know how that ID is being generated after clicking the "View All" button in my screenshot above?

Sherange commented 6 months ago

@Sherange where is the itemId coming from for the feature feed? I have no way of knowing if that feature feed ID is valid. do you know how that ID is being generated after clicking the "View All" button in my screenshot above?

@redreceipt I manage to debug how "View All" generated, use the same feature feed query with feed id {"itemId" : "FeatureFeed:c97d388b-9115-4ce9-b37e-7b9da66fac73"} then you get the primary action data for view more button Screenshot 2024-05-29 at 4 35 50 PM Screenshot 2024-05-29 at 4 33 18 PM

redreceipt commented 6 months ago

excellent work @Sherange. i just figured out that the response is different if a user is logged in

auth no auth
Screenshot 2024-05-29 at 6 04 53 PM Screenshot 2024-05-29 at 6 05 23 PM

debugging on the backend now

redreceipt commented 6 months ago

this is a backend problem, the response is different when there's no auth header (like what's on the website)