-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(uaa-refactor): UAA handle uploader_display_name field (#3756)
* fix(uaa-refactor): Handle uploader_display_name field * fix(uaa-refactor): Handle uploader_display_name field * fix(uaa-sidebar): Fix test --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2d8facb
commit bd9d44a
Showing
3 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ import { | |
FILE_ACTIVITY_TYPE_ANNOTATION, | ||
FILE_ACTIVITY_TYPE_COMMENT, | ||
FILE_ACTIVITY_TYPE_TASK, | ||
FILE_ACTIVITY_TYPE_VERSION, | ||
TASK_NEW_NOT_STARTED, | ||
} from '../constants'; | ||
|
||
|
@@ -84,6 +85,53 @@ export const annotations = [ | |
}, | ||
]; | ||
|
||
export const fileActivitiesVersion = { | ||
end: { | ||
created_at: '2022-01-05T10:12:28.000-08:00', | ||
created_by: { | ||
id: '42', | ||
name: 'John Doe', | ||
login: '[email protected]', | ||
type: 'user', | ||
}, | ||
id: '123', | ||
number: 1, | ||
uploader_display_name: 'John Doe', | ||
type: 'file_version', | ||
}, | ||
start: { | ||
created_at: '2022-01-05T10:12:28.000-08:00', | ||
created_by: { | ||
id: '42', | ||
name: 'John Doe', | ||
login: '[email protected]', | ||
type: 'user', | ||
}, | ||
id: '123', | ||
number: 1, | ||
uploader_display_name: 'John Doe', | ||
type: 'file_version', | ||
}, | ||
action_by: [ | ||
{ | ||
id: '42', | ||
name: 'John Doe', | ||
login: '[email protected]', | ||
type: 'user', | ||
}, | ||
], | ||
created_by: [ | ||
{ | ||
id: '42', | ||
name: 'John Doe', | ||
login: '[email protected]', | ||
type: 'user', | ||
}, | ||
], | ||
type: 'versions', | ||
action_type: 'created', | ||
}; | ||
|
||
export const annotationsWithFormattedReplies = [ | ||
{ | ||
created_at: '2022-08-19T03:39:00-07:00', | ||
|
@@ -400,6 +448,7 @@ export const threadedCommentsFormatted = [ | |
]; | ||
|
||
export const fileActivities = [ | ||
{ activity_type: FILE_ACTIVITY_TYPE_VERSION, source: { versions: fileActivitiesVersion } }, | ||
{ activity_type: FILE_ACTIVITY_TYPE_ANNOTATION, source: { annotation: annotationsWithFormattedReplies[0] } }, | ||
{ activity_type: FILE_ACTIVITY_TYPE_COMMENT, source: { comment: threadedCommentsFormatted[0] } }, | ||
{ | ||
|