Skip to content

feat: New file destination plugin#6096

Merged
kodiakhq[bot] merged 17 commits intomainfrom
feat/local_file_plugin
Dec 28, 2022
Merged

feat: New file destination plugin#6096
kodiakhq[bot] merged 17 commits intomainfrom
feat/local_file_plugin

Conversation

@yevgenypats
Copy link
Copy Markdown
Contributor

@yevgenypats yevgenypats commented Dec 28, 2022

Docs and tests passing.

@yevgenypats yevgenypats requested a review from a team December 28, 2022 15:10
@cq-bot cq-bot added the website label Dec 28, 2022
Comment on lines +19 to +20
// This is used for debugging purposes only
NoRotate bool `json:"no_rotate,omitempty"`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should it be removed, if it's only for debugging? What does it do?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is also for user usage. Added documentation under website

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should update the comment above the line then, it currently says that it's for debugging purposes only

yevgenypats and others added 3 commits December 28, 2022 17:50
Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
Copy link
Copy Markdown
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

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

Looks good, still need to test it locally.
Also since we have only 2 file types maybe do it as a package inside the plugin, not sure, to avoid the monorepo complexities, and only move it outside when it's used somewhere else than this plugin.

For example we don't have CI that runs the tests/linting/etc. on this module, so we'll need to create a separate one (or do it inside the file plugin CI)


.PHONY: lint
lint:
@golangci-lint run --config ../../.golangci.yml --timeout 10m --verbose
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.

We can remove the timeout and verbose flags (we have the timeout in the config file, and verbose generates too much information for it to be useful)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks good, still need to test it locally. Also since we have only 2 file types maybe do it as a package inside the plugin, not sure, to avoid the monorepo complexities, and only move it outside when it's used somewhere else than this plugin.

For example we don't have CI that runs the tests/linting/etc. on this module, so we'll need to create a separate one (or do it inside the file plugin CI)

Im going to open a PR for s3, gcs and azure in a moment after this one is merged so we need it to be a package

Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf left a comment

Choose a reason for hiding this comment

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

LGTM apart from the linters failing right now

@yevgenypats yevgenypats added the automerge Automatically merge once required checks pass label Dec 28, 2022
Copy link
Copy Markdown
Member

@disq disq left a comment

Choose a reason for hiding this comment

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

The filename format could use a hash of all columns in table order (esp. in CSV) but maybe later I guess

@vercel
Copy link
Copy Markdown

vercel bot commented Dec 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cloudquery-web 🔄 Building (Inspect) Dec 28, 2022 at 4:59PM (UTC)

@kodiakhq kodiakhq bot merged commit 748cca7 into main Dec 28, 2022
@kodiakhq kodiakhq bot deleted the feat/local_file_plugin branch December 28, 2022 17:03
kodiakhq bot pushed a commit that referenced this pull request Dec 30, 2022
🤖 I have created a release *beep* *boop*
---


## 1.0.0 (2022-12-30)


### Features

* New file destination plugin ([#6096](#6096)) ([748cca7](748cca7))


### Bug Fixes

* **file:** Use external filetypes library ([#6119](#6119)) ([a7219fe](a7219fe))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants