# |
Jul 19th 2017, 20:27 |
inoas |
jeremyharris still around/awake ;)? |
# |
Jul 19th 2017, 19:48 |
mikesmoniker |
If your duplicate rule can be backed with a UNIQUE index in the DB then at least even if Cake does miss it in validation the BD will reject it. |
# |
Jul 19th 2017, 19:45 |
birdy247 |
just wondered if you had ever seen it before |
# |
Jul 19th 2017, 19:45 |
birdy247 |
will look into it |
# |
Jul 19th 2017, 19:45 |
birdy247 |
yea, just amazed the app rule doesnt stop the 2nd transaction |
# |
Jul 19th 2017, 19:44 |
dereuromark |
hmm, maybe thats the issue? but shouldnt be, you would have to debug and find out why |
# |
Jul 19th 2017, 19:44 |
birdy247 |
maybe a very small overlap |
# |
Jul 19th 2017, 19:44 |
dereuromark |
no, it cant |
# |
Jul 19th 2017, 19:44 |
birdy247 |
yes single worker |
# |
Jul 19th 2017, 19:44 |
birdy247 |
could a worker run at exactly the same time? |
# |
Jul 19th 2017, 19:43 |
dereuromark |
it is a single worker? |
# |
Jul 19th 2017, 19:43 |
birdy247 |
I cant understand how if I have a application rule toprevent this |
# |
Jul 19th 2017, 19:43 |
birdy247 |
but very very occasionally, the results are saved twice |
# |
Jul 19th 2017, 19:43 |
birdy247 |
I have rules in cake to avoid duplicate records |
# |
Jul 19th 2017, 19:42 |
birdy247 |
@dereuromark I am using your great queue plugin. I run a worker to parse a spreadhseet and then save records in a single transaction. |
# |
Jul 19th 2017, 18:35 |
dereuromark |
awesome, thanks! |
# |
Jul 19th 2017, 18:34 |
NickBusey |
Just submitted a PR for a mistake in the docks |
# |
Jul 19th 2017, 18:30 |
NickBusey |
I didn't know about the ide-helper until just now, just ran it on our codebase, so much nicer. Thanks @dereuromark! |
# |
Jul 19th 2017, 18:20 |
heter |
thanks you so much |
# |
Jul 19th 2017, 18:20 |
heter |
makes sense |
# |
Jul 19th 2017, 18:19 |
dereuromark |
or use your own CustomAjax view class :slightly_smiling_face: That would then skip this magic |
# |
Jul 19th 2017, 18:19 |
dereuromark |
https://github.com/cakephp/cakephp/blob/master/src/Controller/Component/RequestHandlerComponent.php#L584-L596 |
# |
Jul 19th 2017, 18:18 |
heter |
@dereuromark can u give me some more details or some proper link to docs? :P |
# |
Jul 19th 2017, 18:17 |
dereuromark |
overwrite wha the request handler puts in :slightly_smiling_face: |
# |
Jul 19th 2017, 18:15 |
heter |
hi there, how can i prevent cake to use "ajax" folder for views when im doing ajax requests? i need to use templates right from its template directory |
# |
Jul 19th 2017, 18:13 |
inoas |
I cant imagine lorenzo being happy with setWhere() ;P |
# |
Jul 19th 2017, 18:12 |
inoas |
(if it stores state) |
# |
Jul 19th 2017, 18:12 |
inoas |
and in future decide if a class is a builder or a read/write object |
# |
Jul 19th 2017, 18:12 |
inoas |
just strip all the set from UrlOptions |
# |
Jul 19th 2017, 18:01 |
dereuromark |
Sounds very theoretical, would love to see a concrete implementation to try out how it feels :slightly_smiling_face: |
# |
Jul 19th 2017, 18:00 |
inoas |
where would you think this is bad @ dereuromark https://github.com/cakephp/cakephp/pull/10887#issuecomment-316465007 |
# |
Jul 19th 2017, 17:59 |
inoas |
(but as long as it is non destructive I'd autodetect, convention out of the box, and make it overwritable) |
# |
Jul 19th 2017, 17:59 |
inoas |
I am not using Ides so I have to first understand what you do ;p |
# |
Jul 19th 2017, 17:58 |
dereuromark |
Would you rather have it by default for all, or with a small config to set them as whitelist? |
# |
Jul 19th 2017, 17:57 |
inoas |
Admin, Backend, Web, Frontend, Api, Service? |
# |
Jul 19th 2017, 17:57 |
inoas |
and sometimes Api |
# |
Jul 19th 2017, 17:56 |
inoas |
we use Admin and Frontend |
# |
Jul 19th 2017, 17:56 |
dereuromark |
I never used anything else than "Admin" to be honest, not sure what others of the community do |
# |
Jul 19th 2017, 17:55 |
dereuromark |
Anyone else some feedback on https://github.com/dereuromark/cakephp-ide-helper/pull/28 ? What strategy would be best? |
# |
Jul 19th 2017, 17:50 |
inoas |
https://github.com/cakephp/cakephp/pull/10887#issuecomment-316465007 |
# |
Jul 19th 2017, 17:45 |
inoas |
$options or orm building => all functions are setters, if you want to get things prefix with get*() |