Skip to content

Commit

Permalink
MMT-3946: Adding Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mandyparson committed Nov 25, 2024
1 parent a70d2a8 commit 73d8232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions static/src/js/components/RevisionList/RevisionList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const RevisionList = () => {
const published = rowData.revisionId === concept.revisionId

const { revisionId, userId } = rowData
// Temporary Solution from MMT-3946 until we can pass up a tombstone type instead
const isDeleted = userId === 'cmr'

let descriptionCellContent
Expand Down Expand Up @@ -110,6 +111,7 @@ const RevisionList = () => {
const { revisionId, userId } = rowData
const { revisionId: currRevisionId } = concept
const isPublished = revisionId === currRevisionId
// Temporary Solution from MMT-3946 until we can pass up a tombstone type instead
const isDeleted = userId === 'cmr'

let actionCellContent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('RevisionList component', () => {
})
})

// Temporary solution. We are determining that a revision has been deleted if its userId === cmr
// Temporary solution from MMT-3946. We are determining that a revision has been deleted if its userId === cmr
describe('when there is a revision with userid === cmr', () => {
test('renders the revisions and indicates which of them has been deleted', async () => {
setup({ overrideMocks: [collectionRevisionsWithDeletedRevision] })
Expand Down

0 comments on commit 73d8232

Please sign in to comment.