Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1027 Restrict Sensntive Data Exposure via API Call #1036

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion common/components/utils/ProjectAPIUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ export type VolunteerDetailsAPIData = {|
+isUpForRenewal: boolean,
|};

// Structure for minimal volunteer data exposure
export type VolunteerMinimalDetailsAPIData = {|
+application_id: number,
+user: VolunteerUserData,
+roleTag: TagDefinition,
|};

export type ProjectDetailsAPIData = {|
+project_id: number,
+project_description: string,
Expand Down Expand Up @@ -136,7 +143,7 @@ export type ProjectDetailsAPIData = {|
+project_links: $ReadOnlyArray<LinkInfo>,
+project_files: $ReadOnlyArray<FileInfo>,
+project_owners: $ReadOnlyArray<VolunteerUserData>,
+project_volunteers: $ReadOnlyArray<VolunteerDetailsAPIData>,
+project_volunteers: $ReadOnlyArray<VolunteerMinimalDetailsAPIData>,
+project_date_modified: Date,
+project_events: $ReadOnlyArray<EventTileAPIData>,
+event_created_from: ?number,
Expand Down