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

fix(api/list-org-repos): ensure active flag is boolean #1037

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

wass3r
Copy link
Collaborator

@wass3r wass3r commented Jan 14, 2024

closes go-vela/community#853

when GORM is given the proper type, it will use the appropriate query depending on which driver is in use.

tested in local setup with both postgres and sqlite. no functional differences.

as a side note, it's not intuitive to start up the local (or any) stack with sqlite. compilation requires CGO and when using alpine requires you to make sure you are on alpine 3.18 instead of the latest (see issue #1164 on github.com/mattn/go-sqlite3). latest gcc and musl in the newest alpine (3.19.x) apparently do not work with that library. alternatively, and probably preferably, it looks like you can pass CGO_CFLAGS="-D_LARGEFILE64_SOURCE" in addition to CGO_ENABLED=1.

closes go-vela/community#853

when GORM is given the proper type, it will use the proper query
depending on which driver is in use.
@wass3r wass3r requested a review from a team as a code owner January 14, 2024 03:50
Copy link

codecov bot commented Jan 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d79d3a5) 67.03% compared to head (17073bd) 67.03%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1037   +/-   ##
=======================================
  Coverage   67.03%   67.03%           
=======================================
  Files         330      330           
  Lines       14088    14088           
=======================================
  Hits         9444     9444           
  Misses       4165     4165           
  Partials      479      479           

@wass3r wass3r added the bug Indicates a bug label Jan 14, 2024
@wass3r wass3r self-assigned this Jan 14, 2024
Copy link
Contributor

@ecrupper ecrupper left a comment

Choose a reason for hiding this comment

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

Nice. You'll have to share how you got the Sqlite stack running 😄

@wass3r
Copy link
Collaborator Author

wass3r commented Jan 18, 2024

@ecrupper yes, maybe in form of documentation and/or PRs 😬

@ecrupper ecrupper merged commit c3281b4 into main Jan 19, 2024
12 of 13 checks passed
@ecrupper ecrupper deleted the fix/api/list-org-repos branch January 19, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/api/v1/repos/<org> does not work for sqlite3 database.
3 participants