Skip to content

fix: Skip tables.json when packaging destinations#1238

Merged
kodiakhq[bot] merged 2 commits intomainfrom
fix-skip-tables-in-destination-packages
Sep 21, 2023
Merged

fix: Skip tables.json when packaging destinations#1238
kodiakhq[bot] merged 2 commits intomainfrom
fix-skip-tables-in-destination-packages

Conversation

@hermanschaaf
Copy link
Copy Markdown
Contributor

This adds a new type (source or destination) argument to the package command, and switches the ordering of arguments bit (since we're making a breaking change to it anyway). The type is written to package.json as well, and if it is destination, we don't create a tables.json.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 21, 2023

⏱️ Benchmark results

  • Glob-8 ns/op: 98.87

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 21, 2023

Codecov Report

Patch coverage: 35.00% and project coverage change: -0.04% ⚠️

Comparison is base (f6c1cab) 48.84% compared to head (ee53726) 48.80%.

❗ Current head ee53726 differs from pull request most recent head 450218f. Consider uploading reports for the commit 450218f to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1238      +/-   ##
==========================================
- Coverage   48.84%   48.80%   -0.04%     
==========================================
  Files          88       89       +1     
  Lines        8298     8310      +12     
==========================================
+ Hits         4053     4056       +3     
- Misses       3869     3877       +8     
- Partials      376      377       +1     
Files Changed Coverage Δ
plugin/plugin_package.go 0.00% <0.00%> (ø)
serve/package.go 57.75% <50.00%> (-0.19%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

serve/package.go Outdated
}
if err := s.writeTablesJSON(cmd.Context(), distPath); err != nil {
return err
if pluginType == "source" {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if pluginType == "source" {
if pluginType == plugin.TypeSource {

@erezrokah
Copy link
Copy Markdown
Member

This means the CLI should not fail if tables.json doesn't exist correct?

@hermanschaaf
Copy link
Copy Markdown
Contributor Author

This means the CLI should not fail if tables.json doesn't exist correct?

Right, it should skip the tables upload step. I'll update the CLI next

@kodiakhq kodiakhq bot merged commit f6471e3 into main Sep 21, 2023
@kodiakhq kodiakhq bot deleted the fix-skip-tables-in-destination-packages branch September 21, 2023 12:29
kodiakhq bot pushed a commit that referenced this pull request Sep 21, 2023
🤖 I have created a release *beep* *boop*
---


## [4.10.1](v4.10.0...v4.10.1) (2023-09-21)


### Bug Fixes

* **scalar:** Don't pass typed nils in list values ([#1226](#1226)) ([7175e5a](7175e5a))
* Skip tables.json when packaging destinations ([#1238](#1238)) ([f6471e3](f6471e3))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants