yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #28746
[Bug 1424930] Re: Compressing an incorrect scss files
Turns out the scss compiler will do a glob if we set DEBUG = True.
Therefore, it will never get the file from the static folder.
Once DEBUG is set as False, everything works fine.
** Changed in: horizon
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1424930
Title:
Compressing an incorrect scss files
Status in OpenStack Dashboard (Horizon):
Invalid
Bug description:
I was trying to compress the css file with some local changes. Since
it is a local change, I was doing the change under the static folder
(horizon/static) for testing.
But I notice that the changes are not being picked up at all.
Here are the steps to reproduce.
1. Run python manage.py collectstatic --noinput
2. Under horizon/static folder, open up horizon/static/bootstrap/scss/bootstrap/_variables.scss
3. Look for $brand-primary declaration, change the hex value to #000000
4. Run python manage.py compress
5. Under horizon/static/dashboard/css, open up the compressed css file.
6. Look for "btn-primary", you will notice that it is still using the old value but not #000000
I spent some time to debug it and turns out compressor is still
importing the scss file from the xstatic installation package under
the .venv folder.
I tried it on devstack and my local computer and the issue stays the
same.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1424930/+subscriptions
References