Skip to content

feat: Compact JSON array based response data format support - #4046

Merged
buntarb merged 44 commits into
masterfrom
issues/1030
Feb 17, 2022
Merged

buntarb merged 44 commits into
masterfrom
issues/1030

Conversation

@buntarb

@buntarb buntarb commented Feb 4, 2022 •

Copy link
Copy Markdown
Contributor

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves

#1030

@buntarb
buntarb requested a review from a team as a code owner February 4, 2022 16:54
@github-actions github-actions Bot added the pr:community Contribution from Cube.js community members. label Feb 4, 2022
@codecov

codecov Bot commented Feb 4, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #4046 (c9d6f59) into master (6e21434) will increase coverage by 0.66%.
The diff coverage is 93.20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4046      +/-   ##
==========================================
+ Coverage   58.06%   58.73%   +0.66%     
==========================================
  Files         127      133       +6     
  Lines       10684    10846     +162     
  Branches     2520     2558      +38     
==========================================
+ Hits         6204     6370     +166     
+ Misses       4201     4196       -5     
- Partials      279      280       +1     
Flag Coverage Δ
cube-backend 58.73% <93.20%> (+0.66%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/cubejs-server-core/src/core/DevServer.ts 8.36% <0.00%> (ø)
packages/cubejs-api-gateway/src/graphql.ts 4.16% <25.00%> (ø)
packages/cubejs-api-gateway/src/gateway.ts 66.11% <75.00%> (-1.36%) ⬇️
...ubejs-api-gateway/src/helpers/prepareAnnotation.ts 93.93% <93.93%> (ø)
...ages/cubejs-api-gateway/src/helpers/toConfigMap.ts 100.00% <100.00%> (ø)
...es/cubejs-api-gateway/src/helpers/transformData.ts 100.00% <100.00%> (ø)
...s/cubejs-api-gateway/src/helpers/transformValue.ts 100.00% <100.00%> (ø)
packages/cubejs-api-gateway/src/interfaces.ts 100.00% <100.00%> (ø)
packages/cubejs-api-gateway/src/query.js 74.59% <100.00%> (+1.54%) ⬆️
packages/cubejs-api-gateway/src/types/enums.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88db58d...c9d6f59. Read the comment docs.

@buntarb buntarb changed the title WIP: Issues/1030 WIP: feat(data-protocol): Support for the "compact" parameter in the data requests (issues/1030) Feb 9, 2022
@buntarb buntarb changed the title WIP: feat(data-protocol): Support for the "compact" parameter in the data requests (issues/1030) feat(data-protocol): Support for the "compact" parameter in the data requests (issues/1030) Feb 16, 2022
@buntarb
buntarb requested a review from paveltiunov February 16, 2022 18:56
@buntarb buntarb changed the title feat(data-protocol): Support for the "compact" parameter in the data requests (issues/1030) feat(data-protocol): Support of the "resultFormat" property in the query object Feb 16, 2022
@paveltiunov paveltiunov changed the title feat(data-protocol): Support of the "resultFormat" property in the query object feat: Support compact JSON array based format for response data Feb 17, 2022
@paveltiunov paveltiunov changed the title feat: Support compact JSON array based format for response data feat: Support compact JSON array based response data format Feb 17, 2022
@paveltiunov paveltiunov changed the title feat: Support compact JSON array based response data format feat: Compact JSON array based response data format support Feb 17, 2022
@buntarb
buntarb removed the request for review from paveltiunov February 17, 2022 09:46
@buntarb
buntarb merged commit e74d73c into master Feb 17, 2022
@buntarb
buntarb deleted the issues/1030 branch February 17, 2022 14:54
@rpaik rpaik removed the pr:community Contribution from Cube.js community members. label May 24, 2022
haechangcho pushed a commit to haechangcho/cube that referenced this pull request May 15, 2026
…4046)

* wip

* refactoring around transformData

* refactoring types etc.

* types unifying and refactoring

* refactoring types

* refactoring end

* edge cases solution cube-js#1, some refactoring

* query type based values removed from compact response

* linting warning fix

* typo/linting fixes

* typo/linting fixes

* network protocol changes wip

* transformData general refactoring

* transformData general refactoring

* transformData general refactoring

* methods description added

* helpers unit tests

* helpers unit tests

* helpers unit tests

* helpers unit tests

* transformData ready and covered

* loadResponseInternal ready and covered

* yarn.lock updated with the @babel/preset-env and its deps

* compact transport added to the abstract test case

* resType flag moved to the query object

* added to the query Joi schema

* abstract test case restored

* birdbox result-type test added

* birdbox result-type added to the birdbox workflow

* birdbox result-type added to the birdbox workflow (cli)

* replaced to responseFormat, property moved to queryand client-core#load method

* fix CubejsApi#load definition

* fix CubejsApi#load definition

* birdbox respose type test typo fix and snapshots

* responseFormat e2e tests merged to the postgresql e2e tests

* cleaning up git workflow

* obsolete snapshot file removed

* BigQuery specific value processing removed from the transformValue

* Update abstract-test-case.ts

* fix test suit name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants