Skip to content

Latest feedback updates #61

Open
iXavi13 wants to merge 2 commits into
bloomberg:mainfrom
iXavi13:latest-feedback-updates
Open

Latest feedback updates #61
iXavi13 wants to merge 2 commits into
bloomberg:mainfrom
iXavi13:latest-feedback-updates

Conversation

@iXavi13
Copy link
Copy Markdown

@iXavi13 iXavi13 commented Apr 14, 2025

Latest updates based on feedback from Marvin and I

Describe your changes
A clear and concise description of the changes you have made.

Testing performed
Describe the testing you have performed to ensure that the bug has been addressed, or that the new feature works as planned.

Additional context
Add any other context about your contribution here.

Copy link
Copy Markdown
Contributor

@gabrielleclav gabrielleclav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we fix that image to look better? The text looks a bit funky between the second arrow
Can we update the solutions also, thanks!

"""Get the featured news article from the datastore."""
# 1. Get all the articles
# 2. Return as a list of articles sorted by most recent date
# 1. Get all the articles and sort by most recent
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this by not most recent date? If it still is, its useful to leave that comment there.



def get_featured_news() -> Article | None:
def get_featured_article() -> Article | None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are changing the name of this function, we need to update the solutions also to resemble these changes and whatever else was changed.

* **Hint 2:** In order to get the articles, look at how the data is written into Redis in `backend/app/__init__.py`.
* **Hint 3**: You can test the backend / API changes without the frontend code! Run `localhost:8000/{endpoint}`.
- **Hint 4:** The relevant resources can be found from [resources](./resources/overview.md).
- **Hint 5:** You will have to parse a datetime returned from Redis. Heres a useful [resource](https://docs.python.org/3/library/datetime.html#datetime.date.fromisoformat).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another useful hint or can be placed elsewhere:
Students need to bring down the backend containers whenever they make changes and rerun it in order to see their new changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants