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

Gorma master generates broken UpdateFrom method name on Goa master #129

Closed
trevrosen opened this issue Sep 7, 2016 · 0 comments
Closed

Comments

@trevrosen
Copy link
Contributor

trevrosen commented Sep 7, 2016

NOTE: this is only an issue on post- v1.0.0 commits of Goa.

Reproducing

  1. Create a multi-word resource named foo_bar with create and update actions
  2. Create a model called FooBar
  3. Create a user type called foo_bar
  4. Declare a BuildsFrom in the FooBar model for both the create and update actions
  5. Generate all the things!
  6. Add a call to models.UpdateFromUpdateFooBarPayload to one of your controllers
  7. Attempt to start the server

Result

Server will not boot because the update method has not been generated. Open models/foobar.go and note that the storage interface contains the ersatz function name UpdateFromfoo_bar

Helpful info

  • The Create companion method seems to generate fine -- it's just the Update one that is borked.
  • This Goa commit appears to introduce the change which triggers this behavior: 35d91a4a4e9ec630f4cb3dea33c897cd2c8b6259
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

1 participant