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
Old repository not updating news feed and "Updated x ago" #789
Comments
It seems like the "update" hook is missing.. |
Hi, thanks your report! Someone else reported this issue before, and hasn't got an idea why this is happening, but I'm sure it is a bug. |
I don't know either.. I'm trying to add some of them activity manually. |
UUID is generated by serve.go: https://github.com/gogits/gogs/blob/master/cmd/serve.go#L171 |
So I can't add it manually easy? |
At least you cannot do it this way, UUID is for matching operations internally in Gogs, and needs modify database records, too. |
If I remember correctly the repository was created with gogs v5.0.0.. |
@klausenbusk thanks your info! I'll try to test on it. |
Hi @unknwon, I'm experiencing this issue also. It seems to have stopped updating about a day ago. For a new repo I have, it adds to activity feed fine. I had one created in an organisation, that doesn't seem to be updating though. I just created a new user repo and pushed and it updated the activity feed. I created a new organisation repo and pushed and it updated the activity feed. I have updated from master since I created the original repo. I have also switched my origin (the repo was in BitBucket, then I switched it to gogs) in my working copy. I cloned that same repository directly from gogs and the activity doesn't appear in it. Hope that gives you some direction on where to look to fix this issue! |
Ho @deringer is the git update hook missing? |
It's working fine for other repos, unless the hook is per-repository? Where would I look to check @klausenbusk? |
It is per-repository, check /user/repo/hooks . There should be a update file.. |
Looks like it's not there. This is from one of the repos that isn't working:
This is from one that is:
I wonder what would cause the hook to disappear? It might have something to do with the fact that I migrated the repository and that process didn't create the That said, perhaps gogs should check if the EDIT: Adding the missing hook then pushing resulted in the dashboard being updated. |
Doing some light perusing of |
@unknwon I was able to reproduce this (what @deringer said):
|
@klausenbusk thanks for the tip! |
Hi @klausenbusk , I've pushed fix on BTW, if you want to fix old repos, there is an operation called |
I can confirm that it work now, when you do a "Migration".. |
@klausenbusk awesome! Thanks for your patient! |
Today I pushed commits to 3 of my "old" repositories.
Later today, I created a new repository and discovered it added some entry to my "News Feed", every time I did a commit, the "Updated x ago" also got updated under my profile every time.
That got my wondering, why I did that for my 3 commits to my "old" repositories, and why the "Updated x ago" stuck at 3 months..
v0.5.9.1216 Beta
2.2.1
Arch Linux
gogs fix
didn't change anything..The text was updated successfully, but these errors were encountered: