Skip to content

Commit

Permalink
feat(api): include more details about changes
Browse files Browse the repository at this point in the history
Expose old and details fields.

Fixes #11807
  • Loading branch information
nijel committed Jun 18, 2024
1 parent 36ff3de commit fce686e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2209,7 +2209,9 @@ Changes
:>json timestamp timestamp: event timestamp
:>json int action: numeric identification of action
:>json string action_name: text description of action
:>json string target: event changed text or detail
:>json string target: event changed text
:>json string old: previous text
:>json object details: additional details about the change
:>json int id: change identifier

Screenshots
Expand Down
1 change: 1 addition & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Not yet released.
* Improved tracking of uploaded changes.
* Grafully handle temporary machine translation errors in automatic suggestions.
* :http:get:`/api/units/(int:id)/` now includes `last_updated` timestamp.
* :http:get:`/api/changes/(int:id)/` now includes `old` and `details`.
* Reduced memory usage and increased performance of some views.

**Bug fixes**
Expand Down
2 changes: 2 additions & 0 deletions weblate/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,8 @@ class Meta:
"timestamp",
"action",
"target",
"old",
"details",
"id",
"action_name",
"url",
Expand Down

0 comments on commit fce686e

Please sign in to comment.