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

THEMES-1907: Sign Author Images #263

Merged
merged 9 commits into from
May 17, 2024

Conversation

rmbrntt
Copy link
Contributor

@rmbrntt rmbrntt commented May 3, 2024

Description

Added an additional check in signImagesInANSObject against author ANS to handle the image url as an external image to sign.

Jira Ticket: THEMES-1907

Proof

Before

content-api
image

After

content-api
image
story-feed-query
image
author-api
image

Test Steps

Add detailed test steps a reviewer must complete to test this PR

  1. Checkout this branch - git checkout sign-author-images
  2. Query a story in debugger like /travel/2022/12/15/get-ahead-on-holiday-travel/ http://localhost/pagebuilder/tools/debugger?_website=the-gazette&type=content-debugger&source=content-api&config=%7B%22website_url%22:%22/travel/2022/12/15/get-ahead-on-holiday-travel/%22%7D
  3. Confirm the author image object now has an auth key on it.
  4. Make the same query on sandbox to compare that it does not exist https://sandbox.themesinternal.arcpublishing.com/pagebuilder/tools/debugger?_website=the-gazette&type=content-debugger&source=content-api&config=%7B%22website_url%22:%22/travel/2022/12/15/get-ahead-on-holiday-travel/%22%7D

To actually test this all the way through, we need to make an update to the author blocks as they aren't expecting to pass in the resize params or ANS image that the Image component expects. That'll be a separate PR

Note

We duplicated resizer code into feed-components which means we should also have this logic included there.

@rmbrntt rmbrntt requested a review from a team as a code owner May 3, 2024 14:03
@rmbrntt rmbrntt force-pushed the sign-author-images branch from 6f74b8e to 9c03b9c Compare May 3, 2024 15:11
rmbrntt and others added 2 commits May 3, 2024 11:22
* pull out transform logic

* remove redundant

* lint fix

* Clean up test data

* Remove Console log
Copy link
Contributor

@vgalatro vgalatro left a comment

Choose a reason for hiding this comment

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

LGTM!

@nschubach
Copy link
Contributor

Before merging, please be sure #266 is merged

* THEMES-1916: Add Additional author object image type

* lint fix
@nschubach nschubach changed the base branch from arc-themes-release-version-2.3.1 to arc-themes-release-version-2.4.0 May 14, 2024 15:16
@rmbrntt
Copy link
Contributor Author

rmbrntt commented May 15, 2024

feel free to merge this when it's good to go

@nschubach nschubach merged commit 3069400 into arc-themes-release-version-2.4.0 May 17, 2024
7 checks passed
@nschubach nschubach deleted the sign-author-images branch May 17, 2024 15:49
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