You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resource Named Routes and Named Parameters change after upgrade from 0.14 to 0.16.8. also reproducible on brand new app generated from scratch
probably matches a list of reserved names but it would nice to know that list
on new initialized app it's not really a problem but on existing app (I have a nested resource under Devices)
it needs a lot of refactoring and
pop "BelongsTo" call seems to ignore the customized "fk_id" tag. and looks for "devex_id" instead of "device_id" for the nested resource, I guess that would be more a bug for pop than buffalo. the only work around is either hardcode a where query or a Eager query.
here a very plain simple out-of-the-box simulation showing/reproducing the problem, I'm happy to post more in comments later to avoid confusion
Steps to Reproduce the Problem
create new app buffalo new whatever --db-type sqlite3
create resource devices buffalo g resource devices
Please run buffalo info and paste the information below where it says "PASTE_HERE".
-> Go: Checking installation
✓ The `go` executable was found on your system at: /home/toby/bin/go
-> Go: Checking minimum version requirements
✓ Your version of Go, 1.14.2, meets the minimum requirements.
-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.
-> Go: Checking PATH
✘ Your PATH (/home/mitico/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin) does not contain /home/toby/go/bin.
Without /home/mitico/go/bin in your `PATH` any Go executables can not be run globally.
For help setting up your Go environment please follow the instructions for you platform at:
https://www.gopherguides.com/courses/preparing-your-environment-for-go-development
-> Node: Checking installation
✓ The `node` executable was found on your system at: /home/mitico/bin/node
-> Node: Checking minimum version requirements
✓ Your version of Node, v13.10.1, meets the minimum requirements.
-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /home/mitico/bin/npm
-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.2, meets the minimum requirements.
-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /home/mitico/bin/yarnpkg
-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.4, meets the minimum requirements.
-> PostgreSQL: Checking installation
✘ The `postgres` executable could not be found on your system.
For help setting up your Postgres environment please follow the instructions for you platform at:
https://www.postgresql.org/download/
-> MySQL: Checking installation
✘ The `mysql` executable could not be found on your system.
For help setting up your MySQL environment please follow the instructions for you platform at:
https://www.mysql.com/downloads/
-> SQLite3: Checking installation
✓ The `sqlite3` executable was found on your system at: /usr/bin/sqlite3
-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.29.0, meets the minimum requirements.
-> Cockroach: Checking installation
✘ The `cockroach` executable could not be found on your system.
For help setting up your Cockroach environment please follow the instructions for you platform at:
https://www.cockroachlabs.com/docs/stable/
-> Buffalo (CLI): Checking installation
✓ The `buffalo` executable was found on your system at: /home/toby/bin/buffalo
-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.16.8, meets the minimum requirements.
-> Buffalo: Application Details
Pwd /home/mitico/whatever
Root /home/mitico/whatever
GoPath /home/mitico/go
PackagePkg whatever
ActionsPkg whatever/actions
ModelsPkg whatever/models
GriftsPkg whatever/grifts
WithModules true
Name whatever
Bin bin/whatever
VCS git
WithPop true
WithSQLite true
WithDep false
WithWebpack true
WithNodeJs true
WithYarn true
WithDocker true
WithGrifts true
AsWeb true
AsAPI false
InApp true
PackageJSON {map[build:webpack -p --progress dev:webpack --watch]}
-> Buffalo: config/buffalo-app.toml
name = "whatever"
bin = "bin/whatever"
vcs = "git"
with_pop = true
with_sqlite = true
with_dep = false
with_webpack = true
with_nodejs = true
with_yarn = true
with_docker = true
with_grifts = true
as_web = true
as_api = false
-> Buffalo: config/buffalo-plugins.toml
[[plugin]]
binary = "buffalo-pop"
go_get = "github.com/gobuffalo/buffalo-pop/v2"
tags = ["sqlite"]
-> Buffalo: go.mod
module whatever
go 1.14
require (
github.com/gobuffalo/buffalo v0.15.5
github.com/gobuffalo/buffalo-pop/v2 v2.0.6
github.com/gobuffalo/envy v1.9.0
github.com/gobuffalo/mw-csrf v0.0.0-20190129204204-25460a055517
github.com/gobuffalo/mw-forcessl v0.0.0-20180802152810-73921ae7a130
github.com/gobuffalo/mw-i18n v0.0.0-20190129204410-552713a3ebb4
github.com/gobuffalo/mw-paramlogger v0.0.0-20190129202837-395da1998525
github.com/gobuffalo/packr/v2 v2.8.0
github.com/gobuffalo/pop/v5 v5.1.1
github.com/gobuffalo/validate/v3 v3.1.0
github.com/gobuffalo/x v0.0.0-20190224155809-6bb134105960
github.com/gofrs/uuid v3.2.0+incompatible
github.com/markbates/grift v1.5.0
github.com/unrolled/secure v0.0.0-20190103195806-76e6d4e9b90c
)
The text was updated successfully, but these errors were encountered:
Description
Resource Named Routes and Named Parameters change after upgrade from 0.14 to 0.16.8. also reproducible on brand new app generated from scratch
probably matches a list of reserved names but it would nice to know that list
on new initialized app it's not really a problem but on existing app (I have a nested resource under Devices)
here a very plain simple out-of-the-box simulation showing/reproducing the problem, I'm happy to post more in comments later to avoid confusion
Steps to Reproduce the Problem
buffalo new whatever --db-type sqlite3
buffalo g resource devices
buffalo pop migrate up
buffalo routes
Expected Behavior
Actual Behavior
Info
Please run
buffalo info
and paste the information below where it says "PASTE_HERE".The text was updated successfully, but these errors were encountered: