Subject: | Breaks all "non autocrud" URLs. |
This is an absolutely lovely module and I'd love to integrate it with my
app, but I have some issues:
1. It breaks my app badly.
It states "If you already have a Catalyst app with DBIx::Class models
configured", you only have to add AutoCRUD to the app config. When I
go to localhost:3000/autocrud, it works great. When I go to
localhost:3000/ (or any other url aside from /autocrud), it breaks with:
You can connect to your server at http://curtis-poes-computer-
3.local:3000
[warn] Calling $c->view() will return a random view unless you
specify one of:
[warn] * $c->config(default_view => "the name of the default view to
use")
[warn] * $c->stash->{current_view} # the name of the view to use for
this request
[warn] * $c->stash->{current_view_instance} # the instance of the
view to use for this request
[warn] NB: in version 5.81, the "random" behavior will not work at all.
[error] Caught exception in Veure::View::AutoCRUD::JSON->process
"must provide object to convert at
/Library/Perl/5.10.1/Catalyst/View/JSON.pm line 44"
I can't tell why from the docs. CRUD is (currently) a low priority for me,
so I stopped using it as I don't (yet) need this feature.
2. It also states "No two columns in a given table may have the same FK
constraint".
That breaks a particular use case I have. Particularly, my "email" table
has a "to_id" and a "from_id", both pointing to the same table.
3. It's not clear from the docs (to me) how to restrict access.
I'm using Catalyst::Controller::ActionRole and a custom role to ensure
that certain urls can only be accessed by those with admin privileges. I
can't tell how to hook this into AutoCRUD. I suppose I could write a
custom subclass of the plugin, so this is the least of my issues.
Cheers,
Ovid