Skip to content

Commit e28fe3c

Browse files
authored
[CLX-3799][Horizon] Refactor domain services api (#3488)
refs: CLX-3799 affects: Student release note: none
1 parent 2697bdb commit e28fe3c

File tree

27 files changed

+705
-461
lines changed

27 files changed

+705
-461
lines changed

libs/canvas-api-2/build.gradle

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@ apply plugin: 'kotlin-parcelize'
2222
apply plugin: 'com.google.devtools.ksp'
2323
apply plugin: 'dagger.hilt.android.plugin'
2424

25-
def redwoodDebugBaseUrl = "https://redwood-api-dev.us-east-1.core.inseng.io"
26-
def redwoodReleaseBaseUrl = "https://redwood-api.us-east-1.core.inseng.io"
27-
28-
def journeyDebugBaseUrl = "https://journey-server-dev.journey.nonprod.inseng.io"
29-
def journeyReleaseBaseUrl = "https://journey-server-prod.us-east-1.temp.prod.inseng.io"
30-
25+
def journeyDebugBaseUrl = "https://journey-server-edge.us-east-1.core.inseng.io"
26+
def journeyReleaseBaseUrl = "https://journey-server-prod.{region}.core.inseng.io"
3127

3228
static String isTesting() {
3329
if ( System.getenv("IS_TESTING") == "true" ) {
@@ -56,11 +52,9 @@ android {
5652

5753
buildTypes {
5854
debug {
59-
buildConfigField "String", "REDWOOD_BASE_URL", "\"$redwoodDebugBaseUrl\""
6055
buildConfigField "String", "JOURNEY_BASE_URL", "\"$journeyDebugBaseUrl\""
6156
}
6257
release {
63-
buildConfigField "String", "REDWOOD_BASE_URL", "\"$redwoodReleaseBaseUrl\""
6458
buildConfigField "String", "JOURNEY_BASE_URL", "\"$journeyReleaseBaseUrl\""
6559

6660
minifyEnabled false
@@ -103,6 +97,7 @@ apollo {
10397

10498
generateSourcesDuringGradleSync.set(true)
10599
}
100+
// We need to include Redwood’s schema to use Journey’s type-safe proxy interface.
106101
service("redwood") {
107102
setSourceFolder("com/instructure/redwood")
108103
packageName.set("com.instructure.redwood")

libs/canvas-api-2/src/main/graphql/com/instructure/journey/CreateWidget.graphql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ mutation CreateWidget(
44
) {
55
createWidget(input: $input, userAccountId: $userAccountId) {
66
id
7-
name
87
type
98
position
109
createdAt
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mutation ExecuteRedwoodQuery($input: RedwoodQueryInput!) {
2+
executeRedwoodQuery(input: $input) {
3+
data
4+
errors
5+
}
6+
}

libs/canvas-api-2/src/main/graphql/com/instructure/journey/getWidgetByTypeAndUser.graphql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ query GetWidgetByTypeAndUser(
77
type: $type
88
) {
99
id
10-
name
1110
type
1211
position
1312
createdAt

0 commit comments

Comments
 (0)