Skip to content

Remember the projects a person contributes to - #494

Draft
Mbeaulne wants to merge 1 commit into
MB/projects-apifrom
MB/project-contributors
Draft

Mbeaulne wants to merge 1 commit into
MB/projects-apifrom
MB/project-contributors

Conversation

@Mbeaulne

@Mbeaulne Mbeaulne commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Intent

Help people find projects they have worked on, including projects started by a teammate, when they move to another device.

Current behavior

The Projects service can list projects by creator. It has no record of other people who contributed.

What changes

A signed-in person can record their own contribution once per project. My Projects returns projects they created or contributed to, and the project can list those people. Existing projects include their creator immediately. Opening a project does not add the viewer. Project access and the creator filter keep their existing meaning.

This extends the Projects API in #466. The product UI can use these endpoints in a follow-up.

How to test

  1. In the API docs at /docs, create a project as one user. Open List Contributors for its ID. The creator should appear.
  2. As a second user with write access, open Get Project for the same ID. The project should still be absent from List My Projects for this user.
  3. Run Record Contributor twice as the second user. List My Projects should now show the project once, with its original creator. List Contributors should show both users.
  4. Delete the test project. It should disappear from the personal list.

All 280 Projects tests passed locally, and Black passed on the changed files. A concurrent check against SQLite and MySQL 8 confirmed that four requests from one person produced one record.

Distributed Stack

Feature: Tangent project collaboration

Depends on

Coordinate with

assert no_write_client.put(own_contribution).status_code == 403
assert read_only_client.put(own_contribution).status_code == 503
assert other_user_client.put(own_contribution).status_code == 204
assert client.delete(base).status_code == 200
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.

1 participant