Merge lp://staging/~stevanr/linaro-android-frontend/textile-view into lp://staging/linaro-android-frontend

Proposed by Stevan Radaković
Status: Merged
Merged at revision: 285
Proposed branch: lp://staging/~stevanr/linaro-android-frontend/textile-view
Merge into: lp://staging/linaro-android-frontend
Diff against target: 0 lines
To merge this branch: bzr merge lp://staging/~stevanr/linaro-android-frontend/textile-view
Reviewer Review Type Date Requested Status
Paul Sokolovsky Approve
Georgy Redkozubov Approve
Linaro Infrastructure Pending
Review via email: mp+130047@code.staging.launchpad.net

Description of the change

Add tabs with predefined files rendering with Textile.
jQuery UI library was used for tabs look&feel.
For file rendering, Javascript implementation of textile was used.

To post a comment you must log in.
Revision history for this message
Stevan Radaković (stevanr) wrote :

Forgot to mention, asac also wanted some of the UI thumbled around, so that's in as well with this MP.

286. By Stevan Radaković

Changing server to staging for testing purposes.

287. By Stevan Radaković

Small fixes.

288. By Stevan Radaković

Small fix with href tag.

289. By Stevan Radaković

Fix tab disappearing.

290. By Stevan Radaković

Fix tab titles.

291. By Stevan Radaković

CSS changes.

292. By Stevan Radaković

Implement fallback wiki links.

293. By Stevan Radaković

Change default font to match the rest of android build page.

294. By Stevan Radaković

Change color for links in textile rendering.

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

-SERVER_JENKINS_URL = 'http://127.0.0.1:9090/jenkins/'
+SERVER_JENKINS_URL = 'http://127.0.0.1:10101/jenkins/'

This looks like debug changes or something to me, the same as r286 (i.e. these changes unlikely can be merged to trunk).

review: Needs Fixing
Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

8 +def get_remote_file_content(request):
9 + try:
10 + return HttpResponse(urllib2.urlopen(request.GET['url']).read())
11 + except:
12 + return HttpResponse("Invalid argument")
13 +

What is being done here is establishing an open public proxy. Just imagine what it can, and will be, abused for - someone will download whole internets via it, others just pr0n or hack fbis. No go.

Just to manage that risk, there's also existing proxy_remote_file() function with the same intent, except that it zealously limits allowed URLs.

review: Approve
Revision history for this message
Paul Sokolovsky (pfalcon) :
review: Needs Fixing
Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

"Approve" is a 2nd message above is by mistake of course, I don't approve of hacking fbis ;-).

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Didn't look in more detail so far, consider 2 issues above serious enough to be addressed first.

Revision history for this message
Georgy Redkozubov (gesha) wrote :

Looks good.

Don't forget to change back
+SERVER_JENKINS_URL = 'http://127.0.0.1:10101/jenkins/'

and
+ var downloadUrl = 'http://staging.snapshots.linaro.org/android/' + rawBuildName + '/' + results.number.toString() + '/';
+ handleRenderedFiles(downloadUrl);

and I suppose the commented lines are unnecessary:
213, 216, 218, 220, 221

review: Approve
Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Another comment I would have is that Android frontend was written using YUI JavaScript framework library. Bringing in another framework library like jQuery is questionable systems design action. I can't really be "against" this, because I'd prefer to use jQuery myself (on the other hand, I was once explained why YUI was used there - it turned out it's kinda standard/best practice to use it in Canonical).

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Otherwise, UI as present at https://ec2-23-20-244-116.compute-1.amazonaws.com/builds/~gesha/staging-publishing-test/ seems to be designed and implemented fine.

So, I consider 2 issues raised above critical, but once fixes, approve from me.

295. By Stevan Radaković

Fixing bloopers pfalcon noted on the code review.

296. By Stevan Radaković

Removing obsolete commented lines.

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Thanks for fixing those!

Approved.

One note though:

    allowed_hosts = ["https?://snapshots.linaro.org/",
284
284
                     "https?://android-build.linaro.org"]

Maybe we want to add staging.snapshots.linaro.org there right away.

review: Approve
297. By Stevan Radaković

Add staging into allowed hosts for proxy files function.

Preview Diff

Empty

Subscribers

People subscribed via source and target branches