Skip to content

Commit

Permalink
Add 'bucket' field to changeset metadata (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem authored Jul 18, 2024
1 parent ec57392 commit f3c3816
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,10 @@ def get_changeset(request):
request.response.last_modified = last_modified / 1000.0

data = {
"metadata": metadata,
"metadata": {
**metadata,
"bucket": bid,
},
"timestamp": records_timestamp,
"changes": changes,
}
Expand Down
1 change: 1 addition & 0 deletions kinto-remote-settings/tests/changes/test_changeset.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def test_changeset_is_accessible(self):
assert "metadata" in data
assert "timestamp" in data
assert "changes" in data
assert data["metadata"]["bucket"] == "blocklists"
assert data["metadata"]["id"] == "certificates"
assert len(data["changes"]) == 1
assert data["changes"][0]["dev-edition"] is True
Expand Down

0 comments on commit f3c3816

Please sign in to comment.