Skip to content

Commit

Permalink
deposit: add missing fields to record deserializer
Browse files Browse the repository at this point in the history
  • Loading branch information
rekt-hard authored and ntarocco committed Oct 31, 2024
1 parent d20c082 commit 2452779
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ export class RDMDepositRecordSerializer extends DepositRecordSerializer {
"pids",
"ui",
"custom_fields",
"created",
"updated",
"revision_id",
]);

// FIXME: move logic in a more sophisticated PIDField that allows empty values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ describe("RDMDepositRecordSerializer tests", () => {
files: false,
metadata: false,
},
created: "2020-10-28 18:35:58.113520",
expanded: {},
id: "wk205-00878",
links: {
Expand Down Expand Up @@ -496,9 +497,11 @@ describe("RDMDepositRecordSerializer tests", () => {
],
version: "v2.0.0",
},
revision_id: 1,
ui: {
publication_date_l10n: "Sep 28, 2020",
},
updated: "2020-10-28 18:35:58.125222",
};
expect(deserializedRecord).toEqual(expectedRecord);
});
Expand Down

0 comments on commit 2452779

Please sign in to comment.