laminas-api-tools / api-tools

Laminas API Tools module for Laminas
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
37 stars 19 forks source link

Unable to edit previous created RPC services #83

Closed chartjes closed 3 years ago

chartjes commented 3 years ago

Bug Report

Q A
Version Laminas API Tools 1.5.1dev

Summary

Some RPC services I created are no longer editable using the admin.

Current behavior

The first two APIs and services I created for those APIs can be edited. All subsequent ones cannot be edited after creation. When I reload the admin page after creation I see that those new services are greyed out and cannot be edited, along with

How to reproduce

  1. Create an API
  2. Create one or more RPC services and save them
  3. Refresh the main page
  4. See that you cannot edit them

Screen shot attached

Screen Shot 2020-12-07 at 3 23 36 PM

Expected behavior

  1. Create an API
  2. Create one or more RPC services and save them
  3. Refresh the main page
  4. See that you cannot edit them
chartjes commented 3 years ago

After spending a lot of time digging around, the error was because I had neglected to update the factories for the controllers that represent those services. I discovered this by using the developer tools in my browser to look at the XHR calls and saw there were 500 calls.

I dunno if there is any other way to have better messaging around this sort of error.