1
0
Fork 0
forgejo/templates/swagger
fluzz c524d33402 WIP: Add an 'updated_at' field to the EditIssueOption struct
This field adds the possibility to set the update date when modifying
an issue through the API.

A 'NoAutoDate' in-memory field is added in the Issue struct.
If the update_at field is set, NoAutoDate is set to true and the
Issue's UpdatedUnix field is filled.

That information is passed down to the functions that actually updates
the database, which have been modified to not auto update dates if
requested.

A guard is added to the 'EditIssue' API call, to checks that the
udpate_at date is between the issue's creation date and the current
date (to avoid 'malicious' changes). It also limits the new feature
to project's owners and admins.
2023-08-24 12:10:31 +02:00
..
forgejo-ui.tmpl [API] Forgejo API /api/forgejo/v1 2023-08-22 08:41:55 +02:00
ui.tmpl Remove meta charset from HTML5 documents (#24744) 2023-05-16 05:13:23 +00:00
v1_json.tmpl WIP: Add an 'updated_at' field to the EditIssueOption struct 2023-08-24 12:10:31 +02:00