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: Profile image on user posts #574

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vladislavkeblysh
Copy link
Contributor

@vladislavkeblysh vladislavkeblysh commented Oct 11, 2023

Description

  • Added profile image on user avatar posts
  • Added env variable to toggle image display

Screenshot 2023-10-11 at 19 01 23

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Oct 11, 2023
@openedx-webhooks
Copy link

openedx-webhooks commented Oct 11, 2023

Thanks for the pull request, @vladislavkeblysh!

What's next?

Please work through the following steps to get your changes ready for engineering review:

🔘 Get product approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.

🔘 Provide context

To help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads

🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

🔘 Let us know that your PR is ready for review:

Who will review my changes?

This repository is currently maintained by @openedx/edx-infinity. Tag them in a comment and let them know that your changes are ready for review.

Where can I find more information?

If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:

When can I expect my changes to be merged?

Our goal is to get community contributions seen and reviewed as efficiently as possible.

However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@vladislavkeblysh vladislavkeblysh marked this pull request as draft October 11, 2023 16:49
@vladislavkeblysh vladislavkeblysh force-pushed the keblysh/feat/user-avatar-master branch from 3c919ed to 1874a20 Compare October 11, 2023 17:02
@vladislavkeblysh vladislavkeblysh changed the title feat: Profile image on user posts (palm.master) feat: Profile image on user posts Oct 11, 2023
@mphilbrick211 mphilbrick211 added the needs test run Author's first PR to this repository, awaiting test authorization from Axim label Oct 11, 2023
@vladislavkeblysh vladislavkeblysh marked this pull request as ready for review October 12, 2023 08:16
@itsjeyd
Copy link

itsjeyd commented Oct 17, 2023

Hey @vladislavkeblysh, thank you for this contribution!

@jmakowski1123 This seems to be a user-facing change, so we would need a feature ticket for it. Could you please create one?

CC @mphilbrick211

@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.18%. Comparing base (3ef8515) to head (a5675d7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #574   +/-   ##
=======================================
  Coverage   93.17%   93.18%           
=======================================
  Files         161      161           
  Lines        3401     3405    +4     
  Branches      919      923    +4     
=======================================
+ Hits         3169     3173    +4     
  Misses        215      215           
  Partials       17       17           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mphilbrick211 mphilbrick211 added product review PR requires product review before merging and removed needs test run Author's first PR to this repository, awaiting test authorization from Axim labels Oct 17, 2023
@itsjeyd
Copy link

itsjeyd commented Nov 2, 2023

@jmakowski1123 When you get a minute could you please create a feature ticket for this PR and the backports listed above?

@itsjeyd
Copy link

itsjeyd commented Nov 17, 2023

@jmakowski1123 @awais-ansari It sounds like product review for this PR has already started (?). If so, could you please point me to where that conversation is happening? It doesn't seem like we have a feature ticket for this PR, so it's hard for me to tell what its current status is.

CC @mphilbrick211

@vladislavkeblysh vladislavkeblysh force-pushed the keblysh/feat/user-avatar-master branch from c01fe70 to 9367409 Compare November 25, 2023 13:46
@itsjeyd
Copy link

itsjeyd commented Nov 29, 2023

@vladislavkeblysh Just to keep you in the loop, we're still working on getting this PR unblocked. The same goes for the other PRs that you opened in this repo (#577 and Palm/Quince backports, #582 and Palm/Quince backports).

CC @mphilbrick211

@awais-ansari
Copy link
Contributor

@vladislavkeblysh @itsjeyd I started a thread on the openEdx slack to speed up the process.
CC: @mphilbrick211

@nedbat
Copy link
Contributor

nedbat commented Dec 1, 2023

I can let Product handle the question in more detail, but my understanding is that some sites don't want this due to privacy concerns, so it may need to be the operator's choice whether to enable it.

@jmakowski1123
Copy link

jmakowski1123 commented Dec 14, 2023

Apologies for the delay. Lots of open questions regarding this PR, please see here: openedx/platform-roadmap#314 (comment)

@itsjeyd
Copy link

itsjeyd commented Dec 14, 2023

Thanks a lot for the update and product feedback @jmakowski1123! 🙂

@vladislavkeblysh Product review will continue via openedx/platform-roadmap#314, the feature ticket for this PR. Please have a look at that ticket when you can and address the questions raised in this comment.

CC @awais-ansari @mphilbrick211

@itsjeyd itsjeyd added the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Dec 14, 2023
@awais-ansari awais-ansari removed the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Jan 11, 2024
@ihor-romaniuk ihor-romaniuk force-pushed the keblysh/feat/user-avatar-master branch from e79030b to f74a297 Compare September 10, 2024 13:32
@dyudyunov dyudyunov force-pushed the keblysh/feat/user-avatar-master branch from f74a297 to 2fc5c21 Compare November 8, 2024 08:31
@ihor-romaniuk ihor-romaniuk force-pushed the keblysh/feat/user-avatar-master branch from 2fc5c21 to e6e8f0c Compare December 3, 2024 09:17
@vladislavkeblysh vladislavkeblysh force-pushed the keblysh/feat/user-avatar-master branch from 3a82ed5 to 07dc9fb Compare December 10, 2024 16:30
@vladislavkeblysh vladislavkeblysh force-pushed the keblysh/feat/user-avatar-master branch from 07dc9fb to f192216 Compare December 10, 2024 16:32
@vladislavkeblysh
Copy link
Contributor Author

Ready to review!

@@ -23,3 +23,4 @@ USER_INFO_COOKIE_NAME='edx-user-info'
SUPPORT_URL='https://support.edx.org'
LEARNER_FEEDBACK_URL=''
STAFF_FEEDBACK_URL=''
ENABLE_PROFILE_IMAGE='true'
Copy link
Contributor

Choose a reason for hiding this comment

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

Disable it by default.

@@ -23,3 +23,4 @@ USER_INFO_COOKIE_NAME='edx-user-info'
SUPPORT_URL='https://support.edx.org'
LEARNER_FEEDBACK_URL=''
STAFF_FEEDBACK_URL=''
ENABLE_PROFILE_IMAGE='true'
Copy link
Contributor

Choose a reason for hiding this comment

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

change it into empty string

@@ -24,6 +27,8 @@ const CommentHeader = ({
closed,
});

const profileImage = getConfig().ENABLE_PROFILE_IMAGE === 'true' && postUsers && Object.values(postUsers)[0].profile.image;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we simplify it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U product review PR requires product review before merging
Projects
Status: Product Review
Development

Successfully merging this pull request may close these issues.

8 participants