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

Read-model projection Init handler eliminates errors #2251

Open
IhostVlad opened this issue Mar 4, 2022 · 0 comments
Open

Read-model projection Init handler eliminates errors #2251

IhostVlad opened this issue Mar 4, 2022 · 0 comments
Assignees

Comments

@IhostVlad
Copy link
Contributor

IhostVlad commented Mar 4, 2022

Describe the bug
Read-model projection Init handler eliminates errors if one occurs.

To Reproduce
Create Init handler with erroneous behaviour

Init: async (store) => {
  await store.defineTable("abc", { indexes: {"abc": "string" }, fields: [] })
  await store.defineTable("abc", { indexes: {"abc": "string" }, fields: [] })
}

Read-model with such Init handler failed to build, but error is hidden

Expected behaviour
Read-model should crash with error message something like "Duplicate table name"

Desktop (please complete the following information):

  • ReSolve Version: 0.33.15
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

No branches or pull requests

2 participants