42 Commits

Author SHA1 Message Date
Go MAEDA
1d46be8b0f Fix CSV import file encoding auto-detection failure with multibyte characters (#41464).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23150 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-20 06:47:28 +00:00
Go MAEDA
635e31a952 Add missing fixture file intended for r22440 (#39511).
git-svn-id: https://svn.redmine.org/redmine/trunk@22453 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-11-17 06:54:17 +00:00
Marius Balteanu
3e9f0023a1 Fix import with issue relations and invalid issues hangs without any error message in UI (#35656).
git-svn-id: http://svn.redmine.org/redmine/trunk@21422 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-20 18:12:42 +00:00
Go MAEDA
d496d8c4ed Rename test/fixtures/configuration/*.yml.example to test/fixtures/files/configuration/*.yml (#35466).
git-svn-id: http://svn.redmine.org/redmine/trunk@21067 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-10 08:47:19 +00:00
Go MAEDA
685bfdd8ff Reject CSV file without data row when importing (#35137).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21041 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-06-20 13:25:10 +00:00
Go MAEDA
d67ed93f39 Allow Unique ID and relation fields to be auto mapped (#35131).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20968 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-23 03:53:53 +00:00
Go MAEDA
72d622dc9f Display more detailed error message when attempting to import malformed CSV file (#34762).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20756 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-02-27 07:46:35 +00:00
Go MAEDA
135fd7b79f CSV import raises an exception if CSV header has empty columns (#22913, #34326).
git-svn-id: http://svn.redmine.org/redmine/trunk@20576 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-05 00:21:15 +00:00
Go MAEDA
ebf5d219c9 Import user accounts from CSV file (#33102).
Patch by Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@19799 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-05-30 04:53:24 +00:00
Go MAEDA
43cc93755a Support issue relations when importing issues (#28198).
Patch by Gregor Schmidt and Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19753 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-05-06 00:37:56 +00:00
Go MAEDA
efbfc76161 Auto select fields mapping in import based on the internal field name (ex: estimared_hours, fixed_version, spent_on) or field label (Estimated hours, Version, Date) (#22913).
* mappings are case insensitive
* a field is auto mapped only if there is no mapping setting present for that field
* "Current user" default value for User field when the user has permission to log time for other users is override by the auto mapped column

Patch by Haihan Ji, Yuichi HARADA, and Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19524 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-19 14:52:02 +00:00
Go MAEDA
4d341f0f14 Use 'user' as internal field instead of user_id because the column accepts also user login as value, not only the id (#22913).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19523 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-19 14:31:39 +00:00
Jean-Philippe Lang
a7ffe39289 Identify time entry user just like issue assignee (#32196).
git-svn-id: http://svn.redmine.org/redmine/trunk@18891 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-02 11:51:53 +00:00
Jean-Philippe Lang
3afd17f83e Allow import time entries for other users (#32196).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18890 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-02 08:23:35 +00:00
Go MAEDA
3ce678510e Render Textile and Markdown attachments on the preview page (#29752).
Patch by Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@18584 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-03 00:09:28 +00:00
Jean-Philippe Lang
638dbbea95 Support external ID when importing issues (#28213).
Patch by Gregor Schmidt and Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18285 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 08:17:19 +00:00
Go MAEDA
820cbe618e Support "YYYY/MM/DD" date format when importing issues (#31450).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18205 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-30 00:35:10 +00:00
Go MAEDA
96b6bdfb77 Test for r18158 (#22481).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18159 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-12 05:43:50 +00:00
Go MAEDA
6fd9d9ed73 Import time entries (#28234).
Patch by Gregor Schmidt.


git-svn-id: http://svn.redmine.org/redmine/trunk@18146 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-09 08:05:37 +00:00
Go MAEDA
400e1ca2ff Attachment preview does not work for some source files such as JavaScript and Go (#29259).
Patch by Go MAEDA with the help of Stephan Wenzel's contribution.


git-svn-id: http://svn.redmine.org/redmine/trunk@18122 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-04 09:32:05 +00:00
Go MAEDA
6732ce9a93 Fix that Content-Type header field is empty when sending a file of unknown type (#31275).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18098 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-30 01:37:25 +00:00
Go MAEDA
b900ae6107 Support frozen_string_literal in test/**/*.rb (#26561).
Contributed by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17996 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-21 03:27:53 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Go MAEDA
4139b36011 Add a fixture for r17786 (#30412).
git-svn-id: http://svn.redmine.org/redmine/trunk@17787 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-01-12 00:59:22 +00:00
Jean-Philippe Lang
1ff3e91033 Adds a test for importing list custom fields with multiple values (#26148).
git-svn-id: http://svn.redmine.org/redmine/trunk@16837 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-19 17:07:13 +00:00
Jean-Philippe Lang
ccb9d4ada9 Rescue any EncodingError exceptions (#25861).
git-svn-id: http://svn.redmine.org/redmine/trunk@16572 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 08:40:39 +00:00
Jean-Philippe Lang
9c645719ee Allow forward reference to parent when importing issues (#22701).
git-svn-id: http://svn.redmine.org/redmine/trunk@16241 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-21 09:08:40 +00:00
Jean-Philippe Lang
f6754a0f7a Make Status map-able for CSV import (#22951).
git-svn-id: http://svn.redmine.org/redmine/trunk@15493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-07 18:39:44 +00:00
Jean-Philippe Lang
e3875ffd57 Make Tracker map-able for CSV import (#22951).
git-svn-id: http://svn.redmine.org/redmine/trunk@15490 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-07 18:23:42 +00:00
Jean-Philippe Lang
81b681764a Add column estimated_hours for CSV import (#21867).
Patch by Yuichi Masumiya.

git-svn-id: http://svn.redmine.org/redmine/trunk@15131 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-30 15:19:04 +00:00
Jean-Philippe Lang
212f7ffe58 Use same logic for finding user when importing a file (#950).
git-svn-id: http://svn.redmine.org/redmine/trunk@14501 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-15 07:06:43 +00:00
Jean-Philippe Lang
722eaed721 Adds support for custom date format when importing a CSV file (#950).
git-svn-id: http://svn.redmine.org/redmine/trunk@14495 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-14 15:42:28 +00:00
Jean-Philippe Lang
035edd39c4 Import issues from CSV file (#950).
git-svn-id: http://svn.redmine.org/redmine/trunk@14493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-14 08:20:32 +00:00
Jean-Philippe Lang
c99b638d61 Store attachments in subdirectories (#5298).
Existing files can be moved to their target subdirectories using rake redmine:attachments:move_to_subdirectories.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10990 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-13 12:07:19 +00:00
Toshi MARUYAMA
551c024b45 add functional attachment test of mercurial export file (#11868)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10429 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-09-19 03:02:03 +00:00
Toshi MARUYAMA
627dfd80b6 add unit application helper test to use latest image file (#3261)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7907 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-24 03:34:57 +00:00
Toshi MARUYAMA
fdf6e8547b attachment: add a functional test to show invalid UTF-8 text file (#2371)
Stripping invalid UTF-8 is Redmine 1.2 behaviour.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7824 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-17 07:01:40 +00:00
Toshi MARUYAMA
67bc801abc attachment: add a functional test to show UTF-8 text file (#2371)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7823 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-17 07:00:30 +00:00
Jean-Philippe Lang
488285e123 Strip non utf8 content when displaying diff (ruby1.9 compatibility).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4604 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-01 13:40:36 +00:00
Jean-Philippe Lang
93c04f2666 Fixed: wrong digest for text files under Windows (#2264).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2085 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-12-02 17:57:13 +00:00
Jean-Philippe Lang
80a7486f95 File viewer for attached text files.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1520 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-06-09 18:40:59 +00:00
Jean-Philippe Lang
5a241fd12e file upload test now uses ActionController::TestUploadedFile
git-svn-id: http://redmine.rubyforge.org/svn/trunk@251 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-02-18 11:41:39 +00:00