by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Waleed Gadelkareem
@gadelkareem
Hi, is there a way to implement a subscription based e-commerce website? do you have an example repo for it?
Ujjawal Sehrawat
@UjjawalSehrawat_twitter
Hey All
Ujjawal Sehrawat
@UjjawalSehrawat_twitter
I have a trouble on qor when I apply multiple filters using queries ,it uses the same db and join all the queries of different filters .
Can you suggest some solution?
This is the first filter
userQueries.Filter(&admin.Filter{
Label: "Account Manager",
Config: &admin.SelectOneConfig{Collection: bulkupload.GetAccountManagers},
Handler: func(db gorm.DB, filter admin.FilterArgument) *gorm.DB {
db = configuration.GetDB(constants.READ)
metaValue := filter.Value.Get("Value")
var filterValue interface{}
if metaValue != nil {
filterValue = metaValue.Value
} else {
filterValue = nil
}
return db.Joins(" JOIN products ON products.id = user_queries.product_id JOIN users ON users.id = products.user_id AND users.deleted_at is null AND users.account_manager_id = ? ", filterValue)
},
})
and this is second one
userQueries.Filter(&admin.Filter{
Label: "Vendor User ID",
Config: &admin.SelectOneConfig{Collection: bulkupload.GetUsers},
Handler: func(db gorm.DB, filter admin.FilterArgument) gorm.DB {
//db1 := configuration.GetDB(constants.READ)
metaValue := filter.Value.Get("Value")
var filterValue interface{}
if metaValue != nil {
filterValue = metaValue.Value
} else {
filterValue = nil
}
//return db1.Exec("select
from user_queries JOIN products ON products.id = user_queries.product_id where products.user_id is not null AND products.user_id = ? ", filterValue)
return db.Joins(" JOIN products ON products.id = user_queries.product_id and products.user_id is not null AND products.user_id = ? ", filterValue)
},
})
How can I implement the second filter?
x0rzkov
@x0rzkov
Hi guys, we are creating a wordpress clone based on qor called qorpress, any objections to it ?
Serge Tan Panza
@stanpanza
Hi guys, has anyone used github.com/qor/page_builder ? Looking for documentation to hook it to a request handler.
sachin-puranik
@sachin-puranik
Hi
I have created a pull request qor/auth#39
Can some one please merge the pull
qi
@zhouqiw
hi
Martijn van Maasakkers
@mvmaasakkers
Hi guys, is it possible to disable a delete action on a qor/admin resource?
Martijn van Maasakkers
@mvmaasakkers
I fixed this by setting invisible to true on the resource and copying code from the AddResource:
Admin.AddMenu(&admin.Menu{Name: inflection.Plural(res.Config.Name), IconName: res.Config.IconName, Permissioner: res, Priority: res.Config.Priority, Ancestors: res.Config.Menu, RelativePath: res.ToParam()})
Admin.RegisterResourceRouters(res, "create", "update", "read")
Nathan Ngo
@nathan.ngo_gitlab
For those who cannot login (see message "You have to confirm your account before continuing"), pls make a change on auth as this PR https://github.com/qor/auth/pull/39/files#diff-74d143ebc83607521c0db57e6225668d
Nathan Ngo
@nathan.ngo_gitlab
Screen Shot 2020-04-02 at 7.20.44 PM.png
can you see the image on the system? all the images on my local cannot be loaded, pls advice how to solve it?
mrasu
@mrasu
Hello, how does qor's admin supports null.String by https://github.com/guregu/null ?
When creating admin simply, edit panel shows "String" and "Valid" section for nullable columns.
But values of the section are empty even when it have some text
Kevin
@kevinx8888_gitlab

How can I access login page for a provider. Accessing http://localhost:9000/auth/login results in following page:

I do see the login file under password/views/auth/login/providers/password/tmpl, but cannot find the url which would send this page. Could not find anything in PasswordProvider .ServeHttp method which sends this page - was expecting a handle in this file

Kevin
@kevinx8888_gitlab
Screenshot from 2020-04-19 09-18-31.png
Arturo de la Vega Ruiz
@ArturoDLVega_twitter
Hello
Im getting this
image.png
someone knows why?
twit-twit
@slyfox_neil_twitter
hello, I want to try the qor example, using go get command. Its failing with the following errors:
neil@neil-Inspiron-7577:~$ go get -u github.com/qor/qor-example
# github.com/qor/auth
go1: internal compiler error: in methods, at go/gofrontend/types.cc:8611
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
# github.com/qor/exchange/backends/csv
go/src/github.com/qor/exchange/backends/csv/xlsx2csv.go:28:27: error: reference to undefined field or method ‘Rows’
for _, row := range sheet.Rows {
^
go/src/github.com/qor/exchange/backends/csv/xlsx2csv.go:28:27: error: reference to undefined field or method ‘Rows’
go/src/github.com/qor/exchange/backends/csv/xlsx2csv.go:41:3: error: range clause must have array, slice, string, map, or channel type
for i, cell := range row.Cells {
^
go/src/github.com/qor/exchange/backends/csv/xlsx2csv.go:28:2: error: range clause must have array, slice, string, map, or channel type
for _, row := range sheet.Rows {
^
go/src/github.com/qor/exchange/backends/csv/xlsx2csv.go:28:6: error: invalid type for range clause
for _, row := range sheet.Rows {
^
neil@neil-Inspiron-7577:~$
Tao Ritchie
@Tatt_y_twitter
Any experienced QOR/Go programmers looking for freelance work?
Akshay448
@Akshay448
yes
how can i contact?
Glenford Williams
@glenfordwilliams
image.png
how do i get the dropdown to show something other than blank spaces?
Andre Basse
@abasse
@glenfordwilliams Look at the select one Dcoumentation for a dropdown example https://doc.getqor.com/admin/metas/select-one.html
Glenford Williams
@glenfordwilliams
@abasse thanks i found that afterwards and had some success, Only issue i have now is i'm not sure how to set a default value in the editing view
Glenford Williams
@glenfordwilliams
anyone?
Furkan AKSOY
@fufuceng
hi all,
Is there anyone who can reach the doc? I've got 503 error
Aibyn
@Aibaend
Hi all, One question is it possible to change Add and Edit word in slideout?

Screen Shot 2020-04-02 at 7.20.44 PM.png

put public before system

Prakash Divy
@prakashdivyy
hello, is there any easiest way to learn how to use qor? i cloned the example repository and still can't run it well