summaryrefslogtreecommitdiff
path: root/server/.sqlx
AgeCommit message (Collapse)Author
2025-02-20WIPWIPJoel Klinghed
2025-02-06Add DELETE command for reviewJoel Klinghed
Only the owner or a maintainer of the project can remove a review. Removing a review also removes the git branch. Only reviews that are either draft or dropped can be removed.
2025-02-01Include branch in project/reviews responseJoel Klinghed
But also add /review endpoint that takes an id. So you can get review data with either the reviewid or the branchname.
2025-01-28Generate authorized_keys from user keysJoel Klinghed
2025-01-27Add user keys to databaseJoel Klinghed
Next step is to generate authorized_keys files for git server based on keys.
2025-01-26Stop using current user in git hooksJoel Klinghed
Want to support any authentication for the git server, so use git commiter as username for creating reviews instead of the local user that logged in to git. Also verify that pushed commits has a valid author in pre-receive. This is tricky as pre-receive must do this check in the hook, because pre-receive runs when before the objects are pushed so the server can't read the commits, the hook must do this.
2025-01-26Add basic git supportJoel Klinghed
Pushing a commit to a new branch creates a review. Each project has its own git directory, with githooks installed that talkes with server process via unix sockets.
2025-01-09fixup! Add string id for project and reduce usage of numeric ids in generalJoel Klinghed
Apperntly, cargo sqlx prepare --all is not enough, we need: cargo sqlx prepare -- --all-targets --all-features
2025-01-09fixup! Improve (and test) error handlingJoel Klinghed
Forgot a sqlx query
2025-01-09Add string id for project and reduce usage of numeric ids in generalJoel Klinghed
User: username must be unique, use as primary key and drop id.
2025-01-09Move sqlx to "offline mode"Joel Klinghed
Avoid having to have an active server and a migrated database to be able to build. Instead, when a new query is added or the database updated, cargo sqlx prepare needs to be run again, then with a running server and an active database. But only then.