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

[Issue #507] Allow non delegate users to declare interest in a patch #588

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

andrepapoti
Copy link

@andrepapoti andrepapoti commented Apr 1, 2024

Description

Add the relation between an user and a patch through the Patch's interested_users attribute.
This relations happens through the model PatchInterest that contains a timestamp for when the interest was declared.
Inside a Patch's State there's now an attribute indicating how long an interest can last before it expires.
To remove expired interests async tasks were added using Celery
Serializers and Forms were update to reflect the changes aswell

Related

@andrepapoti andrepapoti marked this pull request as draft April 5, 2024 04:10
@stephenfin
Copy link
Member

I have seen this 👀 but I'm going to leave comments on the issue and discuss things there before looking at this.

@andrepapoti andrepapoti marked this pull request as ready for review April 8, 2024 16:13
@andrepapoti andrepapoti marked this pull request as draft April 15, 2024 19:38
…o review a patch

Users interested in reviewing a Patch are linked by the `planning_to_review` attribute on a Patch through
the PatchReviewIntention model.
Also added a field to State to indicate how long a review intention can last before it expires

Signed-off-by: andrepapoti <[email protected]>
…e PatchReviewIntention for the commenting user

Signed-off-by: andrepapoti <[email protected]>
@andrepapoti andrepapoti force-pushed the i507 branch 3 times, most recently from 4e1c212 to 2eb1ae1 Compare April 17, 2024 15:42
@andrepapoti andrepapoti marked this pull request as ready for review April 17, 2024 15:42
@hero24
Copy link

hero24 commented Oct 23, 2024

I am not certain this solves #507. I can see from the code that there have been changes to model and patch structures to store users interested in the patch, but I don't see anywhere changes to actual user interface. I also run this code using docker-compose on my machine and I don't see any way to show interest in the patch? Am I missing something?

@andrepapoti
Copy link
Author

@hero24 were you unable to declare interest on a patch when running it on a container?

I missed to add a button for it on the UI, I'll add an extra commit with it

@hero24
Copy link

hero24 commented Nov 1, 2024

@andrepapoti I will retest this later and let you know if it works through API for me, When I was testing this, I focused on web interface. I think most people use patchwork through web interface (it would actually be an interesting metric to conduct, but that beyond of the scope), but yes I could not find an add interest button through web, or any other way to declare interest through web interface.

@hero24
Copy link

hero24 commented Nov 1, 2024

As I said earlier I gave this a run and tried looking at it through API. The code crashes, like the other PR, when I access through web /api/patches/XXX/ patchwork crashes. Seems like its user permissions, but it can't crash on api call to patch details, and this works without this PR on standard patchwork code. Attaching screenshot.
Screenshot 2024-11-01 at 21 29 05

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.

Allow non-delegates to claim interest in a series
3 participants