-
Notifications
You must be signed in to change notification settings - Fork 2
feat: : Add a formatter for entities related to speaker presentations. #466
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
Conversation
7a0f72c to
196c76c
Compare
caseylocker
left a comment
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.
DRY suggestion: Refactor to deduplicate the getUserInfo() function that's copied in multiple formatter classes. Suggest moving it to AbstractAuditLogFormatter
| $this->event_type = $event_type; | ||
| } | ||
|
|
||
| private function getUserInfo(): string |
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.
@andrestejerina97 move this to AbstractAuditLogFormatter and remove dupe code
smarcet
left a comment
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.
@andrestejerina97 please review comments
|
|
||
| switch ($this->event_type) { | ||
| case IAuditStrategy::EVENT_ENTITY_CREATION: | ||
| $submission_dates = $subject->getSubmissionBeginDate() && $subject->getSubmissionEndDate() |
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.
@andrestejerina97 use SelectionPlan::hasSelectionPeriodDefined helper method here
| $plan_name = $selection_plan ? $selection_plan->getName() : 'Unknown Plan'; | ||
|
|
||
| switch ($this->event_type) { | ||
| case IAuditStrategy::EVENT_ENTITY_CREATION: |
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.
@andrestejerina97 this logic is not quite rite , a presentation could be created from show admin itself
in order to apply this strategy u need to check that endpoint being called is
POST api/v1/summits/{id}/presentations
d4d163c to
6b32c8b
Compare
6b32c8b to
8d57aeb
Compare
8d57aeb to
0065fe8
Compare
0065fe8 to
9b97589
Compare
ref: https://app.clickup.com/t/86b7n0xv4