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

Fix 🐛 Bug #443 : Play snap is broken: Cover image is not appearing #478

Merged
merged 20 commits into from
Aug 15, 2022

Conversation

Sachin-chaurasiya
Copy link
Member

First thing, PLEASE READ THIS: ReactPlay Code Review Checklist

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

I worked on fixing bug #443, Cover Image is not showing up when there is no cover image for the play in the database.
The fix will work like this,
If the cover is in DB then it will be shown, otherwise, we will look for the cover image in the play folder and if that is available it will be shown else default cover will be shown.

Fixes #443

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

  1. Go to Any play
  2. Copy the Play URL
  3. Now share the Play URL
  4. And see the preview cover

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@vercel
Copy link

vercel bot commented Aug 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-play ✅ Ready (Inspect) Visit Preview Aug 14, 2022 at 7:17PM (UTC)

@Sachin-chaurasiya
Copy link
Member Author

@atapas @koustov, PR is ready for review.

koustov
koustov previously approved these changes Aug 13, 2022
Copy link
Member

@koustov koustov left a comment

Choose a reason for hiding this comment

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

Looks good to me. @atapas can you make this build snap enabled to that we can test.

@atapas
Copy link
Member

atapas commented Aug 13, 2022

Looks good to me. @atapas can you make this build snap enabled to that we can test.

It's already enabled

@atapas
Copy link
Member

atapas commented Aug 13, 2022

Looks good to me. @atapas can you make this build snap enabled to that we can test.

It's already enabled

@Sachin-chaurasiya did you have any success with the test? Codewise, I see all set actually. But when I tested it last time, the image was not showing up. Let's fix it/discuss.

cc: @koustov @Angryman18 please chime in with your ideas.

@Sachin-chaurasiya
Copy link
Member Author

Looks good to me. @atapas can you make this build snap enabled to that we can test.

It's already enabled

@Sachin-chaurasiya did you have any success with the test? Codewise, I see all set actually. But when I tested it last time, the image was not showing up. Let's fix it/discuss.

cc: @koustov @Angryman18 please chime in with your ideas.

Hey @atapas , No success, I tried a few other options too but no luck...

@koustov
Copy link
Member

koustov commented Aug 13, 2022

@Sachin-chaurasiya @atapas, I think I have fixed it. I will check in to this branch instead of a new one.

@Sachin-chaurasiya
Copy link
Member Author

@Sachin-chaurasiya @atapas, I think I have fixed it. I will check in to this branch instead of a new one.

Yeah @koustov, Please go ahead.

atapas
atapas previously approved these changes Aug 14, 2022
Copy link
Member

@atapas atapas left a comment

Choose a reason for hiding this comment

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

LGTM

@koustov do a final review and merge plz.

@koustov
Copy link
Member

koustov commented Aug 14, 2022

@atapas we have some issues with vercel. It builds the meta tag with localhost. I have now modified the PR to work on the prod build NOT the preview build as a stop-gap measurement.
Can you get it merged, and then we can run one round of verification on the prod

@koustov
Copy link
Member

koustov commented Aug 14, 2022

@atapas we have some issues with vercel. It builds the meta tag with localhost. I have now modified the PR to work on the prod build NOT the preview build as a stop-gap measurement. Can you get it merged, and then we can run one round of verification on the prod

image

Copy link
Member

@koustov koustov left a comment

Choose a reason for hiding this comment

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

lgtm

@Sachin-chaurasiya
Copy link
Member Author

@atapas , awaiting for your approval.

@atapas atapas merged commit ffa681d into main Aug 15, 2022
@atapas atapas deleted the issue-443 branch August 15, 2022 00:37
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.

🐛 [Bug report]: Play snap is broken: Cover image is not appearing
3 participants