Skip to content

fix: share urls in course about page#30389

Merged
rgraber merged 1 commit intoopenedx:masterfrom
ghassanmas:sharelinks-course-about
May 31, 2022
Merged

fix: share urls in course about page#30389
rgraber merged 1 commit intoopenedx:masterfrom
ghassanmas:sharelinks-course-about

Conversation

@ghassanmas
Copy link
Member

Description

This commit does few changes fixes for the course_about_sidebar_template

Supporting information

Go to course about page and share via facebook.
Before it would link to https://www.facebook.com/YourPlatformFacebookAccount which event if the settings platform account is set, it wouldn't make a shareable expirence, add to that it assume that in order to share to facebook, the platform or the course must have a facebook account.

After applying this change it would use the official way of creating a fasebook share url:

https://www.facebook.com/sharer/sharer.php?u=course_url

Testing instructions

Please provide detailed step-by-step instructions for testing this change.

Deadline

Before Nutmeg release, (need to be cherry-picked to nutmeg once approaved/merged).

@openedx-webhooks openedx-webhooks added needs triage open-source-contribution PR author is not from Axim or 2U labels May 14, 2022
@openedx-webhooks
Copy link

Thanks for the pull request, @ghassanmas! I've created OSPR-6680 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@ghassanmas
Copy link
Member Author

This ready for review, hopefully should be resolved by nutmeg

@natabene
Copy link
Contributor

@jmbowman This is ready for your team's review.

Copy link
Contributor

@rgraber rgraber left a comment

Choose a reason for hiding this comment

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

Hello! No major content issues, but a few questions and please fix the whitespace changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why this removal?

Copy link
Member Author

@ghassanmas ghassanmas May 23, 2022

Choose a reason for hiding this comment

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

I removed because its confusing or lets say unusual to have the ':' char after mentioning an account on twitter.
Before applying this change the generated tweet would like:
I just enrolled ..etc through @platformtwitteraccount: https..etc and after it's I just enrolled ..etc through @platformtwitteraccount https..etc

Copy link
Member Author

Choose a reason for hiding this comment

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

@rgraber is it okay now to merge, or do you still have notes? Since nutmeg is going to be released in a couple of days

Copy link
Contributor

Choose a reason for hiding this comment

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

Reviewing again now

Copy link
Contributor

Choose a reason for hiding this comment

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

where is this value passed in? can it be removed completely from there?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's passed as a href for for that tag below

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry, confusing comment. what i meant was can we delete course_about_facebook_link from wherever it originates now? or is it used elsewhre?

Copy link
Member Author

@ghassanmas ghassanmas May 23, 2022

Choose a reason for hiding this comment

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

I don't think its defined somewhere... It tries to get it first from site configuration if its enabled, and (if not or if its not defined in site configuration) it will then cascade/default to settings.PLATFORM_FACEBOOK_ACCOUNT.

Copy link
Member Author

@ghassanmas ghassanmas May 23, 2022

Choose a reason for hiding this comment

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

@rgraber rgraber self-assigned this May 20, 2022
@ghassanmas ghassanmas force-pushed the sharelinks-course-about branch 2 times, most recently from c350cbf to 049691f Compare May 23, 2022 10:14
  This commit does few changes fixes for the course_about_sidebar_template
  - It fixes incorrect share url ref: openedx/wg-build-test-release/issues/174
  - It changes the icon for facebook instead of thumb up to faceboook logo
  - It remove redundancy in getting course about page url.

squash
@ghassanmas ghassanmas force-pushed the sharelinks-course-about branch from 049691f to 8036ee7 Compare May 23, 2022 10:26
@ghassanmas ghassanmas requested a review from rgraber May 23, 2022 10:35
@DeanJayMathew
Copy link

Thank you so much @ghassanmas and all reviewers. This has been an issue in Open edX for, dare I say, over a year.

Copy link
Contributor

@rgraber rgraber left a comment

Choose a reason for hiding this comment

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

LGTM

@rgraber rgraber merged commit 0874ccf into openedx:master May 31, 2022
@openedx-webhooks
Copy link

@ghassanmas 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been rolled back from the production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been rolled back from the production environment.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

ghassanmas added a commit to ghassanmas/edx-platform that referenced this pull request Jun 7, 2022
giovannicimolin added a commit that referenced this pull request Jun 8, 2022
fix: share urls in course about page (#30389)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged open-source-contribution PR author is not from Axim or 2U

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants