Request to Add Activity ID to Firestore Document Object

Open
#542 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
firebase, typescript
Domain
backend, database

Research direction

Start in the stream/firestore-activity-feeds extension and trace the activity-creation flow through the Firestore document write. Confirm how the document object is assembled and identify the existing checks around creation. Done means newly created Firestore documents include the corresponding activity ID and the extension's relevant tests or validation pass.

Written by the indexing model from the issue text.

Description

Repository: stream/firestore-activity-feeds

Issue Title: Enhance: Include Activity ID in Firestore Document Object

Issue Description:
Currently, the Firestore document object lacks the activity ID when an activity is created within the Stream activity feed using the stream/firestore-activity-feeds Firebase extension. This omission presents challenges when correlating activity data with corresponding Firestore documents, potentially leading to inefficiencies during data retrieval.

Request:
We kindly request an enhancement to the extension's functionality by adding the activity ID to the Firestore document object at the moment an activity is created within the Stream activity feed.

Implementation Proposal:
We propose modifying the extension's logic to ensure that, upon activity creation, the activity ID is included in the Firestore document object. This enhancement would enhance data coherence and simplify retrieval processes for associated activities.

Expected Benefits:

  1. Improved Data Correlation: By associating the activity ID with the Firestore document, users can effortlessly match activities with their corresponding Firestore records.
  2. Streamlined Data Retrieval: Including the activity ID simplifies queries, promoting efficient retrieval of activity-related data from Firestore.

We believe this enhancement will significantly improve the usability and effectiveness of the stream/firestore-activity-feeds extension. Thank you for considering our request.

Additional Information:

Thank you for your attention to this matter.

Dominant language
TypeScript
Stars
18
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GetStream/stream-firebase-extensions

All issues in GetStream/stream-firebase-extensions

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.