Skip to content

Commit c3f8962

Browse files
committed
refactor/qg-290: код настроек гугл-календарей перенесён в schedule.settings
1 parent ad8fede commit c3f8962

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

app/src/main/kotlin/pro/qyoga/app/therapist/appointments/core/schedule/GoogleCalendarSettingsController.kt renamed to app/src/main/kotlin/pro/qyoga/app/therapist/appointments/core/schedule/settings/GoogleCalendarSettingsController.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package pro.qyoga.app.therapist.appointments.core.schedule
1+
package pro.qyoga.app.therapist.appointments.core.schedule.settings
22

33
import org.springframework.http.HttpStatus
44
import org.springframework.security.core.annotation.AuthenticationPrincipal
@@ -41,7 +41,7 @@ class GoogleCalendarSettingsController(
4141

4242
fun updateCalendarSettingsPath(googleAccount: GoogleAccountRef, calendarId: String): String =
4343
UPDATE_CALENDAR_SETTINGS_PATH
44-
.replace("{googleAccount}", googleAccount.id?.toString() ?: "")
44+
.replace("{googleAccount}", googleAccount.id.toString())
4545
.replace("{calendarId}", calendarId)
4646

4747
}

app/src/main/kotlin/pro/qyoga/app/therapist/appointments/core/schedule/GoogleCalendarSettingsPageModel.kt renamed to app/src/main/kotlin/pro/qyoga/app/therapist/appointments/core/schedule/settings/GoogleCalendarSettingsPageModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package pro.qyoga.app.therapist.appointments.core.schedule
1+
package pro.qyoga.app.therapist.appointments.core.schedule.settings
22

33
import org.springframework.web.servlet.ModelAndView
44
import pro.qyoga.i9ns.calendars.google.views.GoogleAccountCalendarsSettingsView

app/src/test/kotlin/pro/qyoga/tests/clients/api/TherapistGoogleCalendarIntegrationApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import org.jsoup.nodes.Document
66
import org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationResponse
77
import org.springframework.test.web.reactive.server.WebTestClient
88
import org.springframework.web.reactive.function.BodyInserters.fromValue
9-
import pro.qyoga.app.therapist.appointments.core.schedule.GoogleCalendarSettingsController
9+
import pro.qyoga.app.therapist.appointments.core.schedule.settings.GoogleCalendarSettingsController
1010
import pro.qyoga.i9ns.calendars.google.model.GoogleAccountRef
1111
import pro.qyoga.tests.platform.spring.web_test_client.getBodyAsString
1212
import pro.qyoga.tests.platform.spring.web_test_client.redirectLocation

app/src/testFixtures/kotlin/pro/qyoga/tests/fixture/test_apis/GoogleCalendarTestApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package pro.qyoga.tests.fixture.test_apis
22

33
import org.springframework.stereotype.Component
4-
import pro.qyoga.app.therapist.appointments.core.schedule.GoogleCalendarSettingsController
4+
import pro.qyoga.app.therapist.appointments.core.schedule.settings.GoogleCalendarSettingsController
55
import pro.qyoga.core.users.therapists.TherapistRef
66
import pro.qyoga.i9ns.calendars.google.GoogleCalendarsService
77
import pro.qyoga.i9ns.calendars.google.model.GoogleAccount
@@ -18,7 +18,7 @@ class GoogleCalendarTestApi(
1818

1919
fun getGoogleCalendarsSettings(therapistRef: TherapistRef): List<GoogleAccountCalendarsSettingsView> {
2020
return googleCalendarSettingsController.getGoogleCalendarSettingsComponent(
21-
idOnlyUserDetails(therapistRef.id!!)
21+
idOnlyUserDetails(therapistRef.id)
2222
).accounts
2323
}
2424

app/src/testFixtures/kotlin/pro/qyoga/tests/pages/therapist/appointments/google_calendars/GoogleCalendarsSettingsLoaderComponent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package pro.qyoga.tests.pages.therapist.appointments.google_calendars
22

33
import io.kotest.matchers.Matcher
44
import org.jsoup.nodes.Element
5-
import pro.qyoga.app.therapist.appointments.core.schedule.GoogleCalendarSettingsController
5+
import pro.qyoga.app.therapist.appointments.core.schedule.settings.GoogleCalendarSettingsController
66
import pro.qyoga.tests.assertions.haveAttributeValue
77
import pro.qyoga.tests.platform.html.Component
88
import pro.qyoga.tests.platform.kotest.all

0 commit comments

Comments
 (0)