Skip to content

Commit

Permalink
Merge pull request #2919 from alphagov/content-modelling/632-spike-ca…
Browse files Browse the repository at this point in the history
…n-we-get-the-user-who-have-last-updated-a-piece-of-content

Optionally set an Author on an Edition
  • Loading branch information
pezholio authored Oct 17, 2024
2 parents b3d146f + cc2a00c commit 1f7f0ba
Show file tree
Hide file tree
Showing 91 changed files with 374 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/edition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Edition < ApplicationRecord
document_type
first_published_at
last_edited_at
last_edited_by_editor_id
major_published_at
phase
public_updated_at
Expand Down
1 change: 1 addition & 0 deletions app/presenters/edition_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class EditionPresenter
document_id
id
last_edited_at
last_edited_by_editor_id
publishing_api_first_published_at
major_published_at
published_at
Expand Down
4 changes: 4 additions & 0 deletions content_schemas/dist/formats/answer/publisher_v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
4 changes: 4 additions & 0 deletions content_schemas/dist/formats/contact/publisher_v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
4 changes: 4 additions & 0 deletions content_schemas/dist/formats/facet/publisher_v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
4 changes: 4 additions & 0 deletions content_schemas/dist/formats/finder/publisher_v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
4 changes: 4 additions & 0 deletions content_schemas/dist/formats/generic/publisher_v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
4 changes: 4 additions & 0 deletions content_schemas/dist/formats/gone/publisher_v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
4 changes: 4 additions & 0 deletions content_schemas/dist/formats/guide/publisher_v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
4 changes: 4 additions & 0 deletions content_schemas/dist/formats/history/publisher_v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"type": "string",
"format": "date-time"
},
"last_edited_by_editor_id": {
"description": "The UUID of the editor who edited the content.",
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": false,
Expand Down
Loading

0 comments on commit 1f7f0ba

Please sign in to comment.