This website requires JavaScript.
62a95e03e9
Added wrapper tasks to run both the budget and biling tests. #1922
Eric Davis
2009-01-23 15:35:02 -08:00
04411abe68
Added a conversation test for the Billing plugin. #1922
Eric Davis
2009-01-23 15:34:33 -08:00
2a5442622f
Updated readme with specific steps to take. #1924
Eric Davis
2009-01-23 14:36:21 -08:00
f3e682943f
Better names for tasks
Eric Davis
2009-01-23 14:36:03 -08:00
0eb53f9cbd
Added version requirements, they were actually required. #1924
Eric Davis
2009-01-23 14:24:45 -08:00
677216b8e5
Moved code into a class. #1924
Eric Davis
2009-01-23 14:19:24 -08:00
2ce6a32f39
Not needed, rake will yell about that. #1924
Eric Davis
2009-01-23 14:12:14 -08:00
b550f96400
Don't need to worry about version numbers. #1924
Eric Davis
2009-01-23 14:09:59 -08:00
8ea912be4b
First run at a data checking task for the Budget plugin. #1924
Eric Davis
2009-01-23 14:09:21 -08:00
6aa00eeeb9
Added a helper method to TimeEntry that will encapsulate the rate API for a TimeEntry.
Eric Davis
2009-01-21 15:11:35 -08:00
2d3fbf02b0
Added TODO
Eric Davis
2009-01-21 13:34:45 -08:00
b6bffb2c05
Added the rest of the form for setting a rate on a project. #1923
Eric Davis
2009-01-21 12:35:55 -08:00
aab2d83d48
Update the value for the emapy project so it will set the default rate. #1923
Eric Davis
2009-01-21 12:35:33 -08:00
dc6acf5031
Changed the create.rjs so it will replace the td on the admin and project panel.
Eric Davis
2009-01-21 12:20:17 -08:00
05501f3eb6
Ported the basics for the Rate form from the Budget plugin. #1923
Eric Davis
2009-01-21 12:15:44 -08:00
256627d2a3
Ported the table header from the Budget plugin hook. #1923
Eric Davis
2009-01-21 11:23:15 -08:00
82e480b77b
Minor bug when a user doesn't have any rates yet
Eric Davis
2009-01-20 17:11:27 -08:00
363e8c0c5a
Converted the Membership rate form to an Ajax remote form.
Eric Davis
2009-01-20 16:37:23 -08:00
7930144e8c
Require amount to be a number.
Eric Davis
2009-01-20 16:35:00 -08:00
0806bf13df
Added a standard form for adding a new rate based on the membership row. #1921
Eric Davis
2009-01-20 15:58:55 -08:00
0d90144c0e
Fixed a bug where Rates on a project were being selected by the default rate finder. #1921
Eric Davis
2009-01-20 15:57:24 -08:00
cfd6e09df5
Added a duplicate of the Redmine _membership partial but with 'hooks' for setting Rates. #1921
Eric Davis
2009-01-20 15:38:29 -08:00
6141554976
Added some boolean tests to see if a Rate is a default rate. #1921
Eric Davis
2009-01-20 15:37:53 -08:00
8c5e58de04
Changed the API so Rate#for will return a Rate object and Rate#amount_for will return the rate amount.
Eric Davis
2009-01-20 15:26:01 -08:00
8e89e69532
Added several more Rate#for specs using full stack specs. #1918
Eric Davis
2009-01-20 15:07:36 -08:00
5e774eb378
Fixed a bug where default rate wasn't getting used. #1918
Eric Davis
2009-01-20 14:55:00 -08:00
2b7cfa4dbc
Added specs to cover if Rate.for doesn't find anything. #1918
Eric Davis
2009-01-20 14:16:28 -08:00
6f0666d854
Implemented pending rate spec
Eric Davis
2009-01-20 14:13:26 -08:00
b21430a7f2
Caught a bug on the exception path of redirect_back_or_default. #1916
Eric Davis
2009-01-20 14:07:54 -08:00
099e87fda8
Overrode redirect_back_or_default to check the back_url against a whitelist of valid urls to redirect back_to. #1916
Eric Davis
2009-01-20 13:58:11 -08:00
ace208da8a
Replaced all custom back_url redirection with Redmine's redirect_back_or_default. #1916
Eric Davis
2009-01-20 13:06:39 -08:00
2c752210ae
Refactored params[:back_url] to @back_url. #1916
Eric Davis
2009-01-20 12:57:42 -08:00
fcd8f24b69
Changed back_url so it's always set and added a test for it. #1916
Eric Davis
2009-01-20 12:55:56 -08:00
56298bc867
Added a link to delete a Rate. #1919
Eric Davis
2009-01-20 11:34:43 -08:00
158969e359
Added an error message when a locked rate is tried to be deleted. #1919
Eric Davis
2009-01-20 11:33:08 -08:00
dc8dd4abe4
Redirect to a back_url when deleting a rate also. #1919
Eric Davis
2009-01-20 11:29:33 -08:00
a294ff0154
Once deleting a Rate, the user should be redirected back to the user rate list. #1919
Eric Davis
2009-01-20 11:27:40 -08:00
3fccd98102
Added hints to the edit form so a user will not edit a locked Rate. #1919
Eric Davis
2009-01-20 11:17:37 -08:00
a52afb7a2b
Protect locked rates from being updated.
Eric Davis
2009-01-20 11:05:19 -08:00
1cd24e451b
Sorting the Project column by project name now
Eric Davis
2009-01-20 10:46:16 -08:00
05dd3649f6
Fixed the sorts by updated to 0.8 to use the new sort API and fixing the update element id. #1915
Eric Davis
2009-01-19 15:00:43 -08:00
f870a6019e
Hacked some column sorting onto RatesController
Eric Davis
2009-01-19 14:43:54 -08:00
3f4ea96777
Changed RatesController#update to redirect to:
Eric Davis
2009-01-19 11:54:54 -08:00
e97a68be0d
Show different buttons based on if the Rate is new. #1914
Eric Davis
2009-01-19 11:49:43 -08:00
7d32fc7088
Added a new helper to UsersHelper.
Eric Davis
2009-01-19 11:47:02 -08:00
627a03c5e6
Enabled the edit link on index.
Eric Davis
2009-01-19 11:35:39 -08:00
22ec6f56b7
Added a back_url field to the Rate for that will store the redirect path.
Eric Davis
2009-01-19 11:32:27 -08:00
cc063768b6
Once saving a rate, the user is redirected to the rate list. #1914
Eric Davis
2009-01-19 11:22:42 -08:00
b7a4850b06
Wrong name for the project select field. #1914
Eric Davis
2009-01-19 11:20:00 -08:00
2fe0bd3052
Refactored duplicate logic to a before_filter. #1914
Eric Davis
2009-01-19 11:17:13 -08:00
86c1990faa
Require a user_id on the new action. #1914
Eric Davis
2009-01-19 11:14:57 -08:00
8fe67ef8ae
Updated the form to use the form_for now that there is a Rate object. #1914
Eric Davis
2009-01-19 11:14:39 -08:00
83764cfe40
Use the same form for new as well as edit. #1916
Eric Davis
2009-01-19 10:57:28 -08:00
c178f616d5
Integrated views into the controller specs. #1916
Eric Davis
2009-01-19 10:56:39 -08:00
e6bb0de7e7
Updated url documentation
Eric Davis
2009-01-19 10:46:51 -08:00
ae0be85f76
Using form partial for the new rate. #1916
Eric Davis
2009-01-19 10:45:53 -08:00
c3250c882a
Blocked all non-admins from using the RatesController. #1916
Eric Davis
2009-01-19 10:40:42 -08:00
6698ff8169
Moved the Rate History out of the users partial and into a partial for Rates
Eric Davis
2009-01-19 10:28:58 -08:00
a2e77e8182
Converted RatesController#index to require a user_id parameter
Eric Davis
2009-01-19 10:25:04 -08:00
441a86e7a6
Added generated RESTful RatesController. #1916
Eric Davis
2009-01-19 09:53:47 -08:00
8eeb0f4872
Moved form to a partial, it will be used with other views. #1914
Eric Davis
2009-01-19 09:46:14 -08:00
ff93fc6df7
Removed custom project selector with one from the helpers. #1914
Eric Davis
2009-01-19 09:43:54 -08:00
973e6bc2b6
Mocked up a nonfunctional New Rate form. #1914
Eric Davis
2009-01-19 09:39:44 -08:00
b993a5ae2f
Refactored the date checks into a separate methods. #1920
Eric Davis
2009-01-16 17:03:24 -08:00
2950051383
Checking date input for Rate#for. #1920
Eric Davis
2009-01-16 16:59:49 -08:00
7bca02b511
Instead of returning nil, which could get confused with No Rate, passing incorrect objects to Rate#for will now throw a Rate::InvalidParameterException back to the caller.
Eric Davis
2009-01-16 16:53:00 -08:00
94e8aad493
Rate#for should handle invalid projects. #1920
Eric Davis
2009-01-16 16:43:26 -08:00
08b267741b
Rate#for should handle invalid users. #1920
Eric Davis
2009-01-16 16:40:50 -08:00
bab1fa7763
Singular rate
Eric Davis
2009-01-16 16:35:05 -08:00
da891cc607
Refactored Rate#for_user_project_and_date to allow nil projects. #1920
Eric Davis
2009-01-16 16:34:38 -08:00
4599e21dfb
More spec refactoring, duplicated mocks. #1920
Eric Davis
2009-01-16 16:26:08 -08:00
8b2022fa98
Removed a bunch of custom finders from the specs due to the private method refactoring and stubs. #1920
Eric Davis
2009-01-16 16:24:38 -08:00
82cf412560
Removed duplication
Eric Davis
2009-01-16 16:22:45 -08:00
24c445cce9
Extracted specs from Rate#for for Rate#for_user_project_and_date #1920
Eric Davis
2009-01-16 16:21:45 -08:00
3451286011
Typo, don't need two rates. Rate.rate_for... #1920
Eric Davis
2009-01-16 16:21:18 -08:00
06f8258b38
Extracted an ugly finder method from Rate#for to a private method. #1920
Eric Davis
2009-01-16 16:16:39 -08:00
68b7df3237
Added specs to test for using the default (today) date. #1920
Eric Davis
2009-01-16 16:13:57 -08:00
69d922a029
Refactored Rate#for to only get one record. #1920
Eric Davis
2009-01-16 16:08:13 -08:00
6a211c3e5e
Rate#for will now return the most current rate for the user matching the parameters. #1920
Eric Davis
2009-01-16 16:06:12 -08:00
b59c87b1f6
Implementing Rate#for's internal logic. #1920
Eric Davis
2009-01-16 16:03:15 -08:00
0d9c7e50de
Added specs for the Rate#for parameter. #1920
Eric Davis
2009-01-16 15:54:14 -08:00
820337576c
Show a lock icon if a Rate is locked. #1915
Eric Davis
2009-01-16 15:45:01 -08:00
38b3fd1124
Added rate_id to the time_entries table
Eric Davis
2009-01-16 15:44:31 -08:00
4ea018b304
Reworded spec descriptions.
Eric Davis
2009-01-16 15:34:40 -08:00
0e8bd2153c
Prevent Rates from being destroyed if they are locked. #1919
Eric Davis
2009-01-16 15:33:42 -08:00
3ffb31fafc
Require that a Rate be unlocked before saving it. #1919
Eric Davis
2009-01-16 15:28:34 -08:00
9b0332bf78
Added a Rate#locked? check. #1919
Eric Davis
2009-01-16 15:23:30 -08:00
931ecae4d1
Renamed the Rates tab to Rate History to match the comp. #1915
Eric Davis
2009-01-16 15:17:34 -08:00
bba40af42a
Cleaned up the rate partial UI to better match the comps. #1915
Eric Davis
2009-01-16 15:14:05 -08:00
33d1f84878
Added a named scope to make history lookups easier, Rate.history_for_user(user). #1915
Eric Davis
2009-01-16 15:09:46 -08:00
5296368183
Added the start of a Rate History table in the Rate partial
Eric Davis
2009-01-16 15:05:52 -08:00
e1278bcb69
Patched UsersHelper#user_settings_tabs to add a new Rates tab
Eric Davis
2009-01-16 14:42:33 -08:00
48d394704a
Added data validation for Rates. #1917
Eric Davis
2009-01-16 14:14:21 -08:00
3f39bdaa6b
Added associations to Rate. #1917
Eric Davis
2009-01-16 14:00:11 -08:00
a3c12fed19
Added basic rate model and it's database schema
Eric Davis
2009-01-16 13:56:04 -08:00
bcc80f13fe
Removed Test::Unit
Eric Davis
2009-01-16 13:50:59 -08:00
3cd6610c7f
Added the metadata for registering the plugin to Redmine
Eric Davis
2009-01-16 13:47:54 -08:00
f08f8e548a
Added a description to the README
Eric Davis
2009-01-16 13:47:32 -08:00
f2b85945b4
Added cucumber and rspec testing support
Eric Davis
2009-01-16 13:40:12 -08:00
761a023070
Added licensing documentation
Eric Davis
2009-01-16 13:37:49 -08:00