Git Product home page Git Product logo

quickbase-cli's People

Contributors

cpliakas avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

quickbase-cli's Issues

Error when doing records query or export on table with more than 20 columns

I have tables in Quickbase with many, many columns. If I do a records query on more than 20 columns or an export of a table with more than 20 columns I get this error:
ERROR message="error decoding response" error="" transid=ca7682t0hqaa7jn29590 code=500
Where is this coming from and is there any workaround?
It seems to be a hard columns (fields) limit. I get an error even if I limit the number of rows retrieved.

Add support for summary fields

Implement a command like the following:

quickbase-cli field create-summary [CHILD_TABLE_ID] [RELATIONSHIP_ID] --field-id [FIELD_ID] --accumulation-type SUM

Add support for field ranges

For example, if we want to return fields 6 through 10, we have to set the following option: --select 6,7,8,9,10,11,12. Wouldn't it be great if we could accomplish the same result by setting --select 6:12?

Provide an option to get a formula through a file

The --formula option accepts a string for a formula, but this can be limiting as formulas can be hundreds of lines long. The goal is to be able to define a formula in a file and be able to point to it to upload the formula.

Create import/export commands

It would be helpful to have import/export commands that can perform these operations with batching and delays to take care of some of the plumbing that needs to be implemented to do these operations at scale.

Print float values as returned

fmt.Sprint will display exponents for large values. We just want to print the data as it is returned bu Quickbase.

strconv.FormatFloat(v.Float64, 'f', -1, 64) should do the trick.

Refactor qbclient configuration for a better DX

This is gross:

func NewQuickbaseClient(cfg *qbclient.ConfigFileProfile) *qbclient.Client {
	v := viper.New()
	v.SetDefault(qbclient.OptionRealmHostname, cfg.RealmHostname)
	v.SetDefault(qbclient.OptionUserToken, cfg.UserToken)
	v.SetDefault(qbclient.OptionTemporaryToken, cfg.TemporaryToken)
	return qbclient.New(qbclient.NewConfig(v))
}

We can do better.

Multple responses are included in the same dump file when running records insert

We have to make two API calls during a records insert, one to get the schema metadata so that we can appropriately serialize the command line data, and the second to insert the records. If you use the -d option to dump what is sent/response over the wide, the response for both the GET /v1/fields?tableId={bdis} and POST /v1/recordsAPI calls are appended to the same dump file. They should be separate files.

Implement friendlier validation messages

Currently, we use the validation error message directly from the go-validate package. The error message are not in the least bit friendly to the user.

For example, omitting the required --accumulation-type option results in the following message:

2021/01/21 00:38:53.235142 ERROR message="Bad request" error="/summaryFields/0 required key [accumulationType] not found" transid=c04cq73rbdg75vn6ti8g code=400

If should just say "accumulation-type option required".

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.