Remove unnecessary fields from API calls on prospectus

Description

Work was done on prospectus' build process to link related objects through Gatsby foreign keys title. We should take advantage of this by only fetching the uuid for nested fields that we fetch separately so that we can link them without pulling duplicate information.
Additionally, there are smaller fields that we don't need, so we should omit those too.

Acceptance Criteria

  1. Simple metrics are collected for build time before and after this change is made

  2. All duplicate and unused fields are omitted from our API requests

Implementation Details

  • Fields can be omitted or included on discovery like ?omit=uuid,title or ?fields=uuid,title

Other notes

This same process should be followed (by omitting more fields) when we pull in other related objects like staff

Steps to Reproduce

None

Story Points

2

Assignee

Brandon Baker

Reporter

Brandon Baker

Labels

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Sprint

None

Priority

Unset
Configure