gtt-project / redmine_gtt_print

Plugin to add printing (with maps) to GTT
GNU General Public License v3.0
1 stars 2 forks source link

Support attachments datasource #26

Closed sanak closed 1 year ago

sanak commented 1 year ago

Supports #12, #27

Changes proposed in this pull request:

@gtt-project/maintainer

sanak commented 1 year ago

For some reason, I had to comment out thumbnail_url (https://github.com/gtt-project/redmine_gtt_print/pull/26/commits/8a228b24405978cdb2a9ec1032ffef6227be0dc8, https://github.com/gtt-project/redmine_gtt_print/pull/26/commits/532f56b897710c211d6142e9a3efe7bca39a04b3) to pass attachment category attributes to MapFish Print side.

Before comment out MapFish Print docker log => attachment_category_name and attachment_category_html_color are missing

mfp-config-mapfish-1  |         * tableDataSource (net.sf.jasperreports.engine.data.JRMapCollectionDataSource)
mfp-config-mapfish-1  |           - This value is a Jasper Reports DataSource and thus can be passed to a subtemplate as a DataSource and used in the subtemplate's detail band.
mfp-config-mapfish-1  |           - This DataSource contains the following columns (All rows are analyzed for their columns, thus each row may only have a subset of the columns)
mfp-config-mapfish-1  |             * author_name (java.lang.Integer)
mfp-config-mapfish-1  |             * filename (java.lang.String)
mfp-config-mapfish-1  |             * content_type (java.lang.String)
mfp-config-mapfish-1  |             * created_on (java.lang.String)
mfp-config-mapfish-1  |             * attachment_category_id (java.lang.String)
mfp-config-mapfish-1  |             * description (java.lang.String)
mfp-config-mapfish-1  |             * content_url (java.lang.String)
mfp-config-mapfish-1  |             * id (java.lang.Integer)
mfp-config-mapfish-1  |             * filesize (java.lang.Integer)
mfp-config-mapfish-1  |             * thumbnail_url (java.lang.String)
mfp-config-mapfish-1  |             * author_id (java.lang.String)
mfp-config-mapfish-1  |         * SUBREPORT_DIR (java.lang.String)

After comment out MapFish Print docker log => attachment_category_name and attachment_category_html_color are included

mfp-config-mapfish-1  |         * tableDataSource (net.sf.jasperreports.engine.data.JRMapCollectionDataSource)
mfp-config-mapfish-1  |           - This value is a Jasper Reports DataSource and thus can be passed to a subtemplate as a DataSource and used in the subtemplate's detail band.
mfp-config-mapfish-1  |           - This DataSource contains the following columns (All rows are analyzed for their columns, thus each row may only have a subset of the columns)
mfp-config-mapfish-1  |             * author_name (java.lang.String)
mfp-config-mapfish-1  |             * attachment_category_html_color (java.lang.String)
mfp-config-mapfish-1  |             * filename (java.lang.String)
mfp-config-mapfish-1  |             * content_type (java.lang.String)
mfp-config-mapfish-1  |             * attachment_category_name (java.lang.String)
mfp-config-mapfish-1  |             * created_on (java.lang.String)
mfp-config-mapfish-1  |             * attachment_category_id (java.lang.Integer)
mfp-config-mapfish-1  |             * description (java.lang.String)
mfp-config-mapfish-1  |             * content_url (java.lang.String)
mfp-config-mapfish-1  |             * id (java.lang.Integer)
mfp-config-mapfish-1  |             * filesize (java.lang.Integer)
mfp-config-mapfish-1  |             * author_id (java.lang.Integer)
mfp-config-mapfish-1  |         * SUBREPORT_DIR (java.lang.String)
sanak commented 1 year ago

@mopinfish (CC: @dkastl) Well, I will merge this, once.