There is no change in the code hence I didn't include it. Tests and the parts of the app they are testing haven't changed. It just decided to start returning something else and 70-ish tests started to fail.
Yes, I did add this to one of the tests to see what error it was. If it's not there it would just say: "Expected status code 403 but received 500. Failed asserting that false is true.".
The joins that are happening in my case are more like select * from user_data left join users. Also if you run the query a dozen times it will always show the same but in my app the issue 'fixes' itself after some time.
I see what you mean but the problem is a bit different. It skips an entry and puts a duplicate of a previous one. It usually 'fixes' itself after some time has passed.
The only thing I've managed to isolate as an issue is wrong response data. And that is the reason why I made the post: I can't really think of where the issue might be coming from .
I can't say I have a lot of experience but the reason I said GET request is that I had in mind to fetch a role, alter it's permissions and then maybe update it. Even if I manage to update with the permissions I want to assign I still need a way of getting the permissions of a particular role through a GET request...
Thanks
I have the same laptop. I'm using nvidia-dkms + optimus-manager and everything works okay.
Thanks for the response. I managed to resolve the issue. :)
Thanks for the response. I managed to resolve the issue. :)
Thanks for the response. I managed to resolve the issue. :)
If you think a link to the composer.lock file and changes in it would help, I have no problem putting a link to it here. :)
There is no change in the code hence I didn't include it. Tests and the parts of the app they are testing haven't changed. It just decided to start returning something else and 70-ish tests started to fail.
Yes, I did add this to one of the tests to see what error it was. If it's not there it would just say: "Expected status code 403 but received 500. Failed asserting that false is true.".
Thank you very much!
The joins that are happening in my case are more like
select * from user_data left join users. Also if you run the query a dozen times it will always show the same but in my app the issue 'fixes' itself after some time.I see what you mean but the problem is a bit different. It skips an entry and puts a duplicate of a previous one. It usually 'fixes' itself after some time has passed.
Thans for responding! Yes, there is data from other tables in the returned data. Could this be causing the issue?
So you are suggesting that there might be too many joins happening when retrieving the record? Thanks for the response!
Thanks for the response! All the info is propperly stored in the DB. It usually 'fixes' itself after some time has passed.
Thank you for taking the trouble to help me. I appreciate it. I'll follow your advice to see if I can find the problem.
The only thing I've managed to isolate as an issue is wrong response data. And that is the reason why I made the post: I can't really think of where the issue might be coming from .
I have made an edit to include a link to the code of the controller responsible for the problematic resource.
I've now included a link to the code of the controller responsible for the problematic resource.
Thanks!
Thanks for the response! Yes, my post is a bit vague but I already solved my problem as other comments gave me an idea of what to do.
Thank you very much for your help!
Thank you!
I can't say I have a lot of experience but the reason I said GET request is that I had in mind to fetch a role, alter it's permissions and then maybe update it. Even if I manage to update with the permissions I want to assign I still need a way of getting the permissions of a particular role through a GET request... Thanks
Thank you so much!
assertJsonCount(2, 'data')solved the issue!Is it ok to write additional policies to check for example if a user can view all records or only the ones that belong to them?
I actually haven't tried it.