prasenjeet-symon / intellectia

Intellectia - Your Guardian Against Misleading AI-Generated Content
MIT License
15 stars 43 forks source link

Implement Endpoint to Retrieve Active Article Stories for Logged-in User #75

Open prasenjeet-symon opened 1 year ago

prasenjeet-symon commented 1 year ago

Title: Implement Endpoint to Retrieve Active Article Stories for Logged-in User

Description: This GitHub issue is created to outline the task of implementing an endpoint to retrieve all active article stories for the logged-in user. The endpoint should return the latest stories in a structured format, excluding the full article content.

Tasks:

  1. Implement Article Stories Endpoint:

    • [ ] Create a new endpoint in the router to handle the retrieval of active article stories.
    • [ ] Ensure that the endpoint fetches stories for the logged-in user.
  2. Database Query:

    • [ ] Write a database query to fetch all active article stories for the user.
    • [ ] Exclude the full article content to reduce unnecessary data transfer.
    • [ ] Ensure that only non-expired stories are retrieved.
  3. Sort Stories:

    • [ ] Sort the retrieved stories by the createdAt timestamp in descending order.
    • [ ] This sorting order will display the latest stories first.
  4. Include Author Information:

    • [ ] Stories should contain minimal author information, such as name, email, and profile picture, for each story.
  5. Response Format:

    • [ ] Ensure that the response format is structured and contains the retrieved article stories.
    • [ ] Stories should be presented in a clear and concise format.

Acceptance Criteria:

Additional Information:

patil-gau commented 1 year ago

assingn this task to me

prasenjeet-symon commented 1 year ago

@patil-gau Assigned to you

prasenjeet-symon commented 10 months ago

@patil-gau I am reaching out to inquire about the current status of the issue you are addressing. Could you please provide an update on your progress and, if feasible, an estimated timeline for resolution?

Given the urgency of the matter, it is crucial for us to ensure a swift resolution. If, for any reason, completion within the next two days seems challenging, please inform me promptly. In such a scenario, we may need to reassign the task to ensure timely resolution.

Your cooperation is highly valued, and I appreciate your attention to this matter.

mhgarry commented 5 months ago

Cam I try this? I just got a lot of free time. I'd love to try and get it done fast. Got some free time on my hands