-
-
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
"Activities" tab and the logging for it is bad for the privacy - should be optional #7927
Comments
Not entirely effective. The push date is written by git, no matter what the pusher sends. Anyone can check the log and see the actual dates if it comes to that. |
@guillep2k From the page you linked:
So it would be still saved at the git server, but not everyone from the internet would be able to see it |
@l-jonas You are right! One can learn something new every day. |
I don't see how that could be implemented |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
There was no activity but the issue does still exist |
I can't catch what's the problem. If you have read permission of git repository, you will get all the informations on |
@lunny Did you read the whole thread? The "Activities" contain more data than git itself provides. Git itself only provides logs of the commit timestamps but Gitea additionally logs other events (like push timestamps) for the "Activities" and sends it to anyone who requests it. |
I don't see why hiding the push date is important, unless you want to make your boss believe you've worked at a different time than you did. 🤣 |
@guillep2k It's not only a date, it's a timestamp. And it's not for the boss, because it's publicly visible for anyone and for a long time. |
Ah I think I understand. You would like to say change the displayed timeformat to only say display the day something was done or possibly even the month - not withstanding that if you can access git you can get the full timestamps in any case. I would say that you could simply set within the ...
[time]
format=2006-01-02
... However, the issue is that: gitea/modules/setting/setting.go Lines 827 to 830 in 491887d
Enforces that this format has to be fully specified. Now, looking at the use of TimeFormat I don't think there is a good reason to enforce that we are so strict with this. A simple fix would be to change that |
That's wrong. One can chose anything as commit timestamp and the push timestamps are in the reflog, but are never shared by the git server. Reducing the accuracy in the Activities tab would be a good default. However, I wrote at the start of this issue what I want
|
Could you please change the title of the issue, then? So, if contributors know what this is about they might decide to take it. 😄 |
GitHub has similar features which some users don't like:
(someone posted this links at Codeberg) It would be good if gitea would be different from GitHub. |
Does this here also count in? The "public activity" displays not only git pushes but also what exactly I do. For example if an admin transfer repositories between different users then this should not be visible to everyone. Especially as admin I want to hide the activity of the admin user. |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
issue is still valid |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
still valid |
What looks relevant to me for a hiding feature:
What would be missing:
|
Updating a flag would need handling at https://github.com/go-gitea/gitea/blob/master/routers/user/setting/profile.go#L98 and a form element at https://github.com/go-gitea/gitea/blob/master/templates/user/settings/profile.tmpl#L46 Example for a migration which adds a new field: https://github.com/go-gitea/gitea/blob/master/models/migrations/v138.go It seems like Actions are logged at https://github.com/go-gitea/gitea/blob/master/models/repo_watch.go#L196 |
This closes go-gitea#7927
* Add hide activity option This closes #7927 * Adjust for linter * Adjust for linter * Add tests * Remove info that admins can view the activity * Adjust new tests for linter * Rename v139.go to v140.go * Rename v140.go to v141.go * properly indent * gofmt Co-authored-by: Jonas Lochmann <git@inkompetenz.org> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add hide activity option This closes go-gitea#7927 * Adjust for linter * Adjust for linter * Add tests * Remove info that admins can view the activity * Adjust new tests for linter * Rename v139.go to v140.go * Rename v140.go to v141.go * properly indent * gofmt Co-authored-by: Jonas Lochmann <git@inkompetenz.org> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
[x]
): not relevantDescription
Git logs the commit timestamps (which a developer can spoof for better privacy), however gitea logs the push timestamps and some other events. Is it possible to add the option to hide/ disable it per user/ project/ organization?
Note: In the linked example, there is the text "3 weeks ago". When moving the mouse over it, then there is the exact timestamp visible.
Screenshots
The text was updated successfully, but these errors were encountered: