Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

fix!: fix course detail page url bug #4033

Conversation

Faraz32123
Copy link

Opened this PR with a fix that @regisb suggested for this issue.

@Faraz32123 Faraz32123 requested a review from a team as a code owner September 25, 2023 10:52
@Faraz32123 Faraz32123 force-pushed the fix/fix_course_detail_page_url_issue branch from 4a6a4a4 to 078abaa Compare September 25, 2023 11:12
@Faraz32123 Faraz32123 force-pushed the fix/fix_course_detail_page_url_issue branch 2 times, most recently from 05838de to b3ec527 Compare September 25, 2023 14:01
@antoviaque
Copy link

@mphilbrick211 @regisb Following up on the discussion from https://discuss.openedx.org/t/contributors-meetup-async-update-september-2nd-2023-september-15th-2023/11185/19 as suggested

I don’t think we’d want to convert it if it’s not truly open-source, as there’s lots of PRs worked on by 2U and the community. It might be better to communicate directly with the person who needs to review it.

@regisb You mentioned that this is should actually be an OSPR - is it because it originates from you, or that @Faraz32123 you meant to open this as an OSPR?

@regisb
Copy link
Contributor

regisb commented Nov 8, 2023

I'm not sure what is meant by "truly open source". If the question is whether this PR was opened on behalf of 2U, then no, that's not the case. Faraz is making this contribution on behalf of Edly, to resolve a problem for the community. For all means and purposes, this PR can be considered as a free, open source contribution.

Is there a bigger context that I am missing here? Would there be the same question if I had opened the PR myself?

@antoviaque
Copy link

@regisb

Is there a bigger context that I am missing here? Would there be the same question if I had opened the PR myself?

As far as I understand that's what created the confusion yes - but @mphilbrick211 might be able to confirm.

@mphilbrick211 mphilbrick211 added open-source-contribution PR author is not from Axim or 2U needs test run Author's first PR to this repository, awaiting test authorization from Axim labels Nov 14, 2023
@mphilbrick211
Copy link

@antoviaque @Faraz32123 - I checked in on this with Ned B. to see if there was an issue with the bot. We don't see any issues, so suspect maybe there was a brief outage and this pull request never got labeled. I've added it to the contributions board now.

@mphilbrick211 mphilbrick211 removed the needs test run Author's first PR to this repository, awaiting test authorization from Axim label Nov 20, 2023
@mphilbrick211
Copy link

Hi @Faraz32123! Looks like there's a failing check. Would you mind taking a look?

@regisb
Copy link
Contributor

regisb commented Nov 21, 2023

I'm pretty sure that the build issue has nothing to do with the changes in this PR: https://readthedocs.org/projects/edx-ecommerce/builds/22486927/ @Faraz32123 you should just have to rebase your changes on top of master to fix the build.

@Faraz32123 Faraz32123 force-pushed the fix/fix_course_detail_page_url_issue branch from 46bd190 to e4461c3 Compare November 21, 2023 13:09
@mphilbrick211 mphilbrick211 added the needs test run Author's first PR to this repository, awaiting test authorization from Axim label Dec 11, 2023
@e0d e0d removed the needs test run Author's first PR to this repository, awaiting test authorization from Axim label Dec 14, 2023
@mphilbrick211 mphilbrick211 added waiting for eng review PR is ready for review. Review and merge it, or suggest changes. and removed waiting for eng review PR is ready for review. Review and merge it, or suggest changes. labels Dec 14, 2023
@regisb
Copy link
Contributor

regisb commented Mar 21, 2024

@Faraz32123 what's the status of this PR? Can you please rebase on top of master?

Muhammad Faraz Maqsood and others added 2 commits March 21, 2024 15:40
fix course detail page url as after creating a course, its detail page was not accessible and showing nothing.
The course page was unavailable when the course run includes a dot, as a result it's url was mismatching and it is fixed by adding the trailing slash "/" to the url.

Here's the link to the initial GitHub issue: openedx/wg-build-test-release#301
@Faraz32123 Faraz32123 force-pushed the fix/fix_course_detail_page_url_issue branch from e4461c3 to 5b1fde3 Compare March 21, 2024 10:40
@@ -31,6 +31,11 @@ define([

return Backbone.RelationalModel.extend({
urlRoot: '/api/v2/courses/',
// course detail page url was not matching because of missing trailing slash,
// with thi function, trailing slash will be added to match the url
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// with thi function, trailing slash will be added to match the url
// with this function, trailing slash will be added to match the url

@feanil
Copy link
Contributor

feanil commented Apr 26, 2024

@Faraz32123 a small grammar change that I can't make to your PR but if you accept that, I can merge this.

@mariajgrimaldi
Copy link

@feanil: is there something we can do to merge this or should we close the PR considering it'd archived?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants