Skip to content

Fix a race condition which allowed duplicate consultations to be created

Codecov / codecov/patch succeeded Aug 19, 2024 in 1s

71.79% of diff hit (target 63.69%)

View this Pull Request on Codecov

71.79% of diff hit (target 63.69%)

Annotations

Check warning on line 383 in care/facility/api/serializers/patient_consultation.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/facility/api/serializers/patient_consultation.py#L383

Added line #L383 was not covered by tests

Check warning on line 390 in care/facility/api/serializers/patient_consultation.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/facility/api/serializers/patient_consultation.py#L390

Added line #L390 was not covered by tests

Check warning on line 396 in care/facility/api/serializers/patient_consultation.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/facility/api/serializers/patient_consultation.py#L396

Added line #L396 was not covered by tests

Check warning on line 414 in care/facility/api/serializers/patient_consultation.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/facility/api/serializers/patient_consultation.py#L414

Added line #L414 was not covered by tests

Check warning on line 444 in care/facility/api/serializers/patient_consultation.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/facility/api/serializers/patient_consultation.py#L444

Added line #L444 was not covered by tests

Check warning on line 450 in care/facility/api/serializers/patient_consultation.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/facility/api/serializers/patient_consultation.py#L449-L450

Added lines #L449 - L450 were not covered by tests

Check warning on line 461 in care/facility/api/serializers/patient_consultation.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/facility/api/serializers/patient_consultation.py#L461

Added line #L461 was not covered by tests

Check warning on line 464 in care/facility/api/serializers/patient_consultation.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/facility/api/serializers/patient_consultation.py#L464

Added line #L464 was not covered by tests

Check warning on line 486 in care/facility/api/serializers/patient_consultation.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/facility/api/serializers/patient_consultation.py#L486

Added line #L486 was not covered by tests

Check warning on line 19 in care/utils/lock.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/utils/lock.py#L19

Added line #L19 was not covered by tests

Check warning on line 23 in care/utils/lock.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

care/utils/lock.py#L23

Added line #L23 was not covered by tests