-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal: Improve loading time in courseHome page - refs BT#21784 #5589
Internal: Improve loading time in courseHome page - refs BT#21784 #5589
Conversation
Code Climate has analyzed commit 60cd1e4 and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
@@ -250,11 +263,11 @@ class Session implements ResourceWithAccessUrlInterface, Stringable | |||
#[ORM\Column(name: 'duration', type: 'integer', nullable: true)] | |||
protected ?int $duration = null; | |||
|
|||
#[Groups(['session:read'])] | |||
#[Groups(['session:basic', 'session:read'])] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
#[ORM\Column(name: 'nbr_courses', type: 'integer', unique: false, nullable: false)] | ||
protected int $nbrCourses; | ||
|
||
#[Groups(['session:read'])] | ||
#[Groups(['session:basic', 'session:read'])] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
params: { | ||
'groups[]': groups | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
El GroupFilter no está configurado en la clase Session. Entonces, no sería necesario pasarlo en params ya que estás poniendo el grupo en otro endpoint.
Aunque usar GroupFilter en Session sería una opción para no tener otro endpoint
assets/vue/store/cidReq.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En el cidReqStore podría estar useBasic a true por defecto, ya que cidReq es solo para traer la info necesaria de la sesión
No description provided.