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

Remove default broken URL added to new courses #8590

Conversation

caesar2164
Copy link
Contributor

New courses created in studio currently have a broken default image added by default.
By removing this URL at creation, it enables the default image set in LMS to display: https://github.com/edx/edx-platform/pull/8282

@openedx-webhooks
Copy link

Thanks for the pull request, @caesar2164! I've created OSPR-662 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams.

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

  • supporting documentation
  • edx-code email 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 still be done via the Github pull request interface. As a reminder, our process documentation is here.

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U needs triage labels Jun 19, 2015
@caesar2164 caesar2164 changed the title Remove default broken URL added to new courses WIP: Remove default broken URL added to new courses Jun 19, 2015
@caesar2164
Copy link
Contributor Author

Somehow I can't believe that removing that image URL broke 468 tests...test this please, Jenkins...

@caesar2164
Copy link
Contributor Author

test this please, 3rd time's the charm?

@sarina
Copy link
Contributor

sarina commented Jun 22, 2015

@caesar2164 when you get in maybe try rebasing it to get a clean build

@@ -682,7 +682,7 @@ class CourseFields(object):
),
scope=Scope.settings,
# Ensure that courses imported from XML keep their image
default="images_course_image.jpg"
default=""
Copy link
Contributor

Choose a reason for hiding this comment

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

The thing is, this will break XML integration so I don't think this is the right way to go. I'm also not sure who's best to ask here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Apparently this note was not explicit enough. This is what I think, but I am not on the TNL team. As mentioned below, I am not qualified to really review this PR and someone in this code area needs to weigh in on this change, and whether or not it is the right way to go.

Copy link
Contributor

Choose a reason for hiding this comment

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

"XML integration" meaning that courses authored in XML have their course image I think at a specific place in their course structure. I don't quite recall how the XML courses work, but I believe we still have XML courses on production and we should evaluate whether or not this change would make it so that XML courses no longer display their course image. If they don't, would this be a problem?

@sarina
Copy link
Contributor

sarina commented Jun 22, 2015

I'm going to triage this to the TNL team to look at. I'm not qualified to be a reviewer on this PR. thanks for understanding!

@caesar2164 caesar2164 force-pushed the giulio/remove-default-image-url-studio branch from 4a4c36b to 079c16e Compare June 22, 2015 17:17
@sarina
Copy link
Contributor

sarina commented Jul 2, 2015

test this please

@caesar2164 caesar2164 force-pushed the giulio/remove-default-image-url-studio branch 2 times, most recently from 7948c10 to 48e867b Compare July 6, 2015 23:10
@cahrens
Copy link

cahrens commented Jul 7, 2015

test this please

@sarina
Copy link
Contributor

sarina commented Jul 7, 2015

@cahrens I've already run a few builds on this, and I think it needs a rebase. However as I said on the OSPR ticket, I'd like your team to evaluate whether or not we want this PR and if the approach is correct, if we do want it. I'm happy to work with Giulio to get a build passing at that point.

@cahrens
Copy link

cahrens commented Jul 7, 2015

My concern is if this one-line change causes a lot of tests to fail, then this can't be the right approach.

@sarina
Copy link
Contributor

sarina commented Jul 7, 2015

Fair point, although I was having a really hard time last week though getting any build to pass (took 5 builds to get a one line change to lms/envs/devstack.py to pass). Rebasing might make it clearer if the issue is with the code or with where master was last week, @caesar2164

@cahrens
Copy link

cahrens commented Jul 7, 2015

I created #8798 on master to see what happens.

@peter-fogg introduced the course_image setting with the default value in #700.

@cahrens
Copy link

cahrens commented Jul 7, 2015

@sarina I got 153 test failures on the PR I created-- https://build.testeng.edx.org/job/edx-platform-all-tests-pr-flow/11362/. The author needs to do more investigation before TNL will review this.

Note that @peter-fogg works here and would be a good person for Giulio to bounce ideas off of.

@sarina
Copy link
Contributor

sarina commented Jul 7, 2015

@cahrens sounds good. Thanks for the input.

@openedx-webhooks openedx-webhooks added the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Jul 7, 2015
@caesar2164 caesar2164 force-pushed the giulio/remove-default-image-url-studio branch 7 times, most recently from 0985a14 to f18554f Compare July 15, 2015 22:12
@caesar2164 caesar2164 force-pushed the giulio/remove-default-image-url-studio branch 2 times, most recently from 4a96fa2 to 9d13f84 Compare July 15, 2015 23:24
@caesar2164 caesar2164 changed the title WIP: Remove default broken URL added to new courses Remove default broken URL added to new courses Jul 16, 2015
@caesar2164 caesar2164 force-pushed the giulio/remove-default-image-url-studio branch 6 times, most recently from b027859 to 61df45b Compare July 20, 2015 22:21
New courses created in studio currently have a missing default image filename added by default.
By removing this filename at creation enables the default image set in LMS to display: https://github.com/edx/edx-platform/pull/8282
@caesar2164 caesar2164 force-pushed the giulio/remove-default-image-url-studio branch from 61df45b to f28a14c Compare July 27, 2015 18:39
@sarina
Copy link
Contributor

sarina commented Jul 28, 2015

Is this PR still being worked on?

1 similar comment
@sarina
Copy link
Contributor

sarina commented Aug 7, 2015

Is this PR still being worked on?

@caesar2164 caesar2164 closed this Aug 7, 2015
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 waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants