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

feat: add order parameter in events controller #214

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

danielsp45
Copy link
Member

No description provided.

Copy link

reviewpad bot commented Dec 6, 2023

AI-Generated Summary: This pull request introduces a new feature to the 'events' controller by adding an 'order' parameter. The 'list_events' function now checks whether this 'order' parameter is set to 'asc'. If it is, it returns all events ordered by 'start_time' in ascending order. If not, it returns all events ordered by 'start_time' in descending order. This change adds flexibility to how events are returned and should improve the user experience.

@danielsp45 danielsp45 force-pushed the dp/add-order-parameter branch from 23552c3 to 9268fc5 Compare December 6, 2023 15:12
@danielsp45 danielsp45 force-pushed the dp/add-order-parameter branch from 9268fc5 to 4271911 Compare December 6, 2023 19:58
Copy link
Member

@pedrofp4444 pedrofp4444 left a comment

Choose a reason for hiding this comment

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

Looks great to me! It works perfectly with the corresponding PR on shuriken. 👏

@danielsp45 danielsp45 merged commit dfa555b into main Jan 9, 2024
3 checks passed
@danielsp45 danielsp45 deleted the dp/add-order-parameter branch January 9, 2024 23:24
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