summaryrefslogtreecommitdiff
path: root/server/src
AgeCommit message (Collapse)Author
2025-06-23clippy: Use more effective zero-fill of vectorJoel Klinghed
2025-06-23clippy: Use is_emptyJoel Klinghed
2025-06-23clippy: Remove unused lifetimeJoel Klinghed
2025-06-23clippy: Use more rusty for loopsJoel Klinghed
2025-06-23clippy: Remove unnecessary lambdaJoel Klinghed
2025-06-23clippy: Remove unnecessary returnJoel Klinghed
2025-06-23clippy: Use strip_prefix instead of start_prefix + manual slicingJoel Klinghed
2025-06-22Add support for pushing changes to a translation reviewJoel Klinghed
Finally got around to fixing the pre-receive hook to include quarantined objects so the hook actually can run git commands on the not-yet-accepted commits. As part of that, had to make sure git hook and eyeballs server had the same path to the repo or confusion will appear.
2025-06-19Initial support for translation reviewsJoel Klinghed
2025-06-12git: Make fetch return the new head for the fetched branchJoel Klinghed
2025-06-08grit: Keep part when expandingJoel Klinghed
Makes it possible to still keep track of which file a string comes from.
2025-06-08Add translation moduleJoel Klinghed
Reads from a list of grit files, all strings and their translations.
2025-06-04Make integration actually workJoel Klinghed
Add logs Add remote keys for each user
2025-02-09First integration testJoel Klinghed
Sets up a whole slew of docker instances, all started from clean slate for test.
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-02-01Use workspace instead of featuresJoel Klinghed
Having to include --feature=build-server in basically all commands that wasn't building eyeballs-githook got tiring quickly. Instead, use workspaces, with a separate project for building the githook. It means I also had to add a library common with code shared by both githook and server.
2025-01-29Add git-server to docker-composeJoel Klinghed
To make a githook that can run on alpine images (using musl) they need to be cross-compiled. Then it became apparent that the githook binary was pulling in all the same dependencies as the server was. This is not good, but apparently also not something Rust/Cargo has figured out. RFC:s has been shutdown. workspace might be an option but then I probably need to also add a "code shared by both githook and server" library that both can link. Problem for another day.
2025-01-28Remove leftover printoutJoel Klinghed
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-27Make clippy happyJoel Klinghed
2025-01-26Drive-by: Correct commentJoel Klinghed
2025-01-26Improve error output in hooks and make sure errors and accumilatedJoel Klinghed
2025-01-26Make sure git repo is configured to let pre-receive and post-receiveJoel Klinghed
hooks handle delete and fast forward rules.
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-26Use anyhow to reduce enum error types and map_errJoel Klinghed
2025-01-26Fix tests after adding git reposJoel Klinghed
Use testdir to create directories to put test git in. Use custom test method to find githook binary. Stop using remote so that git repo doesn't try to fetch.
2025-01-26Small style fixJoel Klinghed
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-09Improve (and test) error handlingJoel Klinghed
Non existent projects, users and such.
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-07Add remote & branch to project and reviewJoel Klinghed
Preparing for git connection.
2025-01-07Silence dead/unused code warnings in testsJoel Klinghed
auth module switching implementation based on cfg(test)
2025-01-04Make clippy happyJoel Klinghed
2025-01-04Support ldap in authJoel Klinghed
Non-test auth is now using ldap for account syncing and authentication. Test auth is still using hardcoded users (user and other). But it is now also possible to login as "other".
2025-01-03Add more testsJoel Klinghed
Use project_check_maintainer correctly, should not panic (by .unwrap) but forward the error (by ?).
2025-01-03Add initital testsJoel Klinghed
Also add /users endpoint.
2024-12-31Rename migration so its actually picked upJoel Klinghed
Must be <version>_<description>.sql.
2024-12-30Add methods for modifying projectsJoel Klinghed
While doing that I realized I had forgotten to declare maintainers for projects. Also added default roles and changed so that review_users only contains overrides, so that changes to the project users is instantly applied to all reviews (unless there is an override).
2024-12-30Remove unused lifetimeJoel Klinghed
2024-12-29cargo clippyJoel Klinghed
2024-12-29Minor cleanupJoel Klinghed
Let auth::stage() deal with having to clone the string It shouldn't force the caller to create a String object.
2024-12-29Add openapi generation using utoipaJoel Klinghed
2024-12-29Rework auth to include sessionJoel Klinghed
The actual authentication is still fake.
2024-12-28Improve error handling (404) and remove projectid from review api callJoel Klinghed
Also move reviews to under project to make it obvious that projectid is just that.
2024-12-28cargo fmtJoel Klinghed
2024-12-28Database connectionJoel Klinghed
2024-12-21Initial commitJoel Klinghed