Comments (6)
maybe we should change the data format of the returned table, like many others do. just returning the plain JSON array is IMO insufficient.
adding more information about the result set would also help creating pagination etc...
minimal example:
/bla.xls?limit=100&offset=50
{
total: 5670,
limit: 100,
offset: 50,
data: [ .... ]
}
example with force truncation
/bla.xls?limit=3000
{
total: 5670,
limit: 2354,
offset: 0,
data: [ .... ]
}
this would also allow for a more efficient format for tables. eg:
/bla.xls?limit=3000&type=matrix
{
total: 5670,
limit: 2354,
offset: 0,
type: 'matrix',
columns: [ 'a', 'b', 'c', .... ]
rows: [[0, 1, 2], [3, 4, 5], ...]
}
from helix-data-embed.
Guess querybuilder should help here too? @trieloff
from helix-data-embed.
Not really. I wouldnโt apply a default truncation, as we donโt have a way of indicating that the result set has been truncated.
One possible solution would be to estimate how many elements would be ok and then send a redirect to the same URL with new QB limits applied. The client can then follow the redirect and accept the truncation.
from helix-data-embed.
@davidnuescheler WDYT about adding the extra data
property in the json response ?
from helix-data-embed.
or maybe similar than:
{
"skip": 0,
"limit": 100,
"total": 1256,
"items": [ /* 100 individual resources */ ]
}
from helix-data-embed.
๐ This issue has been resolved in version 2.0.0 ๐
The release is available on:
v2.0.0
- GitHub release
Your semantic-release bot ๐ฆ๐
from helix-data-embed.
Related Issues (20)
- use workbook API from onedrive-support HOT 1
- support passing the drive-item-id as src parameter HOT 1
- fetching data from sharepoint is very slow HOT 3
- Data Discrepancy between Excel and API HOT 3
- Cache (just a little bit) when serving Excel HOT 2
- Pass offset and limit query parameters to MS Graph API HOT 3
- Return last modified date of a file in a header HOT 4
- migrate to helix-deploy HOT 1
- multisheet support HOT 1
- Allow access token to be passed via authentication header HOT 1
- disable size limitation when not running on adobe i/o HOT 1
- add support for per-path metadata extraction
- Remove query-builder support? HOT 3
- Add option to save data to s3 HOT 2
- simplify multi-sheet responses HOT 2
- selecting multiple sheets doesn't work HOT 1
- 429 from Google Sheets becomes 500 in data-embed, should be 429 or 503 HOT 1
- Expose real file name HOT 2
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helix-data-embed.