Skip to content
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

Merged
merged 18 commits into from
Dec 17, 2023
Merged

FZ-122 initial version of meetings tquery #185

merged 18 commits into from
Dec 17, 2023

Conversation

mblajek
Copy link
Owner

@mblajek mblajek commented Dec 6, 2023

No description provided.

@mblajek mblajek marked this pull request as ready for review December 12, 2023 23:19
@mblajek mblajek requested a review from atryda12 December 12, 2023 23:19
#[OpenApiGet(
path: '/api/v1/facility/{facility}/meeting/tquery',
permissions: new PermissionDescribe(Permission::facilityAdmin),
summary: 'All facilities tquery',
Copy link
Contributor

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;
Copy link
Contributor

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?

Copy link
Owner Author

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

@@ -62,6 +63,15 @@ public function __construct(
)
),
tags: [$tag],
parameters: $isFacility ? [
Copy link
Contributor

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.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

poprawione tu i tam

@mblajek mblajek requested a review from atryda12 December 14, 2023 01:16
@mblajek mblajek merged commit cb15daa into develop Dec 17, 2023
1 check passed
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.

3 participants