Skip to content

New remote method generator removing matching named methods in other models #20

@WoodyWoodsta

Description

@WoodyWoodsta

Bug or feature request

  • Bug
  • Feature request

Repro steps of bug

  • Create a skeleton Loopback app.
  • Create two models using the generator.
  • Create a remote method in one of the models.
  • Create a remote method with the same name as the previous, but in the second model.
  • Observe that the first remote method created is removed

Expected result

AFAIK, remote methods with the same name but in different models (ie. resulting in different URL paths) are valid.

Actual result (if bug)

Looback remote method generator is removing a remote method from any model upon generating a second one with the same name.

Additional information (Node.js version, LoopBack version, etc)

Loopback: 2.0.0 (generator-loopback@3.0.0)
Node: v6.10.0

Update

This appears to also occur when performing any cli operation in a project with two remote methods with the same name (manually generated)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions