Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: clean up db pull implementation #2175

Merged
merged 2 commits into from
May 8, 2024
Merged

chore: clean up db pull implementation #2175

merged 2 commits into from
May 8, 2024

Conversation

sweatybridge
Copy link
Contributor

What kind of change does this PR introduce?

Bug fix, feature, docs update, ...

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Feel free to include screenshots if it includes visual changes.

Additional context

Add any other context or screenshots.

@sweatybridge sweatybridge requested a review from a team as a code owner April 17, 2024 10:35
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8997979681

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 4 (0.0%) changed or added relevant lines in 2 files are covered.
  • 553 unchanged lines in 35 files lost coverage.
  • Overall coverage decreased (-0.5%) to 57.441%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/db/remote/changes/changes.go 0 2 0.0%
internal/db/remote/commit/commit.go 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
internal/branches/list/list.go 1 0.0%
internal/utils/access_token.go 1 96.51%
internal/branches/create/create.go 2 90.48%
internal/storage/mv/mv.go 2 96.61%
internal/utils/tenant/postgrest.go 2 86.67%
internal/storage/ls/ls.go 2 89.22%
internal/utils/tenant/storage.go 2 85.71%
internal/storage/cp/cp.go 2 93.22%
internal/utils/tenant/gotrue.go 2 85.71%
internal/projects/delete/delete.go 3 64.29%
Totals Coverage Status
Change from base Build 8719980286: -0.5%
Covered Lines: 6380
Relevant Lines: 11107

💛 - Coveralls

@sweatybridge sweatybridge merged commit 2647536 into develop May 8, 2024
9 checks passed
@sweatybridge sweatybridge deleted the clean-pull branch May 8, 2024 07:49
encima pushed a commit that referenced this pull request May 13, 2024
* chore: clean up db pull implementation

* chore: update unit tests
sweatybridge added a commit that referenced this pull request May 21, 2024
#2246)

* initial work to split out queries into standalone scripts

* add report command to export all command output to CSV files and embed
SQL scripts

* add progress printing to report command

* add output flag to specify directory

* Update internal/inspect/utils.go

Co-authored-by: Han Qiao <sweatybridge@gmail.com>

* use pgx for csv output and rename flag for output path

* chore(deps): bump tar from 7.0.1 to 7.1.0 (#2240)

Bumps [tar](https://github.com/isaacs/node-tar) from 7.0.1 to 7.1.0.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](isaacs/node-tar@v7.0.1...v7.1.0)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump github.com/golangci/golangci-lint from 1.57.2 to 1.58.0 (#2241)

chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.57.2 to 1.58.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](golangci/golangci-lint@v1.57.2...v1.58.0)

---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump golang.org/x/term from 0.19.0 to 0.20.0 (#2243)

Bumps [golang.org/x/term](https://github.com/golang/term) from 0.19.0 to 0.20.0.
- [Commits](golang/term@v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump golang.org/x/oauth2 from 0.19.0 to 0.20.0 (#2242)

Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.19.0 to 0.20.0.
- [Commits](golang/oauth2@v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: bump edge-runtime to 1.47.0

* fix: bump studio version (#2245)

* chore(deps): bump github.com/gin-gonic/gin from 1.9.1 to 1.10.0 (#2249)

Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.9.1 to 1.10.0.
- [Release notes](https://github.com/gin-gonic/gin/releases)
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md)
- [Commits](gin-gonic/gin@v1.9.1...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: bump edge-runtime to 1.48.0

* chore(deps): bump golangci/golangci-lint-action from 5 to 6 (#2248)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 5 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v5...v6)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: clean up db pull implementation (#2175)

* chore: clean up db pull implementation

* chore: update unit tests

* feat: add hook secrets

* Apply suggestions from code review

* fix: add send sms hook as test

* chore: typo in variable name

* fix: index out of bound when applying migrations

* chore(deps): bump github.com/golangci/golangci-lint from 1.58.0 to 1.58.1 (#2256)

chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.58.0 to 1.58.1.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](golangci/golangci-lint@v1.58.0...v1.58.1)

---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump github.com/charmbracelet/bubbletea from 0.26.1 to 0.26.2 (#2257)

chore(deps): bump github.com/charmbracelet/bubbletea

Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.26.1 to 0.26.2.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](charmbracelet/bubbletea@v0.26.1...v0.26.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: support struct return type for pgmock

* fix: add unit test for cache hit

* fix: create migrations dir before saving diff (#2260)

* chore(deps): bump github.com/docker/cli from 26.1.1+incompatible to 26.1.2+incompatible (#2261)

chore(deps): bump github.com/docker/cli

Bumps [github.com/docker/cli](https://github.com/docker/cli) from 26.1.1+incompatible to 26.1.2+incompatible.
- [Commits](docker/cli@v26.1.1...v26.1.2)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump github.com/containers/common from 0.58.2 to 0.58.3 (#2262)

Bumps [github.com/containers/common](https://github.com/containers/common) from 0.58.2 to 0.58.3.
- [Release notes](https://github.com/containers/common/releases)
- [Commits](containers/common@v0.58.2...v0.58.3)

---
updated-dependencies:
- dependency-name: github.com/containers/common
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump github.com/docker/docker from 26.1.1+incompatible to 26.1.2+incompatible (#2263)

chore(deps): bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 26.1.1+incompatible to 26.1.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](moby/moby@v26.1.1...v26.1.2)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: bump edge-runtime to 1.49.0

* initial work to split out queries into standalone scripts

* add test cases for inspect commands

* chore: use pg schemas in unit tests

* chore: test report command

* chore: verify connection is closed

* chore: embed queries within each command package

* chore: move query reading to file walker

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Han Qiao <sweatybridge@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lakshan Perera <lakshan@laktek.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: joel <lee.yi.jie.joel@gmail.com>
Co-authored-by: Qiao Han <qiao@supabase.io>
Co-authored-by: Nyannyacha <meow@nnc.gg>
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.

None yet

2 participants