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

BAH 2962 | SMS functionality of appointment booking and reminder moved to backend #117

Merged
merged 46 commits into from
Oct 20, 2023

Conversation

atish160384
Copy link

SMS functionality of appointment booking and reminder moved to backend

atishbeehyv123 and others added 21 commits June 1, 2023 14:10
# Conflicts:
#	api/src/main/java/org/openmrs/module/appointments/service/impl/SMSService.java
# Conflicts:
#	api/src/main/java/org/openmrs/module/appointments/service/impl/AppointmentsServiceImpl.java
#	api/src/main/java/org/openmrs/module/appointments/service/impl/SMSService.java
#	api/src/main/resources/messages.properties
#	api/src/test/java/org/openmrs/module/appointments/service/impl/AppointmentVisitLocationTest.java
@CLAassistant
Copy link

CLAassistant commented Sep 13, 2023

CLA assistant check
All committers have signed the CLA.

BAHMNI_RECURRING_APPOINTMENT_UPDATED("bahmni-recurring-appointment");

private final String topic;
AppointmentEventType(String topic) {
Copy link
Member

Choose a reason for hiding this comment

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

we shouldn't be mixing event with the topic here.
if any mapping needs to be done regarding which topic it must be sent to, then the listener to the spring application event (e.g. bahmni events module) - should use some mapping to identify the topic.

Copy link
Member

Choose a reason for hiding this comment

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

import org.springframework.util.StringUtils;


import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

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

replace with single line imports .. no util.* import

Copy link
Member

Choose a reason for hiding this comment

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

this is not replaced .. please replace util.* with single line imports

@anubhavBeehyv anubhavBeehyv requested a review from angshu October 9, 2023 10:01
String message = messageBuilderService.getAppointmentBookingMessage(appointmentArgumentsMapper.createArgumentsMapForRecurringAppointmentBooking(appointment), providersName);
communicationService.sendSMS(phoneNumber, message);
}
private boolean checkGlobalCondition() {
Copy link
Member

Choose a reason for hiding this comment

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

may a method name "shouldSendEmailForBookingAppointment()" is more appropriate than "checkGlobalCondition"?

import org.springframework.util.StringUtils;


import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

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

this is not replaced .. please replace util.* with single line imports

<defaultValue>false</defaultValue>
</globalProperty>

<globalProperty>
Copy link
Member

Choose a reason for hiding this comment

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

We should not be setting property like this. This attribute should be associated with location. Also where is this used? if not used, please remove.

</globalProperty>

<globalProperty>
<property>bahmni.sms.timezone</property>
Copy link
Member

Choose a reason for hiding this comment

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

why is this prefixed with bahmni.sms, where other properties are sms.*?

</globalProperty>

<globalProperty>
<property>bahmni.sms.dateformat</property>
Copy link
Member

Choose a reason for hiding this comment

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

same question as above?

@@ -50,6 +50,7 @@
<javaxMail.version>1.6.2</javaxMail.version>
<servletApi.version>3.0.1</servletApi.version>
<webServices.version>2.29.0</webServices.version>
<communications.version>1.2.0-SNAPSHOT</communications.version>
Copy link
Member

Choose a reason for hiding this comment

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

NOTE: remember to merge changes onto communication omod and ensure that latest snapshot is released before you merge this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure

@atish160384 atish160384 requested a review from angshu October 19, 2023 06:51
@anubhavBeehyv anubhavBeehyv merged commit 7e76a28 into master Oct 20, 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.

6 participants