FS#54510 - [grafana] Build Javascript

Attached to Project: Community Packages
Opened by Xaver (x-f) - Sunday, 18 June 2017, 18:11 GMT
Last edited by Sébastien Luttringer (seblu) - Wednesday, 06 September 2017, 00:47 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The views/index.html still <!-- build:js and loads every file with a bust hash (current timestamp - no caching possible).

I extracted a build for Debian from packagecloud and JS was build similar to css file.
https://packagecloud.io/grafana/stable

Additional info:
* community/grafana 4.3.2-1


Steps to reproduce:
Install grafana
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Wednesday, 06 September 2017, 00:47 GMT
Reason for closing:  Fixed
Additional comments about closing:  grafana 4.4.3-1
Comment by Sébastien Luttringer (seblu) - Sunday, 25 June 2017, 16:28 GMT
I don't understand what's the problem is.
Comment by Xaver (x-f) - Thursday, 06 July 2017, 07:56 GMT
Currently grafana behaves like development mode. If you open grafana a lot of js files will be loeded with a cache buster timestamp as query string on every reload. Normally Grafana has a build CSS and JS. Single file with a hash. The hash will change on every build/release.
Comment by Sébastien Luttringer (seblu) - Friday, 07 July 2017, 04:23 GMT
Could you propose a fix?
Comment by Xaver (x-f) - Monday, 10 July 2017, 15:41 GMT
I will try to propose a fix. I have an issue building the go part. ld arguments not supported together in sqlite3 part.
Comment by Xaver (x-f) - Tuesday, 11 July 2017, 20:16 GMT
FIX:

diff --git a/repos/community-x86_64/PKGBUILD b/repos/community-x86_64/PKGBUILD
index c335219..a709601 100644
--- a/repos/community-x86_64/PKGBUILD
+++ b/repos/community-x86_64/PKGBUILD
@@ -53,7 +53,7 @@ build() {
export PATH+=":$NPM_CONFIG_PREFIX/bin"
npm install -g yarn
yarn install --pure-lockfile --no-progress
- npm run build
+ npm run build release
}

package() {

Loading...