Skip to content

fix https://github.com/edx/edx-platform/pull/2566 - #2791

Closed
fmyzjs wants to merge 1 commit into
openedx:masterfrom
fmyzjs:patch-1
Closed

fix https://github.com/edx/edx-platform/pull/2566#2791
fmyzjs wants to merge 1 commit into
openedx:masterfrom
fmyzjs:patch-1

Conversation

@fmyzjs

@fmyzjs fmyzjs commented Mar 3, 2014

Copy link
Copy Markdown
Contributor

@nedbat

nedbat commented Mar 3, 2014

Copy link
Copy Markdown
Contributor

@fmyzjs Can you say more about this? You are referencing a pull request, and say that you have fixed it. What is wrong with it? Who here can review this change? @talbs?

@talbs

talbs commented Mar 3, 2014

Copy link
Copy Markdown
Contributor

@fmyzjs

fmyzjs commented Mar 4, 2014

Copy link
Copy Markdown
Contributor Author

@talbs
css code must be look like - background-image: url('image_url.jpg');
but custome theme sass var must be $homepage-bg-image :'../theme/custometheme/***';

if i change to be $homepage-bg-image :url('…') ; something wrong when i rake it..

if nothing to be done ,css cannot exec something look like homepage-bg-image :'../…/.jpg'

@fmyzjs

fmyzjs commented Mar 4, 2014

Copy link
Copy Markdown
Contributor Author

@talbs you can test it by using Stanford-Online/edx-theme ,homepage-bg-image cannot be found without this commit

@tusbar

tusbar commented Mar 4, 2014

Copy link
Copy Markdown
Contributor

I think it would be a better idea to rename the variable to $homepage-bg, forcing url(...) does not allow to remove the background altogether.

But yeah, I had the same issue with IONISx/edx-theme@c1c181c.

@fmyzjs

fmyzjs commented Mar 4, 2014

Copy link
Copy Markdown
Contributor Author

@tusbar if you changed the var in your custome-theme,the theme will not work ,look like :

failed: [localhost] => (item=lms) => {"changed": true, "cmd": "SERVICE_VARIANT=lms rake lms:gather_assets:aws ", "delta": "0:00:08.545348", "end": "2014-03-04 19:14:54.607203", "item": "lms", "rc": 1, "start": "2014-03-04 19:14:46.061855"}
stderr: mkdir -p /edx/app/edxapp/edx-platform/.ws_migrations_complete
./manage.py lms --settings aws preprocess_assets --traceback
xmodule_assets common/static/xmodule
2014-03-04 06:14:47,112 INFO 5926 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
node_modules/.bin/coffee --compile find lms/ cms/ common/ -type f -name *.coffee
sass --style compressed --cache-location /tmp/sass-cache --load-path ./common/static/sass /edx/app/edxapp/themes/ioc-edx/static/sass --update -E utf-8 */static /edx/app/edxapp/themes/ioc-edx/static/sass
rake aborted!
Command failed with status (1): [sass --style compressed --cache-location /...]
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/file_utils.rb:53:in block in create_shell_runner' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/file_utils.rb:45:incall'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in sh' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:insh'
/edx/app/edxapp/edx-platform/rakelib/assets.rake:87:in block (3 levels) in <top (required)>' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:246:incall'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:246:in block in execute' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:241:ineach'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:241:in execute' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:184:inblock in invoke_with_call_chain'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:177:in invoke_with_call_chain' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:215:inblock (2 levels) in invoke_prerequisites_concurrently'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/promise.rb:63:in call' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/promise.rb:63:inchore'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/promise.rb:45:in work' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/thread_pool.rb:103:inprocess_queue_item'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/thread_pool.rb:117:in block (2 levels) in start_thread' Tasks: TOP => gather_assets => assets => assets:all => assets:sass (See full trace by running task with --trace) stdout: overwrite cms/static/sass/style-app-extend1.css overwrite cms/static/sass/style-app.css overwrite cms/static/sass/style-xmodule.css error lms/static/sass/application-extend1.scss (Line 23: File to import not found or unreadable: ioc-edx. Load paths: /edx/app/edxapp/edx-platform /edx/app/edxapp/edx-platform/common/static/sass /edx/app/edxapp/themes/ioc-edx/static/sass /edx/app/edxapp/edx-platform/cms/static /edx/app/edxapp/edx-platform/common/static /edx/app/edxapp/edx-platform/lms/static /edx/app/edxapp/themes/ioc-edx/static/sass) error lms/static/sass/application-extend2.scss (Line 23: File to import not found or unreadable: ioc-edx. Load paths: /edx/app/edxapp/edx-platform /edx/app/edxapp/edx-platform/common/static/sass /edx/app/edxapp/themes/ioc-edx/static/sass /edx/app/edxapp/edx-platform/cms/static /edx/app/edxapp/edx-platform/common/static /edx/app/edxapp/edx-platform/lms/static /edx/app/edxapp/themes/ioc-edx/static/sass) error lms/static/sass/application.scss (Line 22: File to import not found or unreadable: ioc-edx. Load paths: /edx/app/edxapp/edx-platform /edx/app/edxapp/edx-platform/common/static/sass /edx/app/edxapp/themes/ioc-edx/static/sass /edx/app/edxapp/edx-platform/cms/static /edx/app/edxapp/edx-platform/common/static /edx/app/edxapp/edx-platform/lms/static /edx/app/edxapp/themes/ioc-edx/static/sass) error lms/static/sass/course.scss (Line 14: File to import not found or unreadable: ioc-edx. Load paths: /edx/app/edxapp/edx-platform /edx/app/edxapp/edx-platform/common/static/sass /edx/app/edxapp/themes/ioc-edx/static/sass /edx/app/edxapp/edx-platform/cms/static /edx/app/edxapp/edx-platform/common/static /edx/app/edxapp/edx-platform/lms/static /edx/app/edxapp/themes/ioc-edx/static/sass) overwrite lms/static/sass/ie.css failed: [localhost] => (item=cms) => {"changed": true, "cmd": "SERVICE_VARIANT=cms rake cms:gather_assets:aws ", "delta": "0:00:08.036896", "end": "2014-03-04 19:15:02.766310", "item": "cms", "rc": 1, "start": "2014-03-04 19:14:54.729414"} stderr: ./manage.py cms --settings aws preprocess_assets --traceback xmodule_assets common/static/xmodule 2014-03-04 06:14:55,576 INFO 6003 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125 sass --style compressed --cache-location /tmp/sass-cache --load-path ./common/static/sass /edx/app/edxapp/themes/ioc-edx/static/sass --update -E utf-8 */static /edx/app/edxapp/themes/ioc-edx/static/sass node_modules/.bin/coffee --compilefind lms/ cms/ common/ -type f -name *.coffee rake aborted! Command failed with status (1): [sass --style compressed --cache-location /...] /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/file_utils.rb:53:inblock in create_shell_runner'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in call' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/file_utils.rb:45:insh'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in sh' /edx/app/edxapp/edx-platform/rakelib/assets.rake:87:inblock (3 levels) in <top (required)>'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:246:in call' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:246:inblock in execute'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:241:in each' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:241:inexecute'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:184:in block in invoke_with_call_chain' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:177:ininvoke_with_call_chain'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/task.rb:215:in block (2 levels) in invoke_prerequisites_concurrently' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/promise.rb:63:incall'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/promise.rb:63:in chore' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/promise.rb:45:inwork'
/edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/thread_pool.rb:103:in process_queue_item' /edx/app/edxapp/.gem/gems/rake-10.0.4/lib/rake/thread_pool.rb:117:inblock (2 levels) in start_thread'
Tasks: TOP => gather_assets => assets => assets:all => assets:sass
(See full trace by running task with --trace)
stdout: error lms/static/sass/application-extend1.scss (Line 23: File to import not found or unreadable: ioc-edx.
Load paths:
/edx/app/edxapp/edx-platform
/edx/app/edxapp/edx-platform/common/static/sass
/edx/app/edxapp/themes/ioc-edx/static/sass
/edx/app/edxapp/edx-platform/cms/static
/edx/app/edxapp/edx-platform/common/static
/edx/app/edxapp/edx-platform/lms/static
/edx/app/edxapp/themes/ioc-edx/static/sass)
error lms/static/sass/application-extend2.scss (Line 23: File to import not found or unreadable: ioc-edx.
Load paths:
/edx/app/edxapp/edx-platform
/edx/app/edxapp/edx-platform/common/static/sass
/edx/app/edxapp/themes/ioc-edx/static/sass
/edx/app/edxapp/edx-platform/cms/static
/edx/app/edxapp/edx-platform/common/static
/edx/app/edxapp/edx-platform/lms/static
/edx/app/edxapp/themes/ioc-edx/static/sass)
error lms/static/sass/application.scss (Line 22: File to import not found or unreadable: ioc-edx.
Load paths:
/edx/app/edxapp/edx-platform
/edx/app/edxapp/edx-platform/common/static/sass
/edx/app/edxapp/themes/ioc-edx/static/sass
/edx/app/edxapp/edx-platform/cms/static
/edx/app/edxapp/edx-platform/common/static
/edx/app/edxapp/edx-platform/lms/static
/edx/app/edxapp/themes/ioc-edx/static/sass)
error lms/static/sass/course.scss (Line 14: File to import not found or unreadable: ioc-edx.
Load paths:
/edx/app/edxapp/edx-platform
/edx/app/edxapp/edx-platform/common/static/sass
/edx/app/edxapp/themes/ioc-edx/static/sass
/edx/app/edxapp/edx-platform/cms/static
/edx/app/edxapp/edx-platform/common/static
/edx/app/edxapp/edx-platform/lms/static
/edx/app/edxapp/themes/ioc-edx/static/sass)

FATAL: all hosts have already failed -- aborting

@talbs

talbs commented Mar 4, 2014

Copy link
Copy Markdown
Contributor

@tusbar and @fmyzjs, thanks for the info. I think @tusbar's suggestion (below) of renaming the Sass variable. That seems to address all of the rendering cases we have on the table, including:

  • using gradients (with Bourbon or native syntax)
  • adding in a background-image (with an option for a background-color)
  • using a plain background-color value

I think it would be a better idea to rename the variable to $homepage-bg, forcing url(...) does not allow to remove the background altogether.

How does that sound? If its agreeable, then I'm happy to review it as part of this pull request or in another.

@fmyzjs

fmyzjs commented Mar 5, 2014

Copy link
Copy Markdown
Contributor Author

Thank you.I got it

@nedbat

nedbat commented Mar 12, 2014

Copy link
Copy Markdown
Contributor

@fmyzjs Have you signed a contributor's agreement? http://code.edx.org/individual-contributor-agreement.pdf
What is the status of this pull request? Is it still be reviewed for merging, or has the work moved somewhere else?

@singingwolfboy

Copy link
Copy Markdown
Contributor

@fmyzjs We haven't heard from you, and it sounds like this pull request needs more work before it can be merged. We'd love to get this fix into the project, but we can't if you don't respond to our comments. Unless you get back to this soon and address some of this comments, we're going to have to close this pull request.

@fmyzjs
fmyzjs deleted the patch-1 branch May 15, 2014 01:17
rmoch added a commit to openfun/edx-platform that referenced this pull request Apr 29, 2016
regisb pushed a commit to openfun/edx-platform that referenced this pull request May 9, 2016
regisb pushed a commit to openfun/edx-platform that referenced this pull request May 26, 2016
Fork edx-platform to allow usage of ecommerce service and Paybox:
     - ecommerce code is not compatible with Cypress regarding the JWT authentification, so we use new dependency edx_rest_api_client (added to fun-apps requirements) to auth
     - Display prices in Euro currency
     - Alphabeticaly order Paybox fields to ensure they are posted in the same order they were signed where created
     - Change edX payement related wording for our own

Related to issues openedx#1831 openedx#2637 openedx#2636 openedx#2635 openedx#2656 openedx#2644 openedx#2662 openedx#2712 openedx#2705 openedx#1831 openedx#2788 openedx#2791 openedx#2863
rmoch added a commit to openfun/edx-platform that referenced this pull request Aug 26, 2016
Fork edx-platform to allow usage of ecommerce service and Paybox:
     - ecommerce code is not compatible with Cypress regarding the JWT authentification, so we use new dependency edx_rest_api_client (added to fun-apps requirements) to auth
     - Display prices in Euro currency
     - Alphabeticaly order Paybox fields to ensure they are posted in the same order they were signed where created
     - Change edX payement related wording for our own

Related to issues openedx#1831 openedx#2637 openedx#2636 openedx#2635 openedx#2656 openedx#2644 openedx#2662 openedx#2712 openedx#2705 openedx#1831 openedx#2788 openedx#2791 openedx#2863
Dogwood openedx#3116
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants