Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Consolidate and optimize data fetching for ProjectCard
Merged did:key:z6Mki9XN...FvWF opened 2 years ago

We consolidate the code that fetches the data for ProjectCard in one module, adjacent to the ProjectCard component. We also consolidate all the data into one interface to simplify the component API.

With the data loading in one place we can eliminate duplicate code and a handful of helper functions.

The consolidation also allows us to discover some optimizations to fetching: We parallelize requests and we use the commit detail endpoint instead of the commit list endpoint. For the latter to pay off, we need to deploy caching to the API.

did:key:z6Mki9XN...FvWF opened with revision ac0055dc on base 6340501b +94 -147 2 years ago

We consolidate the code that fetches the data for ProjectCard in one module, adjacent to the ProjectCard component. We also consolidate all the data into one interface to simplify the component API.

With the data loading in one place we can eliminate duplicate code and a handful of helper functions.

The consolidation also allows us to discover some optimizations to fetching: We parallelize requests and we use the commit detail endpoint instead of the commit list endpoint. For the latter to pay off, we need to deploy caching to the API.

rudolfs pushed revision 2 b4b3f3cb on base d315380e +94 -147 2 years ago

Rebase.

rudolfs accepted 2 years ago

Nice work!

rudolfs merged revision b4b3f3cb at 67e16ea7 2 years ago