illacloud / builder-backend Goto Github PK
View Code? Open in Web Editor NEWILLA Builder Backend
License: Apache License 2.0
ILLA Builder Backend
License: Apache License 2.0
Describe the bug
When I integrate my github account, I expected success to happen but failure happened instead
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Email account supposed to be case insensitive. i.e.:
[email protected] and [email protected] is same email account, if you try send email to both & you will ended up get 2 emails
And if you found Illa accounts with almost identical emails (the only difference is with Capital case and other which has no capital) please merge their assets (AI & Apps) & account instead deleting one of them
Desktop (please complete the following information):
Additional context
No Additional context
The column name of resources in postgres-init.sh
is "content", but named "options" in resource repository.
# postgres-init.sh
create table if not exists resources
(
id bigserial not null
primary key,
name varchar(200) not null, /* 200 character */
type smallint not null,
content jsonb,
created_at timestamp not null,
created_by bigint not null,
updated_at timestamp not null,
updated_by bigint not null
);
//resource.go
type Resource struct {
ID int `gorm:"column:id;type:bigserial;primary_key"`
Name string `gorm:"column:name;type:varchar;size:200;not null"`
Type int `gorm:"column:type;type:smallint;not null"`
Options db.JSONB `gorm:"column:options;type:jsonb"`
CreatedAt time.Time `gorm:"column:created_at;type:timestamp;not null"`
CreatedBy int `gorm:"column:created_by;type:bigint;not null"`
UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;not null"`
UpdatedBy int `gorm:"column:updated_by;type:bigint;not null"`
}
It's a fatal error since we can't create any resources.
builder-backend/pkg/smtp/service.go
Line 39 in 58aa74c
Describe the bug
When getting a mssql/oracle connection, if getConnectionWithOptions
returns an error, the error that is raised says "failed to get clickhouse connection".
To Reproduce
mssql -
Expected behavior
It should say "failed to get mssql connection" or "failed to get oracle connection" for mssql and oracle respectively.
Desktop (please complete the following information):
I'll quickly raise a PR for this. Please assign this to me.
Hello,
I'm using illa-builder to query data from postgres db. The problem here is my query can produce nil data in some columns, and it causes panic here:
2023/02/17 01:26:15 [Recovery] 2023/02/17 - 01:26:15 panic recovered:
reflect: New(nil)
/usr/local/go/src/reflect/value.go:3086 (0x4a150c)
/opt/illa/builder-backend/pkg/plugins/postgresql/base.go:148 (0x1645d64)
RetrieveToMap: valuePtrs[i] = reflect.New(reflect.TypeOf(v)).Interface() // allocate pointer to type
/opt/illa/builder-backend/pkg/plugins/postgresql/service.go:132 (0x16467e7)
(*Connector).Run: mapRes, err := RetrieveToMap(rows)
/opt/illa/builder-backend/pkg/action/service.go:254 (0x1c69ef2)
(*ActionServiceImpl).RunAction: res, err := actionAssemblyLine.Run(rsc.Options, action.Template)
/opt/illa/builder-backend/api/resthandler/action.go:275 (0x1c7b7fc)
ActionRestHandlerImpl.RunAction: res, err := impl.actionService.RunAction(act)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0x1c76bda)
/opt/illa/builder-backend/pkg/user/middleware.go:41 (0x1c76bbe)
JWTAuth.func1: c.Next()
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0x1c8bcdd)
/opt/illa/builder-backend/pkg/cors/middleware.go:36 (0x1c8bcc9)
Cors.func1: c.Next()
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0x943821)
/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:101 (0x94380c)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0x942690)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:616 (0x9422f8)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:572 (0x941e3c)
/usr/local/go/src/net/http/server.go:2947 (0x6f1b2b)
/usr/local/go/src/net/http/server.go:1991 (0x6ecd46)
Would you please review and take care of this case?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.