Skip to content

Conversation

@derasoft004
Copy link

ФИО: Зюзин Егор
Номер группы: 6413
Номер лабораторной: 4
Номер варианта: 67
Краткое описание предметной области: Поликлиника
Краткое описание добавленных фич: «Инфраструктура» - Реализация сервиса генерации данных и его интеграция с сервером, настроены Aspire и Kafka, интеграция PostgeSQL.

derasoft004 and others added 30 commits October 28, 2025 10:45
commit 17: add PolyclinicTests.yml - action for my tests
@github-actions github-actions bot added In progress Код в процессе проверки Lab 4 Лабораторная №4. Инфраструктура labels Dec 25, 2025
Copy link

@DmitryKrakhmalev DmitryKrakhmalev left a comment

Choose a reason for hiding this comment

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

Я не буду проверять лабораторную работу пока не сведете с 2-3 лабораторной. Откладываю.
После того как получите апрув - актуализируете код данной лабораторной и направляете повторный запрос на review

/// <summary>
/// Background service for appointment Kafka consumer
/// </summary>
public class AppointmentKafkaBackgroundService(

Choose a reason for hiding this comment

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

Где потеряли Namespace?

/// <summary>
/// Background service for doctor Kafka consumer
/// </summary>
public class DoctorKafkaBackgroundService(

Choose a reason for hiding this comment

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

Аналогично

/// <summary>
/// Factory for generating contracts
/// </summary>
public static class ContractGenerator

Choose a reason for hiding this comment

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

Аналогично!

/// <summary>
/// Entry point for Kafka contracts generator
/// </summary>
public static class Program

Choose a reason for hiding this comment

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

Зачем вы их удаляли? Они создаются изначально. Такое чувство что текст с нейронки вставляли и не заморачивались.

Copy link

@DmitryKrakhmalev DmitryKrakhmalev left a comment

Choose a reason for hiding this comment

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

Я не засчитываю данную лабораторную. Я несколько раз просил устранить замечания по 2-3 лабораторке но так ничего и не добился. Проверять как работает четвертая без Aspire - не имеет вообще никакого смысла.
По коду тоже еще много замечаний.

/// <summary>
/// Kafka consumer for patient contracts
/// </summary>
public class PatientKafkaConsumer(

Choose a reason for hiding this comment

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

Все консьюмеры написаны без обработок ошибок. Любая ошибка положит BackgroundService на лопатки.

{
var config = new ProducerConfig
{
BootstrapServers = "localhost:9092",

Choose a reason for hiding this comment

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

Коннекты не должны хардкодится. Они должны выноситься в настройки. Если нужно - переопределяться Aspire.

Comment on lines +11 to +13
PassportNumber = Guid.NewGuid().ToString(),
FullName = $"Patient {Random.Shared.Next(1, 1000)}",
DateOfBirth = DateTime.Now.AddYears(-Random.Shared.Next(18, 80))

Choose a reason for hiding this comment

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

Где Bogus? Это одно из условий задания.

Copy link

@DmitryKrakhmalev DmitryKrakhmalev left a comment

Choose a reason for hiding this comment

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

0 баллов

@DmitryKrakhmalev DmitryKrakhmalev added Approved Лабораторная зачтена and removed In progress Код в процессе проверки labels Dec 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Лабораторная зачтена Lab 4 Лабораторная №4. Инфраструктура

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants