# |
Feb 24th 2020, 12:55 |
kevin.pfeifer |
but if you say there shouldn't be any reason to delete old migrations then i will leave them be |
# |
Feb 24th 2020, 12:54 |
kevin.pfeifer |
i just want to clean up my repo. So the migration_snapshot command creates a migration representation of my current DB status as i see right now. |
# |
Feb 24th 2020, 12:53 |
k4t |
I am thinking about that solution: https://github.com/Gregwar/Captcha |
# |
Feb 24th 2020, 12:53 |
k4t |
Sorry, project in which I need Captcha is made with CakePHP2 :/ |
# |
Feb 24th 2020, 12:51 |
spriz |
but make sure it's exectued everywhere |
# |
Feb 24th 2020, 12:50 |
spriz |
If you really want, you can do this: `bin/cake bake migration_snapshot Foo` and delete all previous migrations |
# |
Feb 24th 2020, 12:50 |
spriz |
@kevin.pfeifer Why would you ever need to? :) |
# |
Feb 24th 2020, 12:49 |
kevin.pfeifer |
Hey Community, I got a question about Migrations. I got quite the amount of migrations, which have already been applied on my test and live instances. Now my question is: When can/should I delete old migrations which are not necessary any more? |
# |
Feb 24th 2020, 12:48 |
spriz |
some opinions here https://law.stackexchange.com/questions/27908/gdpr-recaptcha-with-users-consent |
# |
Feb 24th 2020, 12:45 |
spriz |
and they harvest your user |
# |
Feb 24th 2020, 12:45 |
spriz |
I guess the issue is Google reCAPTCHA is usually loaded without the user giving consent |
# |
Feb 24th 2020, 12:45 |
cnizzardini |
? |
# |
Feb 24th 2020, 12:44 |
cnizzardini |
Google recatchpa is not GDPR compliant> |
# |
Feb 24th 2020, 12:38 |
k4t |
can u recommend captcha solution for CakePHP 3? Except reCAPTCHA which is not GDPR compliant |
# |
Feb 24th 2020, 12:37 |
k4t |
hello |
# |
Feb 24th 2020, 12:32 |
naino |
Alright thanks :) |
# |
Feb 24th 2020, 12:30 |
ndm |
Yes it is, the 1.x version is CakePHP 3 compatible |
# |
Feb 24th 2020, 12:26 |
naino |
Hi, is it possible to use Authentication plugin with Cakephp 3.8? Thanks. |
# |
Feb 24th 2020, 12:12 |
rahulmbohra |
:raising_hand: Roll call! Who else is here? |
# |
Feb 24th 2020, 11:36 |
dereuromark |
I am a bit lost on that strategy part Did a manual ```ResponseFactory implements ResponseFactoryInterface``` to create new cake specific ```return new Response($headers, (string)$body);``` but that didnt quite work for now. |
# |
Feb 24th 2020, 11:33 |
admad |
Hmm I had submitted a patch to that class way back. Don't remember anything now. Can have a look later today. |
# |
Feb 24th 2020, 11:22 |
dereuromark |
```CommonClassesStrategy``` has some cake related config setup, but not sure how this is used, seems to not work as expected for us here. |
# |
Feb 24th 2020, 11:18 |
dereuromark |
client I get, but "Http\Discovery\NotFoundException: No message factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation." |
# |
Feb 24th 2020, 11:16 |
dereuromark |
@admad Trying to get this adapter working for cake4. How is the client and factory instantiated for cake4 apps here? https://github.com/php-http/cakephp-adapter/blob/cake4/src/Client.php |
# |
Feb 24th 2020, 11:12 |
admad |
@noel pretty much every FOC plugin has a cake 4 compatible beta release. Check the releases page of any repo. And btw at least I have no interest wasting time tweeting :) |
# |
Feb 24th 2020, 11:01 |
spriz |
if you add it will be in the same transaction :) Just beware the outer transaction fails if the "inner transaction" does :) |
# |
Feb 24th 2020, 10:58 |
ndm |
yes it does, and cakes beforesave event is in the transaction... check the sql logs |
# |
Feb 24th 2020, 10:55 |
noel |
Maybe I should start with a different question. If one does `$table->save()` does that start a transaction? And if one wanted to do some manual inserts that this save should be dependent on, how could one intercept that transaction and add dependent queries to it? |
# |
Feb 24th 2020, 10:52 |
noel |
I mean I could start a transaction as per https://book.cakephp.org/3/en/orm/database-basics.html#using-transactions but how to make sure that isn't a different transaction from the enclosing `save`? |
# |
Feb 24th 2020, 10:50 |
noel |
Ok cool. So here's a FOCing question then :) I'm using CRUD and I'm wanting to do a related insert manually during the `beforeSave` event but I want it to be transactionally linked to the enclosing save. Is there a way to achieve that? |
# |
Feb 24th 2020, 10:48 |
challgren |
Yes FOC is pretty active, theres a big upgrade push right now so everyones off doing projects all over |
# |
Feb 24th 2020, 10:48 |
simondotunix |
Okay :$ |
# |
Feb 24th 2020, 10:48 |
dereuromark |
by the community and the people helping through doing PRs etc :) |
# |
Feb 24th 2020, 10:47 |
noel |
@challgren so it is actively maintained? |
# |
Feb 24th 2020, 10:47 |
challgren |
PRs are always needed |
# |
Feb 24th 2020, 10:47 |
challgren |
Submit PRs |
# |
Feb 24th 2020, 10:45 |
simondotunix |
How could i Join/contribute to friendsofcake? :thinking_face: |
# |
Feb 24th 2020, 10:44 |
spriz |
I mean, at least the repos are not dead at all! Not sure about some stuff :) :) |
# |
Feb 24th 2020, 10:44 |
spriz |
@noel not dead at all! |
# |
Feb 24th 2020, 10:41 |
simondotunix |
Idk.. Last year |
# |
Feb 24th 2020, 10:41 |
challgren |
Hmm when did you last try? |