Skip to content

Conversation

@andrestejerina97
Copy link
Contributor

@matiasperrone-exo matiasperrone-exo changed the title feat: Add news formatter for entitys related to Presentation for speakers feat: Add news formatter for entities related to Presentation for speakers Dec 3, 2025
@andrestejerina97 andrestejerina97 changed the title feat: Add news formatter for entities related to Presentation for speakers feat: : Add a formatter for entities related to speaker presentations. Dec 3, 2025
@andrestejerina97 andrestejerina97 force-pushed the feature/add-formatter-call-for-speaker branch 3 times, most recently from 7a0f72c to 196c76c Compare December 3, 2025 19:33
@andrestejerina97 andrestejerina97 marked this pull request as ready for review December 3, 2025 21:36
Copy link

@caseylocker caseylocker left a 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
Copy link
Collaborator

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

Copy link
Collaborator

@smarcet smarcet left a 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()
Copy link
Collaborator

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:
Copy link
Collaborator

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

@andrestejerina97 andrestejerina97 force-pushed the feature/add-formatter-call-for-speaker branch from d4d163c to 6b32c8b Compare December 5, 2025 13:13
@andrestejerina97 andrestejerina97 force-pushed the feature/add-formatter-call-for-speaker branch from 6b32c8b to 8d57aeb Compare December 5, 2025 13:19
@andrestejerina97 andrestejerina97 force-pushed the feature/add-formatter-call-for-speaker branch from 8d57aeb to 0065fe8 Compare December 5, 2025 13:22
@andrestejerina97 andrestejerina97 force-pushed the feature/add-formatter-call-for-speaker branch from 0065fe8 to 9b97589 Compare December 5, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants