Replies: 8 comments 6 replies
-
Need memory optimizations in issue #245 and @Bottelet said this #245 (comment) I think is not the only optimizations' problem on the CRM. |
Beta Was this translation helpful? Give feedback.
-
For the v3, I think it is better if we use the classic Laravel storage system ? We have complicated PR like #194 |
Beta Was this translation helpful? Give feedback.
-
In the repositories, we not need to pass request as argument, but only data needed. Example, this file (app/Repositories/Role/RoleRepository.php) : /**
* @param $requestData
*/
public function create($requestData)
{
$roleName = $requestData->name;
$roleDescription = $requestData->description;
Role::create([
'name' => strtolower($roleName),
'display_name' => ucfirst($roleName),
'description' => $roleDescription
]);
} to this : /**
* @param $name
* @param $description
*/
public function create($name, $description)
{
Role::create([
'name' => strtolower($name),
'display_name' => ucfirst($name),
'description' => $description
]);
} |
Beta Was this translation helpful? Give feedback.
-
Using PHP 8 ? |
Beta Was this translation helpful? Give feedback.
-
Normally, the redirection to the OAuth connection link should be done at the backend level and not at the frontend level. We have this : @if($filesystem_integration)
<p>
{{ __('Connected with') }} {{ class_basename($filesystem_integration->name) }}
</p>
@endif
<div class="col-sm-4 movedown">
<img src="imagesIntegration/dropbox-logo.svg" width="60%" align="center" alt=""> <br>
@if($filesystem_integration && $filesystem_integration->name == \App\Services\Storage\Dropbox::class)
<form action="{{route('integration.revoke-access')}}" method="POST">
{{ csrf_field() }}
<input type="submit" value="Unlink" class="btn btn-warning movedown">
</form>
@else
<a href="{{$dropbox_auth_url}}"><button {{$filesystem_integration ? 'disabled' : ''}} class="btn btn-md btn-brand movedown">Link Dropbox</button></a>
@endif
</div>
<div class="col-sm-4 movedown">
<img src="imagesIntegration/google-drive-logo.png" width="70%" align="center" alt=""> <br>
@if($filesystem_integration && $filesystem_integration->name == \App\Services\Storage\GoogleDrive::class)
<form action="{{route('integration.revoke-access')}}" method="POST">
{{ csrf_field() }}
<input type="submit" value="Unlink" class="btn btn-warning movedown">
</form>
@else
<a href="{{$google_drive_auth_url}}"><button {{$filesystem_integration ? 'disabled' : ''}} class="btn btn-md btn-brand movedown">Link Google Drive</button></a>
@endif And above all, it's not dynamic |
Beta Was this translation helpful? Give feedback.
-
File : app/Repositories/Format/GetDateFormat.php On the cited file, we create an additional process to display the date for different integration (for moment.js, for carbon ...). |
Beta Was this translation helpful? Give feedback.
-
Security problem : DaybydayCRM/app/Http/Controllers/UsersController.php Lines 171 to 208 in 8b9c7e9 |
Beta Was this translation helpful? Give feedback.
-
Better explicit column or property. For example : to : $product->price_in_cents = $request->price * 100; |
Beta Was this translation helpful? Give feedback.
-
DaybydayCRM V3
@Bottelet and I discussed possible v3. We reported a lot of concerns on v2 (optimization, security, code standard)
The purpose of this discussion is to bring up all the existing problems on v2 so as not to redo them on v3.
We have two solutions :
Thank you
Beta Was this translation helpful? Give feedback.
All reactions