Permalink
Browse files

chg: Fixtures adapted for Redmine 1.2

  • Loading branch information...
Sven Krzyzak
Sven Krzyzak committed Jul 17, 2011
1 parent 0e4cf2f commit a65e9602fba725312baa6a0d63c9d070be257574
@@ -32,7 +32,7 @@ xml.issue({:id => issue.id, :editAllowed => edit_allowed?(issue)}.merge(attr||={
xml.categoryId issue.category_id if issue.category_id
xml.assignedToId issue.assigned_to_id if issue.assigned_to_id
xml.fixedVersionId issue.fixed_version_id if issue.fixed_version_id
- xml.parentId issue.parent_id if is10? && issue.parent_id
+ xml.parentId issue.parent_id if is1dot0? && issue.parent_id
xml.availableStatus integer_list(available_status(issue))
@@ -2,7 +2,7 @@ module MylynConnector
module Version
MAJOR = 2
MINOR = 7
- TINY = 2
+ TINY = 3
# stable/trunk
BRANCH = 'stable'
@@ -24,14 +24,17 @@ def self.redmine_release; REDMINE end
module ClassMethods
- def is09?
- MylynConnector::Version.redmine_release.to_f >=0.9
+ def is1dot0?
+ MylynConnector::Version.redmine_release.to_f == 1.0 || MylynConnector::Version.redmine_release.to_f == 0.9 && Redmine::VERSION.to_s.include?('devel')
end
- def is10?
- MylynConnector::Version.redmine_release.to_f >=1.0 || is09? && Redmine::VERSION.to_s.include?('devel')
+ def is1dot1?
+ MylynConnector::Version.redmine_release.to_f == 1.1 || MylynConnector::Version.redmine_release.to_f == 1.0 && Redmine::VERSION.to_s.include?('devel')
end
+ def is1dot2?
+ MylynConnector::Version.redmine_release.to_f == 1.2 || MylynConnector::Version.redmine_release.to_f == 1.1 && Redmine::VERSION.to_s.include?('devel')
+ end
end
end
View
@@ -1,3 +1,6 @@
+Version 2.7.3
+ chg : Fixtures adapted for Redmine 1.2
+
Version 2.7.2
bugfix: Missing support for manipulation of issue watchers
add : Testpage for HTTP-Basic-Auth
@@ -0,0 +1,159 @@
+---
+custom_fields_001:
+ name: Database
+ min_length: 0
+ regexp: ""
+ is_for_all: true
+ is_filter: true
+ type: IssueCustomField
+ max_length: 0
+ possible_values:
+ - MySQL
+ - PostgreSQL
+ - Oracle
+ id: 1
+ is_required: false
+ field_format: list
+ default_value: ""
+ editable: true
+custom_fields_002:
+ name: Searchable field
+ min_length: 1
+ regexp: ""
+ is_for_all: true
+ type: IssueCustomField
+ max_length: 100
+ possible_values: ""
+ id: 2
+ is_required: false
+ field_format: string
+ searchable: true
+ default_value: "Default string"
+ editable: true
+custom_fields_003:
+ name: Development status
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ is_filter: true
+ type: ProjectCustomField
+ max_length: 0
+ possible_values:
+ - Stable
+ - Beta
+ - Alpha
+ - Planning
+ id: 3
+ is_required: true
+ field_format: list
+ default_value: ""
+ editable: true
+custom_fields_004:
+ name: Phone number
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ type: UserCustomField
+ max_length: 0
+ possible_values: ""
+ id: 4
+ is_required: false
+ field_format: string
+ default_value: ""
+ editable: true
+custom_fields_005:
+ name: Money
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ type: UserCustomField
+ max_length: 0
+ possible_values: ""
+ id: 5
+ is_required: false
+ field_format: float
+ default_value: ""
+ editable: true
+custom_fields_006:
+ name: Float field
+ min_length: 0
+ regexp: ""
+ is_for_all: true
+ type: IssueCustomField
+ max_length: 0
+ possible_values: ""
+ id: 6
+ is_required: false
+ field_format: float
+ default_value: ""
+ editable: true
+custom_fields_007:
+ name: Billable
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ is_filter: true
+ type: TimeEntryActivityCustomField
+ max_length: 0
+ possible_values: ""
+ id: 7
+ is_required: false
+ field_format: bool
+ default_value: ""
+ editable: true
+custom_fields_008:
+ name: Custom date
+ min_length: 0
+ regexp: ""
+ is_for_all: true
+ is_filter: false
+ type: IssueCustomField
+ max_length: 0
+ possible_values: ""
+ id: 8
+ is_required: false
+ field_format: date
+ default_value: ""
+ editable: true
+custom_fields_009:
+ name: Project 1 cf
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ is_filter: true
+ type: IssueCustomField
+ max_length: 0
+ possible_values: ""
+ id: 9
+ is_required: false
+ field_format: date
+ default_value: ""
+ editable: true
+custom_fields_010:
+ name: Overtime
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ is_filter: false
+ type: TimeEntryCustomField
+ max_length: 0
+ possible_values: ""
+ id: 10
+ is_required: false
+ field_format: bool
+ default_value: 0
+ editable: true
+custom_fields_011:
+ name: Custom date
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ is_filter: false
+ type: TimeEntryCustomField
+ max_length: 0
+ possible_values: ""
+ id: 11
+ is_required: false
+ field_format: date
+ default_value: ""
+ editable: true
@@ -0,0 +1,109 @@
+---
+custom_values_006:
+ customized_type: Issue
+ custom_field_id: 2
+ customized_id: 3
+ id: 6
+ value: "125"
+custom_values_007:
+ customized_type: Project
+ custom_field_id: 3
+ customized_id: 1
+ id: 7
+ value: Stable
+custom_values_001:
+ customized_type: Principal
+ custom_field_id: 4
+ customized_id: 3
+ id: 1
+ value: ""
+custom_values_002:
+ customized_type: Principal
+ custom_field_id: 4
+ customized_id: 4
+ id: 2
+ value: 01 23 45 67 89
+custom_values_003:
+ customized_type: Principal
+ custom_field_id: 4
+ customized_id: 2
+ id: 3
+ value: "01 42 50 00 00"
+custom_values_004:
+ customized_type: Issue
+ custom_field_id: 2
+ customized_id: 1
+ id: 4
+ value: "125"
+custom_values_005:
+ customized_type: Issue
+ custom_field_id: 2
+ customized_id: 2
+ id: 5
+ value: ""
+custom_values_008:
+ customized_type: Issue
+ custom_field_id: 1
+ customized_id: 3
+ id: 8
+ value: "MySQL"
+custom_values_009:
+ customized_type: Issue
+ custom_field_id: 2
+ customized_id: 7
+ id: 9
+ value: "this is a stringforcustomfield search"
+custom_values_010:
+ customized_type: Issue
+ custom_field_id: 6
+ customized_id: 1
+ id: 10
+ value: "2.1"
+custom_values_011:
+ customized_type: Issue
+ custom_field_id: 6
+ customized_id: 2
+ id: 11
+ value: "2.05"
+custom_values_012:
+ customized_type: Issue
+ custom_field_id: 6
+ customized_id: 3
+ id: 12
+ value: "11.65"
+custom_values_013:
+ customized_type: Issue
+ custom_field_id: 6
+ customized_id: 7
+ id: 13
+ value: ""
+custom_values_014:
+ customized_type: Issue
+ custom_field_id: 6
+ customized_id: 5
+ id: 14
+ value: "-7.6"
+custom_values_015:
+ customized_type: Enumeration
+ custom_field_id: 7
+ customized_id: 10
+ id: 15
+ value: true
+custom_values_016:
+ customized_type: Enumeration
+ custom_field_id: 7
+ customized_id: 11
+ id: 16
+ value: '1'
+custom_values_017:
+ customized_type: Issue
+ custom_field_id: 8
+ customized_id: 1
+ id: 17
+ value: '2009-12-01'
+custom_values_018:
+ customized_type: TimeEntry
+ custom_field_id: 10
+ customized_id: 2
+ id: 18
+ value: '2009-12-01'
Oops, something went wrong.

0 comments on commit a65e960

Please sign in to comment.