Eric Davis
f42b419bf3
[ #6898 ] Replace SortHelper patch with a plain helper
2012-05-15 09:09:43 -07:00
Eric Davis
b20ebe587b
Tweak ObjectDaddy so it's loaded into Rate when testing
2011-04-06 09:18:54 -07:00
Eric Davis
211e0b6bdf
[ #4722 ] Store cache lockfile in RAILS_ROOT/tmp
2010-11-17 09:07:27 -08:00
Eric Davis
5200eacd36
[ #4604 ] Store caching timestamps in the database as UTC
2010-10-13 12:50:20 -07:00
Eric Davis
52622a678e
[ #4604 ] Change the caching admin panel to use a split pane
2010-10-13 12:44:33 -07:00
Eric Davis
f9bd3c0e53
[ #4604 ] Force clearing any lockfiles when submitted from the web
2010-10-13 12:41:50 -07:00
Eric Davis
e4f1a623f1
[ #4604 ] Add buttons for load and clear the caches
2010-10-13 12:08:06 -07:00
Eric Davis
7824eadc94
[ #4604 ] Add the last cache timestamps to the caching admin panel
2010-10-13 11:50:24 -07:00
Eric Davis
073dfe1177
[ #4604 ] Add an admin panel for the rate caches
2010-10-13 11:32:32 -07:00
Eric Davis
fb3b0a41ae
[ #4604 ] Add a method and rake task to clear and update all TimeEntry cost caches
2010-10-06 17:35:28 -07:00
Eric Davis
16a7a3146f
[ #4604 ] Timestamp the last caching run
2010-10-06 17:27:31 -07:00
Eric Davis
33cf4d5c5c
[ #4604 ] Add test for Rate#update_all_time_entries_with_missing_cost
2010-10-06 17:18:58 -07:00
Eric Davis
41b1a3cd54
[ #4604 ] Move method to model
2010-10-06 17:10:37 -07:00
Eric Davis
c97979bd06
[ #4604 ] Clear and recalculate the #cost on Rate#destroy
2010-10-06 13:15:17 -07:00
Eric Davis
f7b03b825f
[ #4604 ] Clear and recalculate the #cost on Rate#save
2010-10-06 13:05:57 -07:00
Eric Davis
e541270461
[ #4289 ] Ported the billing plugin's timesheet hooks.
2010-07-23 10:16:41 -07:00
Eric Davis
7f7b400f15
[ #3180 #3266 ] Compatibility fix for the Groups feature.
2009-11-02 18:30:17 -08:00
Eric Davis
ef394da702
Updated for Rails 2.3.
2009-09-07 16:35:40 -07:00
Eric Davis
724dd470ba
Removed the Redmine core template and Redmine core hooks instead.
2009-08-01 11:05:55 -07:00
Eric Davis
c0006e1040
[ #2558 ] Check that @memberships is set before using it.
2009-08-01 10:04:20 -07:00
Eric Davis
452edfeeaa
Refactored core Redmine patches so the plugin can be run in development.
2009-04-21 21:44:58 -07:00
Eric Davis
df0ecda7ff
Added some compatibility wrappers for the stable 0.8.x version of Redmine.
2009-04-21 21:35:13 -07:00
Eric Davis
4666ddb10e
Fixed two bugs caused by the core changes to project/subprojects. Might break compatibility with the 0.8.x branch of Redmine.
...
#2089
2009-02-05 17:08:26 -08:00
Eric Davis
4acf180b95
After saving a new rate from Projects, the rate link was pointed to the wrong url
...
#2031
2009-01-26 15:07:27 -08:00
Eric Davis
55a3a4dbce
Display if the rate row is the default rate. #2031
2009-01-26 14:25:21 -08:00
Eric Davis
cc4c80c461
Fixed a bug where the Calender wasn't working in the User Admin panel
...
The calendar select would open but not set the new Rate field. Turned out to
be because the Membership tab had form elements with the same id.
#2031
2009-01-26 14:19:02 -08:00
Eric Davis
dc6acf5031
Changed the create.rjs so it will replace the td on the admin and project panel.
...
* td's are now id'ed like rate_project_user
#1923
2009-01-21 12:20:17 -08:00
Eric Davis
82e480b77b
Minor bug when a user doesn't have any rates yet
2009-01-20 17:11:27 -08:00
Eric Davis
363e8c0c5a
Converted the Membership rate form to an Ajax remote form.
...
* Changed the form_for to be a remote_form_for
* Changed the url to use the js format
* Added RJS to add the Saved rate to the rate cell
* Added id to the table cell so the rate cell can be replaced on success
* Added an Error RJS to flash an error message
#1921
2009-01-20 16:37:23 -08:00
Eric Davis
7930144e8c
Require amount to be a number.
2009-01-20 16:35:00 -08:00
Eric Davis
0806bf13df
Added a standard form for adding a new rate based on the membership row. #1921
2009-01-20 15:58:55 -08:00
Eric Davis
0d90144c0e
Fixed a bug where Rates on a project were being selected by the default
...
rate finder. #1921
2009-01-20 15:57:24 -08:00
Eric Davis
cfd6e09df5
Added a duplicate of the Redmine _membership partial but with 'hooks' for setting Rates. #1921
2009-01-20 15:38:29 -08:00
Eric Davis
6141554976
Added some boolean tests to see if a Rate is a default rate. #1921
2009-01-20 15:37:53 -08:00
Eric Davis
8c5e58de04
Changed the API so Rate#for will return a Rate object and Rate#amount_for
...
will return the rate amount.
#1921
2009-01-20 15:26:01 -08:00
Eric Davis
5e774eb378
Fixed a bug where default rate wasn't getting used. #1918
2009-01-20 14:55:00 -08:00
Eric Davis
b21430a7f2
Caught a bug on the exception path of redirect_back_or_default. #1916
2009-01-20 14:07:54 -08:00
Eric Davis
099e87fda8
Overrode redirect_back_or_default to check the back_url against a whitelist
...
of valid urls to redirect back_to. #1916
2009-01-20 13:58:11 -08:00
Eric Davis
ace208da8a
Replaced all custom back_url redirection with Redmine's redirect_back_or_default. #1916
2009-01-20 13:06:39 -08:00
Eric Davis
2c752210ae
Refactored params[:back_url] to @back_url. #1916
2009-01-20 12:57:42 -08:00
Eric Davis
fcd8f24b69
Changed back_url so it's always set and added a test for it. #1916
2009-01-20 12:55:56 -08:00
Eric Davis
56298bc867
Added a link to delete a Rate. #1919
2009-01-20 11:34:43 -08:00
Eric Davis
158969e359
Added an error message when a locked rate is tried to be deleted. #1919
2009-01-20 11:33:08 -08:00
Eric Davis
dc8dd4abe4
Redirect to a back_url when deleting a rate also. #1919
2009-01-20 11:29:33 -08:00
Eric Davis
a294ff0154
Once deleting a Rate, the user should be redirected back to the user rate list. #1919
2009-01-20 11:27:40 -08:00
Eric Davis
3fccd98102
Added hints to the edit form so a user will not edit a locked Rate. #1919
2009-01-20 11:17:37 -08:00
Eric Davis
a52afb7a2b
Protect locked rates from being updated.
...
* Locked rates will fail to save
* Attempting to save a Locked rates will display an error and reload the
Rate from the database so the update parameters are thrown away
#1919
2009-01-20 11:05:19 -08:00
Eric Davis
1cd24e451b
Sorting the Project column by project name now
...
* Including projects in Rate.history_for_user
* Moved the valid sort options to a constant on the RatesController
* Changed the ValidSortOptions to use the Project name for project_id
* Updated admin view to use RatesController::ValidSortOptions instead of a
duplicated string.
#1915
2009-01-20 10:46:16 -08:00
Eric Davis
05dd3649f6
Fixed the sorts by updated to 0.8 to use the new sort API and fixing the update element id. #1915
2009-01-19 15:00:43 -08:00
Eric Davis
f870a6019e
Hacked some column sorting onto RatesController
...
* Added SortHelper to RatesController
* Init and updating the sorting (pre 0.8 sort_update)
* RatesController#index will only render the layout on non-xhr requests
* Changed Rate.history_for_user to take an order clause
* Added rate_sort_header_tag and rate_sort_link to the SortHelper in order
to get the correct parameters for sorting Rates
* Added rate_sort_header_tags to the Rate lists
#1915
2009-01-19 14:43:54 -08:00