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

feat(preview): adding standardized preview data cards #697

Merged
merged 13 commits into from
Aug 28, 2024
Merged

Conversation

bassrock
Copy link
Contributor

@bassrock bassrock commented Aug 24, 2024

Goal

Standardize all display logic across Pocket using the Preview Entity.

Requires: Pocket/content-monorepo#210

Implementation Details

I chose to specifically use GraphQL to do our intersystem communication so that we could focus on merging logic. For now this works pretty well and the router handles all flattening in our resolvers

https://mozilla-hub.atlassian.net/browse/POCKET-10474

@github-actions github-actions bot deployed to client-api-dev August 27, 2024 20:33 Active
@github-actions github-actions bot deployed to braze-content-proxy-dev August 27, 2024 20:34 Active
@github-actions github-actions bot deployed to shared-snowplow-consumer-dev August 27, 2024 20:34 Active
@bassrock bassrock changed the title Feat/display data feat(preview): adding standardized preview data cards Aug 27, 2024
@github-actions github-actions bot deployed to client-api-dev August 27, 2024 21:26 Active
@github-actions github-actions bot deployed to parser-graphql-wrapper-dev August 27, 2024 21:27 Active
@bassrock bassrock marked this pull request as ready for review August 27, 2024 21:55
@bassrock bassrock requested a review from a team as a code owner August 27, 2024 21:55
@bassrock bassrock requested review from cjkim1995 and collectedmind and removed request for a team and cjkim1995 August 27, 2024 21:55
@bassrock bassrock enabled auto-merge (squash) August 27, 2024 22:01
@bassrock bassrock disabled auto-merge August 27, 2024 22:01
@@ -0,0 +1,556 @@
extend schema
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add a seperate schema for admin because federation gets mad since our admin api does not implement some of the shared objects

@github-actions github-actions bot deployed to client-api-dev August 27, 2024 22:16 Active
@github-actions github-actions bot deployed to user-list-search-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to braze-content-proxy-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to shared-snowplow-consumer-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to v3-proxy-api-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to annotations-api-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to list-api-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to image-api-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to parser-graphql-wrapper-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to account-data-deleter-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to shares-api-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to user-api-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to shareable-lists-api-dev August 27, 2024 22:17 Active
@github-actions github-actions bot deployed to feature-flags-dev August 27, 2024 22:18 Active
schema:
subgraph_url: https://list-api.readitlater.com
parser:
#routing_url: https://parser-graphql-wrapper.readitlater.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reason this one is commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was running it locally against my local parser

collection:
routing_url: https://collection-api.readitlater.com
# schema:
# subgraph_url: https://collection-api.readitlater.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these below commented out due to no introspection?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeppp

@bassrock bassrock merged commit 5689758 into main Aug 28, 2024
196 checks passed
@bassrock bassrock deleted the feat/displayData branch August 28, 2024 21:04
Copy link

sentry-io bot commented Aug 28, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ GraphQLError: Cannot read properties of undefined (reading 'map') POST / View Issue
  • ‼️ GraphQLError: 502: Bad Gateway POST / View Issue
  • ‼️ GraphQLError: no result POST / View Issue

Did you find this useful? React with a 👍 or 👎

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

Successfully merging this pull request may close these issues.

3 participants