cloudera / hue

Open source SQL Query Assistant service for Databases/Warehouses
https://cloudera.com
Apache License 2.0
1.17k stars 368 forks source link

hue-search: truncate function doesn't work anymore #82

Closed raphi closed 10 years ago

raphi commented 10 years ago

In the Search app (master version), I'm using a custom HTML template with the truncate250 / truncate100 functions. However, the displayed results are not truncated anymore (it was working well with hue 3.5.0 from CDH 5.0.1).

Example: {{#truncate250}}{{description}}{{/truncate250}}

Result (577 characters): The acDevSoftware company is specialized in the development of software solutions in the industrial , financial and scientifical fields. It develops and sells products: - acZoomIn, software that allows to visualize scalar, vectorial or any data in 3 dimensions in a given spatial time. - acSCAM, framework to control devices and acquire data. It develops some free applications/tools: - acTelerikStylesAssembly: Application that generates an assembly of skins for the product ASP.NET AJAX of Telerik. - acWSAT.net: ASPNET website administration tool, to manage users and roles.

PS: it would be great if we could have truncateX where X is whatever number we'd like

romainr commented 10 years ago

Created https://issues.cloudera.org/browse/HUE-2190

romainr commented 10 years ago

Fixed! https://issues.cloudera.org/browse/HUE-2190

raphi commented 10 years ago

perfect it works thank you