mirror of
https://github.com/go-gitea/gitea.git
synced 2025-05-16 04:11:47 +00:00
In the Gitea GUI, the user can see the time that _AccessTokens_ and _PublicKeys_ were last used. This information is not returned by the _/users/{username}/tokens_ and _/user/keys_ endpoints in the API. This PR adds the missing data. The time of last usage for for _tokens_ & _keys_ seem to be stored in the _Updated_ field of the structs internally. For consistency, I have used the name _updated_at_ for the new field returned by the _API_. However, for the _API_ user, I don't think that name reflects the data returned, as I believe it is the time of last usage. I propose that we use the name _last_used_at_ instead. Let's hear reviewers opinion on that. * PublicKey 1. _last_used_at_: string($date-time) * AccessToken 1. _created_at_: string($date-time) (for parity with public keys) 2. _last_used_at_: string($date-time) Fix #34313 |
||
---|---|---|
.. | ||
activity.go | ||
activitypub.go | ||
admin_user.go | ||
attachment.go | ||
commit_status_test.go | ||
commit_status.go | ||
cron.go | ||
doc.go | ||
fork.go | ||
git_blob.go | ||
git_hook.go | ||
hook.go | ||
issue_comment.go | ||
issue_label.go | ||
issue_milestone.go | ||
issue_reaction.go | ||
issue_stopwatch.go | ||
issue_test.go | ||
issue_tracked_time.go | ||
issue.go | ||
lfs_lock.go | ||
mirror.go | ||
miscellaneous.go | ||
nodeinfo.go | ||
notifications.go | ||
org_member.go | ||
org_team.go | ||
org.go | ||
package.go | ||
pull_review.go | ||
pull.go | ||
release.go | ||
repo_actions.go | ||
repo_branch.go | ||
repo_collaborator.go | ||
repo_commit.go | ||
repo_compare.go | ||
repo_file.go | ||
repo_key.go | ||
repo_note.go | ||
repo_refs.go | ||
repo_tag.go | ||
repo_topic.go | ||
repo_tree.go | ||
repo_watch.go | ||
repo_wiki.go | ||
repo.go | ||
secret.go | ||
settings.go | ||
status.go | ||
task.go | ||
user_app.go | ||
user_email.go | ||
user_gpgkey.go | ||
user_key.go | ||
user.go | ||
variable.go | ||
visible_type.go |