Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
5dbcf01
a little bit of optimization
ippeiukai Mar 19, 2015
098ef5e
render task tooltip with ajax for render performance
ippeiukai Mar 23, 2015
c6e8017
calling render partial many times wastes time on find_partial
ippeiukai Mar 19, 2015
790eef9
No point calling RbStory.trackers twice. This is very expensive.
ippeiukai Mar 23, 2015
4900caa
avoid expensive RbStory.trackers only to check id inclusion.
ippeiukai Mar 24, 2015
c49058b
clarified method aliasing intention
ippeiukai Mar 24, 2015
d0e73f2
redmine 3.0 compatibility fixes
May 11, 2015
8751e10
activerecord-deprecated_finders
korin May 11, 2015
8aa5ad0
Undefined issue at line 34. Temporary switch to 1
May 12, 2015
a2ebc80
Merge pull request #1 from efigence/feature/3.0
AlexDAlexeev May 12, 2015
794b794
Exclude async BacklogsAfterSave
May 13, 2015
590ffd6
Merge pull request #2 from AlexDAlexeev/feature/3.0
AlexDAlexeev May 13, 2015
f34cd23
Merge remote-tracking branch 'ippeiukai/v1.0.6-task_update_optimizati…
May 13, 2015
8613b2d
Merge remote-tracking branch 'ippeiukai/v1.0.6-taskboard_optimization…
May 13, 2015
449f7c6
Merge pull request #3 from AlexDAlexeev/ippeiukai_task_update_optimiz…
AlexDAlexeev May 13, 2015
9aaad97
Route to /rb/sprint/:id/reset
May 14, 2015
9438f9f
get method for sprint/close
May 19, 2015
743d493
strip and upgrade travis file to check the current baseline on new re…
patrickatamaniuk Jun 30, 2015
1b234b8
allow 3.* redmine version in install script
patrickatamaniuk Jun 30, 2015
46b471b
update simplecov and dont require it for redmine 3, its included there
patrickatamaniuk Jun 30, 2015
8f2d579
remove --trace from bundle exec rake, it seem not to work with curren…
patrickatamaniuk Jun 30, 2015
c00a78f
remove printable cards prerequisite from test setup step to fix runni…
patrickatamaniuk Jun 30, 2015
37656c4
work around some jquery issues
patrickatamaniuk Jun 30, 2015
6ce29c7
passing format and handler in filename is deprecated. Fixes DEPRECATI…
patrickatamaniuk Jun 30, 2015
b8f8d67
fix product_owner featuretest by setting new_story_position to top
patrickatamaniuk Jun 30, 2015
8ea55bf
test redmine 26
patrickatamaniuk Jun 30, 2015
d0079fd
fix scope in release model
patrickatamaniuk Jun 30, 2015
cf8bb43
fix routes
patrickatamaniuk Jun 30, 2015
2c851e7
fix has_many in project
patrickatamaniuk Jun 30, 2015
094c247
replace .find(:all) with .all, add Rails 4 to prepare_fixtures
patrickatamaniuk Jul 1, 2015
c04db19
fix instances of .find(:all) Activerecord queries
patrickatamaniuk Jul 1, 2015
2c0a976
update testsuite requirements so the tests at least start
patrickatamaniuk Jul 1, 2015
917f3b9
redmine 3 - handle IssueStatus is_default change on settings page (tr…
patrickatamaniuk Jul 1, 2015
9b51526
disable csrf protection for server variable js for now FIXME
patrickatamaniuk Jul 1, 2015
e2ed27f
disable csrf protection for server variable js for now FIXME
patrickatamaniuk Jul 1, 2015
596639e
handle .js format in application controller to workaround ActionContr…
patrickatamaniuk Jul 1, 2015
1764934
Fix installation break
Jul 8, 2015
0734664
Merge pull request #4 from xenLiam/patch-1
AlexDAlexeev Jul 8, 2015
8bc8b6e
fix Given the ecookbook project has the backlogs plugin enabled
patrickatamaniuk Jul 8, 2015
fd63994
fix Given backlogs is configured
patrickatamaniuk Jul 8, 2015
607b9c7
re-enable cards in test setup
patrickatamaniuk Jul 8, 2015
706e3ac
fix Given I am admin
patrickatamaniuk Jul 8, 2015
9e87793
Given I am a product owner of the project
patrickatamaniuk Jul 8, 2015
ce677d8
fix And I am viewing the backlog settings page for project ecookbook
patrickatamaniuk Jul 8, 2015
ff5d9e0
fix be_true instances
patrickatamaniuk Jul 8, 2015
170fa86
fix project settings backlog tab
patrickatamaniuk Jul 8, 2015
0be0635
fix settings test
patrickatamaniuk Jul 8, 2015
94a945c
fix some more stuff on common feature
patrickatamaniuk Jul 8, 2015
ebc3b25
fix install task
patrickatamaniuk Jul 9, 2015
49b27a2
fix rb_helper IssueStatus semantic
patrickatamaniuk Jul 9, 2015
c964056
fix Project usage of connection
patrickatamaniuk Jul 9, 2015
814d8ce
fix default_status semantic in workflow_transitions
patrickatamaniuk Jul 9, 2015
6851d21
remove debug puts
patrickatamaniuk Jul 9, 2015
c1cc720
set a reasonable default status for new story
patrickatamaniuk Jul 9, 2015
41506fc
fixes in history, story and issue
patrickatamaniuk Mar 7, 2013
fac1473
change named_scope to scope from RbStory
patrickatamaniuk Mar 5, 2013
c20060d
sprint scopes
patrickatamaniuk Mar 5, 2013
0a9bc3a
rb_sprint.impediments use ar where clause
patrickatamaniuk Mar 5, 2013
1d20544
rb_task find_all_updated_since ar scope cleanup
patrickatamaniuk Mar 5, 2013
ca4a07d
ar code cleanup in scrum stats
patrickatamaniuk Mar 5, 2013
9830feb
work on backlogs_is? and default status issues, disable move_before i…
patrickatamaniuk Mar 5, 2013
6307ea7
fix default_state and backlog_is calls in Issue::before_safe
patrickatamaniuk Jul 9, 2015
254a9f6
fix duplicate_story tests, remove some debug
patrickatamaniuk Jul 9, 2015
b1e57fb
fix many find() calls, fix instance of db connection
patrickatamaniuk Jul 9, 2015
7a17628
fix some release issues
patrickatamaniuk Jul 9, 2015
c51b986
fix find_by_name .first
patrickatamaniuk Jul 10, 2015
b42aa3c
require experimental nestedset mixin
patrickatamaniuk Jul 10, 2015
1f6890b
fix some post/put routes
patrickatamaniuk Jul 10, 2015
24818e8
work on list-with-gaps, add much debug puts
patrickatamaniuk Jul 20, 2015
0d649a0
fix sprint visibility of stories
patrickatamaniuk Jul 20, 2015
014c5dc
fix projects.status access on scrum stats query
patrickatamaniuk Jul 20, 2015
a7dd284
fix find_by_rank test helper
patrickatamaniuk Jul 20, 2015
7f66d4b
typo in test
patrickatamaniuk Jul 20, 2015
16acc0b
silence list_prev_next debug
patrickatamaniuk Jul 20, 2015
74b16f6
fix settings change, << does not work correctly
patrickatamaniuk Jul 20, 2015
71e18ee
travis check redmine3 and go to new infrastructure
patrickatamaniuk Jul 20, 2015
2434736
travis matrix is needed for setup currently
patrickatamaniuk Jul 20, 2015
0cc6e78
fix .find.first in shared-versions-team_member-dnd test
patrickatamaniuk Jul 20, 2015
1b6f87a
fix rb_release_burnchart_day_cache.create
patrickatamaniuk Jul 20, 2015
be95d97
fix rb_release_multiview create
patrickatamaniuk Jul 20, 2015
8678e5c
fix recordnotfound in rbHistory touch_sprint RbSprint.find call
patrickatamaniuk Jul 21, 2015
2b926fc
remove debug in given steps
patrickatamaniuk Jul 21, 2015
cab17db
set User.current on login for tests
patrickatamaniuk Jul 25, 2015
2fa276c
set sharing for sprints to none as default in tests
patrickatamaniuk Jul 24, 2015
e62962c
fix authorized calendar access query
patrickatamaniuk Jul 24, 2015
0b70b61
fix routing tests using minitest
patrickatamaniuk Jul 25, 2015
6efdaf2
new_story_position = top for tests
patrickatamaniuk Jul 25, 2015
001bcfb
fix creation of release and release view
patrickatamaniuk Jul 24, 2015
da7c217
fix updater query
patrickatamaniuk Jul 24, 2015
7ddf9a0
logout before logging in as other user
patrickatamaniuk Jul 25, 2015
7dc35be
enable 2nd test cluster in travis
patrickatamaniuk Jul 25, 2015
5602074
Merge remote-tracking branch 'remotes/alexdalexeev/master' into merge…
patrickatamaniuk Jul 25, 2015
cda2b38
fix product_owner test; fixed sprint name editing
patrickatamaniuk Jul 25, 2015
2f4be41
pair joins with includes fixes shared_releases in projects and the ne…
patrickatamaniuk Jul 25, 2015
5057d6b
rename burndown method to fix problems with cached_changed_attributes…
patrickatamaniuk Jul 25, 2015
ee19287
Merge branch 'merge/alex' into feature/redmine3
patrickatamaniuk Jul 25, 2015
31ba7d2
disable release burndowns so release3 feature test passes
patrickatamaniuk Jul 25, 2015
8beffdd
fix cached_burndown for renamed method get_burndown
patrickatamaniuk Jul 25, 2015
609201c
fix session for test post/put requests
patrickatamaniuk Jul 25, 2015
cb2ff17
restore scoped rank and list_prev_next
patrickatamaniuk Jul 25, 2015
f5f33f1
move release burndown tests out of travis clusters
patrickatamaniuk Jul 25, 2015
fdacc2f
fix negative sprint update tests
patrickatamaniuk Jul 25, 2015
e720dcb
fix cleanup sed scripts in redmine_install
patrickatamaniuk Jul 25, 2015
d74fb79
use left outer join for shared-to project queries, fixes bl sprint menu
patrickatamaniuk Jul 25, 2015
1e57088
fix creation of release multiview test
patrickatamaniuk Jul 25, 2015
e628a34
disable release burndown tests
patrickatamaniuk Jul 26, 2015
5910409
remove unused gems cleanup gemfile
patrickatamaniuk Jul 27, 2015
a5a0d89
do not use to_h on settings check, initialize default_story_tracker a…
patrickatamaniuk Jul 29, 2015
461252c
fix typo in release menu, fix option-select for release dropdown, fix…
patrickatamaniuk Jul 29, 2015
87e5306
using Activerecord::FixtureSet, Fixtures is deprecated in Rails4
patrickatamaniuk Jul 29, 2015
ebfac26
pass selected as array to release_options_for_select in multiview so …
patrickatamaniuk Jul 29, 2015
5ef320a
remove relative url prefix for hooks
patrickatamaniuk Jul 29, 2015
09b1104
cleanup travis matrix and add mysql to tests
patrickatamaniuk Jul 30, 2015
16e6642
ignore eclipse settings
Jul 3, 2019
4cf5789
Merge branch 'master' of github.com:maedadev/redmine_backlogs into fe…
Jul 3, 2019
4252277
refactor
Jul 3, 2019
9dc4eb7
refactor
Jul 4, 2019
29b5409
filter by priority
Jul 5, 2019
926ad07
bump up version
Jul 5, 2019
fdfbc52
add support for redmine-4.1
ichylinux Jun 2, 2020
a9fd65c
arrange release tag
ichylinux Jun 2, 2020
173feb0
some patches cannot be loaded before database setup
ichylinux Jun 2, 2020
9ef8543
add empty labels
ichylinux Jun 3, 2020
741c75f
bump up version
ichylinux Jun 3, 2020
85cf741
suppress unnecessary log
ichylinux Jun 3, 2020
7d6de10
delete unsed scripts
ichylinux Jun 3, 2020
480e567
bump up version
ichylinux Jun 3, 2020
73794b3
do not raise error when updating a task fails with validation
ichylinux Jun 9, 2020
e3de922
default status should be retrieved from task tracker
ichylinux Jun 9, 2020
5ee0fbe
fix error when creating new issue without selecting a project
ichylinux Jun 9, 2020
7af86d4
show validation erros on master backlog correctly
ichylinux Jun 9, 2020
6d8bd10
remove doc and examples
ichylinux Jun 9, 2020
33cfb64
z-index should be smaller than that of redomine-core
ichylinux Jun 9, 2020
8140b07
change default story points to 1,2,4,8.16
ichylinux Jun 9, 2020
7c16b52
bump up version
ichylinux Jun 9, 2020
e0bdd4f
add toggleNewObjectDropdown() js function
ichylinux Jun 9, 2020
d68161d
task color setting was not saved
ichylinux Aug 6, 2020
8a765de
overwrite base/test/fixtures/issues.yml since issues.position NOT NULL
Jan 12, 2022
1897619
Merge pull request #1 from maedadev/feature_58668_2
fuminori-ido-m Jan 12, 2022
0362277
'project' selection doesn't work on backlog & Task board at redmine >…
Jul 18, 2022
5f2a30f
Merge pull request #3 from maedadev/feature_62517_2
fuminori-ido-m Jul 19, 2022
059e301
follow redmine 3.4.0 feature ('project' selection with javascript)
Jul 19, 2022
da6b701
Merge pull request #4 from maedadev/feature_62517_3
fuminori-ido-m Jul 19, 2022
6d21c4b
refactor
Jul 20, 2022
eb77ff2
refactor
Jul 20, 2022
a28e6b0
refs #6
Jul 20, 2022
5536c20
bump up version
Jul 20, 2022
f621f79
fix backlog & task-board pages horizontal scroll for redmine >= 4.1.0
Jul 20, 2022
6b7f1f0
Merge pull request #7 from maedadev/feature_62553_2
fuminori-ido-m Jul 21, 2022
14e20d7
rollback `.ui-tooltip` css class's `white-space` property only for th…
Jul 21, 2022
9ab2162
Merge pull request #8 from maedadev/feature_62555
fuminori-ido-m Jul 22, 2022
8f1d57e
refs #9
Jul 22, 2022
cbd9276
refactor
Jul 22, 2022
003d22f
sort story by issues.subject for each sprint at taskboard page
Aug 5, 2022
625dcaa
refs #10
Aug 8, 2022
078d78d
Merge pull request #10 from maedadev/feature_58666
fuminori-ido-m Aug 8, 2022
3d53164
exclude 'closed' versions or releases from droppables
Aug 8, 2022
b003b7e
Merge pull request #11 from maedadev/feature_63144
fuminori-ido-m Aug 9, 2022
6aa02af
tag PR #11 as v1.4.1
Aug 9, 2022
28a245a
mark the SQL portion as 'not danger'
Aug 17, 2022
267c215
v1.4.2
Aug 21, 2022
4de6d5c
Merge pull request #12 from maedadev/feature_62638
fuminori-ido-m Aug 21, 2022
b15616e
refs #13 auto-refresh can be disabled entirely
y-matsuda-maedadev Mar 27, 2023
69e8433
Fix bug gnome glabels link broken
quynh1-nguyenthinhu May 30, 2023
a7dd457
Porting to Redmine 5
quynh1-nguyenthinhu Jul 10, 2023
040e59f
Merge pull request #14 from toshiba/fixbug/gnome_glabels_link_broken
ichylinux Jul 11, 2023
82dcca6
v1.4.4
fuminori-ido-m Jul 14, 2023
c24a385
Fix bug issue context menu not displayed in Release
quynh1-nguyenthinhu Jul 27, 2023
6eae76e
Merge pull request #15 from toshiba/redmine5-compatible
fuminori-ido-m Jul 31, 2023
63cea4f
v1.4.5
fuminori-ido-m Jul 31, 2023
52f069c
Fix bug tab Backlogs is not displayed in project Settings
quynh1-nguyenthinhu Sep 5, 2023
cf2ceaa
Fix bug backlogs plugin fails to display release burn-up chart
quynh1-nguyenthinhu Sep 5, 2023
221d5b2
Fix bug cannot enter text in New Task popup when redmine_backlogs is …
quynh1-nguyenthinhu Sep 5, 2023
f6e2635
Merge pull request #16 from toshiba/fixbug/backlogs_tab_not_display_i…
ichylinux Sep 5, 2023
3d191ca
Merge pull request #17 from toshiba/fixbug/release_burnup_chart_not_d…
ichylinux Sep 5, 2023
372708f
Merge pull request #18 from toshiba/fixbug/conflict_redmine_hide_sidebar
ichylinux Sep 5, 2023
7397174
Fix bug: New Story autofocus not working
quynh1-nguyenthinhu Sep 6, 2023
fee48e1
Fix bug: error message is not good when create/update sprint with start
quynh1-nguyenthinhu Sep 6, 2023
6022cbf
Fix bug Redmine header content not display completely when not show r…
quynh1-nguyenthinhu Sep 6, 2023
0afae4b
Update message when edit non-exist task on Taskboard
quynh1-nguyenthinhu Sep 6, 2023
724d79a
Add menu for closed sprint as same as open sprint except 'New Story' …
quynh1-nguyenthinhu Sep 6, 2023
b55689b
Validate the Name field value length in 'New release multiview' to be…
quynh1-nguyenthinhu Sep 7, 2023
7e54c9f
Round up the total estimated time of sprint to 2nd decimal place
quynh1-nguyenthinhu Sep 7, 2023
0da9733
Add label for Description field in story tooltip to be consistent wit…
quynh1-nguyenthinhu Sep 7, 2023
fa1d940
Merge pull request #19 from toshiba/fixbug/not_autoscroll_when_creati…
ichylinux Sep 7, 2023
70ad047
Merge pull request #26 from toshiba/feature/add_description_label_in_…
ichylinux Sep 14, 2023
8993cbd
Merge pull request #25 from toshiba/feature/round_up_sprint_estimated
ichylinux Sep 14, 2023
67906d1
Merge pull request #24 from toshiba/fixbug/validate_length_name_relea…
ichylinux Sep 15, 2023
a411180
Merge pull request #22 from toshiba/fixbug/update_nonexist_task_from_…
ichylinux Sep 15, 2023
80b333e
Fix bug: Tasks cannot be re-arranged on task board
hieu1-hoangtrung Sep 15, 2023
e3651cd
Merge pull request #20 from toshiba/fixbug/missing_translation_update…
ichylinux Sep 21, 2023
9c12c72
Merge pull request #27 from toshiba/fixbug/tasks_cant_be_rearrange_on…
ichylinux Sep 28, 2023
710c1f4
Merge pull request #21 from toshiba/fixbug/redmine_header_not_display…
ichylinux Sep 28, 2023
eb589da
Merge pull request #23 from toshiba/feature/display_menu_for_closed_s…
ichylinux Sep 29, 2023
8670b9f
Limit the maximum sprint length to 3 months to prevent error when dis…
quynh1-nguyenthinhu Sep 7, 2023
3484aba
Merge pull request #28 from toshiba/feature/limit_sprint_length_3_months
ichylinux Oct 16, 2023
e638ff0
fix: SQL crash when position is not defined
pipoprods Jul 16, 2024
dee7c02
we don't need to compare plugin version to travis one anymore
y-matsuda-maedadev Oct 24, 2024
c2375f1
Merge pull request #29 from pipoprods/master
ichylinux Oct 24, 2024
f7abe08
refactor
y-matsuda-maedadev Oct 24, 2024
efeb7b0
refs #31 change history column of rb_issue_history to medium text
y-matsuda-maedadev Oct 24, 2024
7ae965d
bump up version to v1.4.6
y-matsuda-maedadev Oct 24, 2024
d3952b5
refs #33
y-matsuda-maedadev Apr 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
_site
_posts
assets/styles
lib/labels/labels.yaml
lib/labels/labels-malformed.yaml
graph.dot
nbproject
*.rc
Expand All @@ -14,3 +12,5 @@ backlogs.dev
redmine_backlogs
*~
\#*\#

/.project
26 changes: 6 additions & 20 deletions .no-travis.yml → .travis.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
---
language: ruby
release: 1.0.6
release: v1.2.0
sudo: false
services:
- mysql
- postgresql
rvm:
- 1.9.3
- 2.0.0
env:
- REDMINE_VER=2.2.4 DB=mysql CLUSTER=CLUSTER1
- REDMINE_VER=2.2.4 DB=mysql CLUSTER=CLUSTER2
- REDMINE_VER=2.2.4 DB=postgresql CLUSTER=CLUSTER1
- REDMINE_VER=2.2.4 DB=postgresql CLUSTER=CLUSTER2
- REDMINE_VER=2.3.3 DB=postgresql CLUSTER=CLUSTER1
- REDMINE_VER=2.3.3 DB=postgresql CLUSTER=CLUSTER2
- REDMINE_VER=2.5.1 DB=postgresql CLUSTER=CLUSTER1
- REDMINE_VER=2.5.1 DB=postgresql CLUSTER=CLUSTER2
- REDMINE_VER=3.0.3 DB=postgresql CLUSTER=CLUSTER1
- REDMINE_VER=3.0.3 DB=postgresql CLUSTER=CLUSTER2
- REDMINE_VER=3.0.3 DB=mysql CLUSTER=CLUSTER1
- REDMINE_VER=3.0.3 DB=mysql CLUSTER=CLUSTER2
matrix:
allow_failures:
- rvm: jruby-18mode
- rvm: jruby-19mode
exclude:
- rvm: 2.0.0
env: REDMINE_VER=2.2.4 DB=mysql CLUSTER=CLUSTER1
- rvm: 2.0.0
env: REDMINE_VER=2.2.4 DB=mysql CLUSTER=CLUSTER2
- rvm: 2.0.0
env: REDMINE_VER=2.2.4 DB=postgresql CLUSTER=CLUSTER1
- rvm: 2.0.0
env: REDMINE_VER=2.2.4 DB=postgresql CLUSTER=CLUSTER2
install: echo skip bundle install
before_script:
- sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'DROP DATABASE IF EXISTS backlogs;'
Expand Down
1,227 changes: 0 additions & 1,227 deletions CHANGELOG.rdoc

This file was deleted.

83 changes: 3 additions & 80 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,85 +1,8 @@
source 'https://rubygems.org'

redmine_version_file = File.expand_path("../../../lib/redmine/version.rb",__FILE__)
if (!File.exists? redmine_version_file)
redmine_version_file = File.expand_path("lib/redmine/version.rb");
end
version_file = IO.read(redmine_version_file)
redmine_version_minor = version_file.match(/MINOR =/).post_match.match(/\d/)[0].to_i
redmine_version_major = version_file.match(/MAJOR =/).post_match.match(/\d/)[0].to_i

chiliproject_file = File.dirname(__FILE__) + "/lib/chili_project.rb"
chiliproject = File.file?(chiliproject_file)

deps = Hash.new
@dependencies.map{|dep| deps[dep.name] = dep }
rails3 = Gem::Dependency.new('rails', '~>3.0')
RAILS_VERSION_IS_3 = rails3 =~ deps['rails']

gem "sidekiq"
gem 'erubis', '~> 2.7'
gem "holidays", "~>1.0.3"
gem "icalendar"
# Choose nokogiri depending on RM version. This is done to avoid conflict with
# RM 2.3 which pinned nokogiri at "<1.6.0" for group :test.
if (redmine_version_major == 2 && redmine_version_minor == 3)
gem "nokogiri", "< 1.6.0"
else
gem "nokogiri"
end
gem "open-uri-cached"
gem "prawn"
gem 'json'
gem "system_timer" if RUBY_VERSION =~ /^1\.8\./ && RUBY_PLATFORM =~ /darwin|linux/

group :development do
gem "inifile"
end

group :test do
gem 'chronic'
gem 'ZenTest', "=4.5.0" # 4.6.0 has a nasty bug that breaks autotest
gem 'autotest-rails'
if RAILS_VERSION_IS_3
unless chiliproject
gem 'capybara', "~> 1.1" if ENV['IN_RBL_TESTENV'] == 'true' # redmine 2.3 conflicts
gem "faye-websocket", "~>0.4.7"
gem "poltergeist", "~>1.0"
end
gem 'cucumber-rails', :require => false
gem "culerity"
else
unless chiliproject
gem "capybara", "~>1.1.0"
gem "poltergeist", "~>0.6.0"
end
gem "cucumber", "=1.1.0"
gem 'cucumber-rails2', "~> 0.3.5"
gem "culerity", "=0.2.15"
end
gem "database_cleaner"
if RAILS_VERSION_IS_3
gem "gherkin", "~> 2.6"
else
gem "gherkin", "~> 2.5.0"
end
gem "redgreen" if RUBY_VERSION < "1.9"
if RAILS_VERSION_IS_3
gem "rspec", '~>2.11.0'
gem "rspec-rails", '~> 2.11.0'
else
gem "rspec", "=1.3.1"
gem "rspec-rails", "=1.3.3"
end
if RUBY_VERSION >= "1.9"
gem "simplecov", "~>0.6"
else
gem "rcov", "=0.9.11"
end
gem "ruby-prof", :platforms => [:ruby]
gem "spork"
gem "test-unit", "=1.2.3" if RUBY_VERSION >= "1.9" and ENV['IN_RBL_TESTENV'] == 'true'
gem "timecop", '~> 0.3.5'
end

# moved out of the dev group so backlogs can be tested by the user after install. Too many issues of weird setups with apache, nginx, etc.
# thin doesn't work for jruby
gem "thin", :platforms => [:ruby]
gem 'matrix'
2 changes: 1 addition & 1 deletion app/controllers/rb_all_projects_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class RbAllProjectsController < ApplicationController
unloadable

before_filter :authorize_global
before_action :authorize_global

def statistics
backlogs_projects = RbCommonHelper.find_backlogs_enabled_active_projects
Expand Down
10 changes: 7 additions & 3 deletions app/controllers/rb_application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class RbApplicationController < ApplicationController
unloadable

before_filter :load_project, :authorize, :check_if_plugin_is_configured
before_action :load_project, :authorize, :check_if_plugin_is_configured

#provide list of javascript_include_tags which must be rendered before common.js
def rb_jquery_plugins
Expand Down Expand Up @@ -35,9 +35,13 @@ def load_project

def check_if_plugin_is_configured
@settings = Backlogs.settings
if @settings[:story_trackers].blank? || @settings[:task_tracker].blank?
# make a copy to workaround RuntimeError (can't modify frozen ActionController::Parameters):
s1 = @settings.dup
if s1[:story_trackers].blank? || s1[:task_tracker].blank?
puts("check_if_plugin_is_configured: something is blank, halting. #{s1}")
respond_to do |format|
format.html { render :file => "backlogs/not_configured" }
format.html { render :template => "backlogs/not_configured", :handlers => [:erb], :formats => [:html] }
format.js { }
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/rb_burndown_charts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def show

def embedded
respond_to do |format|
format.html { render :template => 'rb_burndown_charts/show.html.erb', :layout => false }
format.html { render :template => 'rb_burndown_charts/show', :layout => false, :handlers => [:erb], :formats => [:html] }
end
end

Expand Down
6 changes: 3 additions & 3 deletions app/controllers/rb_calendars_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class RbCalendarsController < RbApplicationController

case Backlogs.platform
when :redmine
before_filter :require_admin_or_api_request, :only => :ical
before_action :require_admin_or_api_request, :only => :ical
accept_api_auth :ical
when :chiliproject
accept_key_auth :ical
Expand All @@ -23,7 +23,7 @@ def generate_ical
cal = Icalendar::Calendar.new

# current + future sprints
RbSprint.find(:all, :conditions => ["not sprint_start_date is null and not effective_date is null and project_id = ? and effective_date >= ?", @project.id, Date.today]).each {|sprint|
RbSprint.where("not sprint_start_date is null and not effective_date is null and project_id = ? and effective_date >= ?", @project.id, Date.today).find_each {|sprint|
summary_text = l(:event_sprint_summary, { :project => @project.name, :summary => sprint.name } )
description_text = "#{sprint.name}: #{url_for(:controller => 'rb_queries', :only_path => false, :action => 'show', :project_id => @project.id, :sprint_id => sprint.id)}\n#{sprint.description}"

Expand Down Expand Up @@ -84,7 +84,7 @@ def generate_ical
conditions << @project.id
conditions << Date.today

issues = Issue.find(:all, :include => :status, :conditions => conditions).each {|issue|
issues = Issue.where(conditions).joins(:status).includes(:status).find_each {|issue|
summary_text = l(:todo_issue_summary, { :type => issue.tracker.name, :summary => issue.subject } )
description_text = "#{issue.subject}: #{url_for(:controller => 'issues', :only_path => false, :action => 'show', :id => issue.id)}\n#{issue.description}"
# I know this should be "cal.todo do", but outlook in it's
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/rb_hooks_render_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def view_issues_sidebar
}

respond_to do |format|
format.html { render :template => 'backlogs/view_issues_sidebar.html.erb', :layout => false, :locals => locals }
format.html { render :template => 'backlogs/view_issues_sidebar', :layout => false, :locals => locals, :handlers => [:erb], :formats => [:html] }
end
end

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/rb_impediments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def create
begin
@impediment = RbTask.create_with_relationships(params, User.current.id, @project.id, true)
rescue => e
render :text => e.message.blank? ? e.to_s : e.message, :status => 400
render :plain => e.message.blank? ? e.to_s : e.message, :status => 400
return
end

Expand All @@ -27,7 +27,7 @@ def update
begin
result = @impediment.update_with_relationships(params)
rescue => e
render :text => e.message.blank? ? e.to_s : e.message, :status => 400
render :plain => e.message.blank? ? e.to_s : e.message, :status => 400
return
end
status = (result ? 200 : 400)
Expand Down
19 changes: 7 additions & 12 deletions app/controllers/rb_master_backlogs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,23 @@ def _menu_new
if projects.length > 1
links << {:label => l(label_new), :url => '#', :sub => []}
projects.each{|project|
links.first[:sub] << {:label => project.name, :url => '#', :classname => "#{add_class} project_id_#{project.id}"}
links.first[:sub] << {:label => project.name, :url => 'javascript:void(0);', :classname => "#{add_class} project_id_#{project.id}"}
}
else
links << {:label => l(label_new), :url => '#', :classname => "#{add_class} project_id_#{projects[0].id}"}
links << {:label => l(label_new), :url => 'javascript:void(0);', :classname => "#{add_class} project_id_#{projects[0].id}"}
end
end
else #no sharing, only own project in the menu
links << {:label => l(label_new), :url => '#', :classname => add_class}
links << {:label => l(label_new), :url => 'javascript:void(0);', :classname => add_class}
end
return links
end

def menu
links = []

links += _menu_new if User.current.allowed_to?(:create_stories, @project)
is_closed_sprint = @sprint && @sprint.status.eql?('closed')
links += _menu_new if User.current.allowed_to?(:create_stories, @project) && !is_closed_sprint

links << {:label => l(:label_new_sprint), :url => '#', :classname => 'add_new_sprint'
} unless @sprint || !User.current.allowed_to?(:create_sprints, @project)
Expand Down Expand Up @@ -91,7 +92,7 @@ def menu
links << {:label => l(:label_reset),
:url => url_for(:controller => 'rb_sprints', :action => 'reset', :sprint_id => @sprint, :only_path => true),
:warning => view_context().escape_javascript(l(:warning_reset_sprint)).gsub(/\/n/, "\n")
} if @sprint && @sprint.sprint_start_date && User.current.allowed_to?(:reset_sprint, @project)
} if @sprint && @sprint.sprint_start_date && User.current.allowed_to?(:reset_sprint, @project) && !is_closed_sprint
links << {:label => l(:label_version),
:url => url_for(:controller => 'versions', :action => 'show', :id => @sprint, :target => '_blank', :only_path => true)
} if @sprint
Expand All @@ -100,20 +101,14 @@ def menu
} if @release
links << {:label => l(:label_sprint_close),
:url => url_for(:controller => 'rb_sprints', :action => 'close', :sprint_id => @sprint, :only_path => true)
} if @sprint && @sprint.open? && @sprint.stories.open.none? && User.current.allowed_to?(:update_sprints, @project)
} if @sprint && @sprint.open? && @sprint.stories.open.none? && User.current.allowed_to?(:update_sprints, @project)


respond_to do |format|
format.html { render :json => links }
end
end

if Rails::VERSION::MAJOR < 3
def view_context
@template
end
end

def closed_sprints
c_sprints = @project.closed_shared_sprints
@backlogs = RbStory.backlogs_by_sprint(@project, c_sprints)
Expand Down
18 changes: 4 additions & 14 deletions app/controllers/rb_queries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class RbQueriesController < RbApplicationController
unloadable

def show
@query = __IssueQueryClass.new(:name => "_")
@query = IssueQuery.new(:name => "_")
@query.project = @project
group_by = nil

Expand All @@ -25,28 +25,18 @@ def show
column_names = @query.columns.collect{|col| col.name}
column_names = column_names + ['position'] unless column_names.include?('position')

session[:query] = {:project_id => @query.project_id, :filters => @query.filters, :column_names => column_names, :group_by => group_by}
session[:issue_query] = {:project_id => @query.project_id, :filters => @query.filters, :column_names => column_names, :group_by => group_by}
redirect_to :controller => 'issues', :action => 'index', :project_id => @project.id, :sort => 'position'
end

def impediments
@query = __IssueQueryClass.new(:name => "_")
@query = IssueQuery.new(:name => "_")
@query.project = @project
@query.add_filter("status_id", 'o', ['']) # only open
@query.add_filter("fixed_version_id", '=', [params[:sprint_id]])
@query.add_filter("backlogs_issue_type", '=', ['impediment'])
session[:query] = {:project_id => @query.project_id, :filters => @query.filters }
session[:issue_query] = {:project_id => @query.project_id, :filters => @query.filters }
redirect_to :controller => 'issues', :action => 'index', :project_id => @project.id
end

private

def __IssueQueryClass
if (Redmine::VERSION::MAJOR > 2) || (Redmine::VERSION::MAJOR == 2 && Redmine::VERSION::MINOR >= 3)
IssueQuery
else
Query
end
end

end
Loading