Skip to content

Commit

Permalink
Two Fixes
Browse files Browse the repository at this point in the history
* Comment out query handlers because not allowed in projector handlers any more.
* Fix package name for RIDDL libs
  • Loading branch information
reid-spencer committed Mar 22, 2024
1 parent 80de49a commit db45fcb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
30 changes: 16 additions & 14 deletions src/main/riddl/Venues/venueProjections.riddl
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@ projector VenuesView is {
}
}
}
on query GetVenueInfo {
if "GetVenueInfo.venueId exists in this projector" then {
reply result VenueInfo
} else {
error "VenueId not found as requested"
}
}
on query GetVenueCapacityOverview {
if "GetVenueCapacityOverview.venueId exists in this projector" then {
reply result VenueCapacityOverview
} else {
error "No venue found for this venueId"
}
}
// Queries are not supported by Venues.
// These need to be placed on the Repository.
// on query GetVenueInfo {
// if "GetVenueInfo.venueId exists in this projector" then {
// // send result VenueInfo
// } else {
// error "VenueId not found as requested"
// }
// }
// on query GetVenueCapacityOverview {
// if "GetVenueCapacityOverview.venueId exists in this projector" then {
// reply result VenueCapacityOverview
// } else {
// error "No venue found for this venueId"
// }
// }
}
}
2 changes: 1 addition & 1 deletion src/test/scala/app/improving/GenerateTestSiteSpec.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package app.improving

import com.reactific.riddl.testkit.RunCommandSpecBase
import com.ossuminc.riddl.testkit.RunCommandSpecBase

/** Generate a test site */
class GenerateTestSiteSpec extends RunCommandSpecBase {
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/app/improving/test/CheckRiddlTest.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package app.improving.test

import com.reactific.riddl.testkit.RunCommandSpecBase
import com.ossuminc.riddl.testkit.RunCommandSpecBase

class CheckRiddlTest extends RunCommandSpecBase {

Expand Down

0 comments on commit db45fcb

Please sign in to comment.