-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into task/WG-401-Add-Asset-to-Feature
- Loading branch information
Showing
37 changed files
with
1,318 additions
and
434 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,82 +5,80 @@ import { | |
ProjectRequest, | ||
} from '../types'; | ||
|
||
export const designSafeProjectMock: DesignSafeProject = { | ||
uuid: 'proj-uuid', | ||
name: 'designsafe.project', | ||
created: '2019-10-31T16:04:26.327Z', | ||
lastUpdated: '2019-10-31T16:04:30.163Z', | ||
associationIds: [], | ||
value: { | ||
dois: [], | ||
coPis: [], | ||
title: 'Sample DesignSafe Project', | ||
users: [ | ||
{ | ||
inst: 'University of Texas at Austin (utexas.edu)', | ||
role: 'pi', | ||
email: '[email protected]', | ||
fname: 'Fixture First Name', | ||
lname: 'Fixture Last Name', | ||
username: 'fixture1Username', | ||
}, | ||
{ | ||
inst: 'University of Texas at Austin (utexas.edu)', | ||
role: 'co_pi', | ||
email: '[email protected]', | ||
fname: 'Tester', | ||
lname: 'Test', | ||
username: 'fixture2Username', | ||
}, | ||
], | ||
authors: [], | ||
frTypes: [], | ||
nhEvent: '', | ||
nhTypes: [], | ||
fileObjs: [], | ||
fileTags: [], | ||
keywords: [], | ||
nhEvents: [], | ||
dataTypes: [], | ||
projectId: 'proj-id', | ||
tombstone: false, | ||
facilities: [], | ||
nhLatitude: '', | ||
nhLocation: '', | ||
description: 'Map Test description required.', | ||
nhLongitude: '', | ||
projectType: 'None', | ||
teamMembers: [], | ||
awardNumbers: [], | ||
guestMembers: [], | ||
hazmapperMaps: [ | ||
{ | ||
name: 'Hazmapper_TestProject', | ||
path: '/', | ||
uuid: '620aeaf4-f813-4b90-ba52-bc87cfa7b07b', | ||
deployment: 'production', | ||
}, | ||
], | ||
referencedData: [], | ||
associatedProjects: [], | ||
}, | ||
}; | ||
|
||
export const projectMock: Project = { | ||
id: 1, | ||
uuid: 'abc123', | ||
name: 'Sample Project', | ||
description: 'A sample project for testing purposes.', | ||
public: true, | ||
system_file: 'sample-file', | ||
system_id: 'sample-id', | ||
system_id: | ||
'project-1234' /* 'project-' prefix implies its a DesignSafe project system */, | ||
system_path: '/path/to/sample', | ||
deletable: true, | ||
streetview_instances: null, | ||
ds_project: { | ||
uuid: 'proj-uuid', | ||
projectId: 'proj-id', | ||
title: 'Sample DesignSafe Project', | ||
value: { | ||
dois: [], | ||
coPis: [], | ||
title: 'Hazmapper V3 PROD Map Test 2024.08.07', | ||
users: [ | ||
{ | ||
inst: 'University of Texas at Austin (utexas.edu)', | ||
role: 'pi', | ||
email: '[email protected]', | ||
fname: 'Fixture First Name', | ||
lname: 'Fixture Last Name', | ||
username: 'fixture1Username', | ||
}, | ||
{ | ||
inst: 'University of Texas at Austin (utexas.edu)', | ||
role: 'co_pi', | ||
email: '[email protected]', | ||
fname: 'Tester', | ||
lname: 'Test', | ||
username: 'fixture2Username', | ||
}, | ||
], | ||
authors: [], | ||
frTypes: [], | ||
nhEvent: '', | ||
nhTypes: [], | ||
fileObjs: [], | ||
fileTags: [], | ||
keywords: [], | ||
nhEvents: [], | ||
dataTypes: [], | ||
projectId: 'PRJ-5566', | ||
tombstone: false, | ||
facilities: [], | ||
nhLatitude: '', | ||
nhLocation: '', | ||
description: 'Map Test description required.', | ||
nhLongitude: '', | ||
projectType: 'None', | ||
teamMembers: [], | ||
awardNumbers: [], | ||
guestMembers: [], | ||
hazmapperMaps: [ | ||
{ | ||
name: 'Hazmapper_TestProject', | ||
path: '/', | ||
uuid: '620aeaf4-f813-4b90-ba52-bc87cfa7b07b', | ||
deployment: 'production', | ||
}, | ||
], | ||
referencedData: [], | ||
associatedProjects: [], | ||
}, | ||
}, | ||
}; | ||
|
||
export const designSafeProjectMock: DesignSafeProject = { | ||
uuid: 'proj-uuid', | ||
projectId: 'proj-id', | ||
title: 'Sample DesignSafe Project', | ||
value: {}, | ||
ds_project: designSafeProjectMock, | ||
}; | ||
|
||
export const designSafeProjectCollectionMock: DesignSafeProjectCollection = { | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export const users = [{ id: 1, username: 'user' }]; |
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
Oops, something went wrong.