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

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

Open
10 tasks
prasenjeet-symon opened this issue Oct 4, 2023 · 4 comments
Open
10 tasks
Assignees
Labels
beginner-friendly EddieHub:good-first-issue enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed server related to server

Comments

@prasenjeet-symon
Copy link
Owner

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:

  • The endpoint should be implemented and accessible.
  • The endpoint should fetch all active article stories for the logged-in user.
  • Retrieved stories should not include the full article content.
  • Only non-expired stories should be retrieved.
  • Stories should be sorted by createdAt in descending order.
  • Minimal author information should be included for each story.
  • Testing should be performed to verify that the endpoint functions as expected.

Additional Information:

  • Please provide updates on your progress and any challenges faced during the implementation.
  • If you encounter any issues or need clarification, feel free to ask for assistance.
@patil-gau
Copy link

assingn this task to me

@prasenjeet-symon
Copy link
Owner Author

@patil-gau Assigned to you

@prasenjeet-symon
Copy link
Owner Author

@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
Copy link

mhgarry commented May 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner-friendly EddieHub:good-first-issue enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed server related to server
Projects
None yet
Development

No branches or pull requests

3 participants