-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[FEATURE] Refresh button when branch changes #18427
Comments
Yes, eventsource can be used in theory for server-to-client updates. I have the general impression that our eventsource is rather unstable and I think in the long run, we'd be better to switch it to websockets. |
Yes, switching to websocket is a final way we need to do. |
Honestly when I wrote the eventsource I looked at all of the alternatives and thought that as we only needed server side events a websocket was not the way to go. |
What evidence do you have that the eventsource is unstable? |
Can this not be completed as easily using the eventsource? Or is the idea that we don't want to keep adding to it? |
Eventsource works basically fine. Its heavily being used for similar usecases in some projects like woodpecker. But the most sustainable solution would probably be following the graphql (#14721) idea. Adding eventsources / own websocket protocols for such large projects like gitea don't scale in my opinion. If you are really searching for a quick and dirty solution, I would rather suggest to use some kind of polling with |
An uniform websocket service could be used in many pages/features. Gitea should move forward to be more instantly in code review or other collabrations. |
Any progress on this? Would love to add lazy loading of large pull requests as-well. Happy to pull or do some little tasks for ya'll |
I have not heard of any progress yet. I think it's probably important to point out that these three things are separate issues:
|
I'm up for solving this if the bounty still stands and noone else is working on it? |
Recommended reading if you decide on going the GraphQL route: https://wundergraph.com/blog/deprecate_graphql_subscriptions_over_websockets And: |
why does my github not have refresh button |
Feature Description
Sometimes when reviewing large PRs, reviewers can be reviewing stale data if the branch has been updated since last loading the page. GitHub has a nice little feature that pops up an orange "refresh" button if the underlying branch changes. It would be great if Gitea had something similar.
From zeripath: "there are a couple of things that could be used for this. Probably the best thing to do would be for the webpage to register with the eventsource and get that to listen for the notify"
Screenshots
The text was updated successfully, but these errors were encountered: