GithubHelp home page GithubHelp logo

builder-backend's Introduction

ILLA Design Logo

ILLA

Accelerate your internal tools development.

Create with ❤︎ by contributors

Chat on Discord Follow on Twitter Discuss on GitHub License contributing

✨ What is illa-builder-backend

illa-builder-backend is the backend of illa-builder which is a tool to help you build your internal tools.

💬 Community

Join ILLA Community to share your ideas, suggestions or questions and connect with other users and contributors.

Discussion

Discuss on GitHub

Hangout together!

Chat on Discord

🌱 Contributing

Thinking about contributing? All kinds of contributions to ILLA are greatly appreciated and welcomed! Check out Contributing Guide for details about how you can get involved.

📖 Learn more

Please visit ILLA Cloud.

License

This project is Apache License 2.0

builder-backend's People

Contributors

aruseito avatar dependabot[bot] avatar karminski avatar naj1n avatar owenlongbo avatar priyansh121096 avatar shandamengcheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

builder-backend's Issues

map null data from postgres got panic

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.

ERROR: column "options" of relation "resources" does not exist

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.

[BUG] Illa Registration & Github Integration use case-sensitive email

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:

  1. You either have all lower case account for Illa.ai registration and Capital case (which only the 1st char use capital / upper case letter) for your Github account or vice versa
  2. When I want integrate my github account, the current system will recognize them as 2 different email address & will reject the integration.
  3. This bug also happen when I register to Illa with my Github account, while actually I alrdy have Illa account with the same email account

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

Screenshots

Desktop (please complete the following information):

  • OS: all versions
  • Browser: all
  • Version: Current version of this issue creation date

Additional context
No Additional context

[BUG] Wrong connection type in error message

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 -

return common.RuntimeResult{Success: false}, errors.New("failed to get clickhouse connection")

oracle -
return common.RuntimeResult{Success: false}, errors.New("failed to get clickhouse connection")

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):

  • OS: any
  • Browser: any
  • Version: latest

I'll quickly raise a PR for this. Please assign this to me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.