Use the column accessor instead of set_column when inserting new objects
[catagits/Catalyst-Controller-DBIC-API.git] / Changes
CommitLineData
d2739840 1Revision history for Catalyst-Controller-DBIC-API: {{ $dist->version }}
2
3{{ $NEXT }}
d5aa6982 4
c50b4fa4 5- Use the column accessor instead of set_column when inserting new objects
6
d5aa6982 72.004001 2011-08-19 16:17:53 Europe/Vienna
c50b4fa4 8
362e979f 9- Changed stored_model and stored_result_source attributes to methods for
10 ACCEPT_CONTEXT/Catalyst::Component::InstancePerContext compatibility
4b74202c 11
6c8742fe 122.003002 2011-05-09 12:30:01 Europe/Vienna
13
71c17090 14- Added has_errors method
6c8742fe 15- Fixed tests to succeed with newer DBIx::Class and Moose versions
4e5983f2 16- Fixed controller instantiation failures with Moose 2 in relation to prefetch
71c17090 17
28eb7216 182.003001 2011-02-16 17:52:37 Europe/Vienna
19
0b0bf911 20- Use JSON instead of JSON::Any to get rid of the CPAN Testers failures
21 when only JSON::Syck is available
22
e17f1f8e 232.002004 2011-01-13 19:22:20 Europe/Vienna
24
8175463b 25- Renamed Visitor to Validator::Visitor to conform with Data::DPath::Validator
26 and moved it into a separate file.
28098e5d 27- Fixed failure because of Data::DPath >=0.41 by not using
55ab6ddf 28 MooseX::Role::BuildInstanceOf for the validator attributes (RT#64673)
29- Added result_class and stash_key attributes to Catalyst::Controller::DBIC::API,
30 allowing the values of them to be derived from the controller configuration (RT#63686)
8175463b 31
ee4d2dac 322.002003 2010-09-16 10:44:40 Europe/Vienna
33
a1f71064 34- Added REST and RPC delete_bulk tests
35- Fixed RPC delete_bulk not working at all
0b8c7370 36- Added REST and RPC update_bulk tests
a623b44a 37- Removed useless RPC index action
4a805f62 38- Fixed static configured page attribute not being used (RT#56226)
0cd7ab9e 39- Test use_json_boolean true
11ba2ccc 40- Fixed search attribute generation for nonexistent relationships
7821bdec 41- Remove trailing newlines from error messages
a1f71064 42
222a4b68 432.002002 2010-08-03 14:40:50 Europe/Vienna
44
02b625cd 45- Fixed search for related columns overwriting existing params in generate_column_parameters
3b12c2cd 46- Use column accessor for updating an existing object instead of passing the new values to update.
47 This enables the column accessors to do additional work (for example with method modifiers).
25448916 48- Fixed t/rpc/list.t error message regex to pass with Moose version >=1.05
b66d4310 49- Fixed pod coverage and added a test for it
02b625cd 50
312d9f36 512.002001 2010-04-01 01:41:11 Europe/Berlin
52
dae7bd3b 53- Remove debugging code and other noise from tests
73517f50 54- Fixed some typos and code cleanups
609916e5 55- Added possibility to fetch a single object by id + tests using 'item'
56- Added item_root attribute which defaults to 'data' and is used as data root for 'item'
967ca182 57- Break out bulk actions into their own methods for RPC
58- Restore identifer vs. no identifer for REST chains
59- Chain dispatching has now been fixed to not be as hackish as before
60- Shift around where the current result set is set. setup() now does /nothing/ by default other than be a chain anchor
61- Tests added for updating related keys via REST
9a29ee35 62- generate_rs is now used to get the default resultset inside inflate_request
1eb6cc20 63- No longer uses Catalyst::Action::REST to do dispatching instead uses ActionRole and MatchRequestMethod
967ca182 64- PLEASE THOROUGHLY TEST AS SOME BEHAVIOR MAY HAVE BEEN ALTERED SUBTLY WHEN DEALING WITH BULK vs SINGLE ACTIONS
dde94674 65
1c780c32 662.001003 2010-02-12 19:01:56 America/Chicago
67
b421ef50 68- Fill out some coercions to allow more complex search criteria (like sort order)
69- Promote the helper functions into full methods
70- Allow iterative customization by breaking down the save_objects into several discrete steps
c5ec3461 71- Make sure those steps also include $c
b421ef50 72
7689faa0 732.001002 2010-02-09 01:01:57 America/Chicago
74
4b74202c 75- Fixed missing requirement for MooseX::Types::Structured
f44ff62d 76- Fixed MooseX::Aliases usage (we don't any more)
c9b8a798 77- Object inflation during end was broken out into its own method: each_object_inflate
33003023 78- Enable offset based paging
4b74202c 79
802.001001
d666a194 81**************************************************************
82** THIS RELEASE GUARANTEES TO BREAK BACKWARDS COMPATIBILITY **
83**************************************************************
84
d2739840 85- Merge create and update into update_or_create
86- object is much advanced now:
87 + Identifier can be omitted, and data_root in the request is interpreted
88- Because of the above one object or several is now possible for update or create
89- Create and Update object validation now happens iteratively
90- Creates and Updates can be mixed inside a single bulk request
91- All modifying actions on the database occur within an all-or-nothing transaction
92- Much of the DBIC search parameter munging is properly moved to the RequestArguments
93 Role in the form of a trigger on 'search' to populate 'search_parameters' and
94 'search_attributes' which correspond directly to ->search($parameters, $attributes);
95- Error handling is now much more consistent, using Try::Tiny everywhere possible
96- Tests are now modernized and use JSON::Any
97- Extending is now explicitly done via Moose method modifiers
98- The only portion of the stash in use is to allow runtime definition of create/update_allows
99- list is now broken down into several steps:
d666a194 100 + list_munge_parameters
101 + list_perform_search
102 + list_format_output
103 + row_format_output (which is just a passthrough per row)
104- Search can now take an array of hashrefs to give the ability to use the default 'OR'
105- By default search_parameters is an ArrayRef[HashRef] which is pertinent to list_munge_parameters
106- More thorough documentation of the various bits and pieces.
107 + Documentation now uses Pod::Weaver and Plugin::PodWeaver (weaver.ini added)
108- The distribution is now managed by Dist::Zilla
109- And some more likely forgotten.
d2739840 110
1111.004002
112- Implement 'as' as a complement to 'select'
113- CGI::Expand'ed search parameters are now also JSON decoded + test
114- Fixed pod for parameters using a json string which shouldn't be surrounded
115 by single quotes
116- Use next instead of NEXT in RPC
117- Moved sub object from RPC/REST to Base to DRY
118 This will break your code if you subclass from REST
119 and had relied on the action name 'object'
120- Check for defined objects before returning them for create/update
121
1221.004001
123- Allow for more complex prefetch_allows (multiple keys in hash)
124- Skip non-existant parameters in deserialization
125- Fixed whitespace to use spaces instead of tabs
126- Fixed pod to not use the config attributes from before 1.004
127- Fixed prefetch_allows check to properly handle nested attrs + test
128
1291.004000
130- Moosify
131- Move validation for *_exposes/*_allows to Data::DPath::Validator
132- Reorganize internals to use Moose and roles
133- Allow maximum configuration for what request parameters are named
134- Properly handle JSON boolean values
135- Earlier and more consistent validation of configuration and request parameters
136
1371.003004
138- Database errors are also handled for searches + tests
139- Totalcount isn't included in the response if a db error occurs while fetching data
140- Converted no_plan tests to done_testing (required Test::More 0.88)
141
1421.003003
143- Database errors are properly handled + test
144- Fixed isa redefined warnings
145- Fixed bug preventing compat with future Catalyst::Action::Deserialize versions
146
1471.003002
148- Added totalcount to paged list responses
149- Fixed some tests weren't run in t/rpc/list.t
150- Fixed wrong setup_dbic_args_method error message
151
1521.003001
153- Minor fix to prevent failing test
154
1551.003000
156- Added prefetch support
157- Refactored to ensure all request params accept JSON, CGI::Expand or standard params
158- Doc improvements
159
1601.002000
161- Better error handing when unable to parse search arg
162- Added setup_dbic_args_method config option
163- Added list_search_exposes config option
164- Removed duplicate tests in t/rpc/list.t and t/rest/list.t
165- Fixed searches on columns which have a rel with the same name
166 and vice versa
167- Added search by json
168- Added pagination support
169
1701.001000
171- Added setup_list_method configuration flag (jshirley)
172- Added support for setting config params in stash
173- Added list_grouped_by, list_count and list_ordered_by config attributes
174- Fixed bug with behaviour of list_returns
175
1761.000002
177- Fixed lack of deserialization under RPC
178
1791.000001
180- Improved docs
181
1821.000000
183- Released
184