-
Notifications
You must be signed in to change notification settings - Fork 0
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
FZ-122 initial version of meetings tquery #185
Conversation
#[OpenApiGet( | ||
path: '/api/v1/facility/{facility}/meeting/tquery', | ||
permissions: new PermissionDescribe(Permission::facilityAdmin), | ||
summary: 'All facilities tquery', |
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.
Summary skopiowane z facilities tu i poniżej.
if (!$this->dataType->isDict()) { | ||
FatalExceptionFactory::tquery()->throw(); | ||
} | ||
$this->dictionaryId = is_string($dictionary) ? $dictionary : $dictionary->value; |
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.
Ta logika się powtarza, może zrobić jakiegoś helpera?
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.
wydaje mi się, że jeszcze bym tego nie wyciągał, to jest powtórzone 2 razy, i nie jest jakąś wielką logiką. A IDE ogarnia sobie typy dobrze przy tym
app/Tquery/OpenApi/OpenApiPost.php
Outdated
@@ -62,6 +63,15 @@ public function __construct( | |||
) | |||
), | |||
tags: [$tag], | |||
parameters: $isFacility ? [ |
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.
Nie wiem czy nie lepiej by było to do jakiegoś helpera wyciągnąć i każdorazowo pisać
parameters: [facilityParameter(), others]
właśnei ze względu na to others - z isFacility ustawiamy cały array a zaraz się okaże, że np w jednym facility poście trzeba inny param i się zrobi skomplikowana logika tutaj.
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.
poprawione tu i tam
No description provided.