Skip to content

feat(events-v2) Add pagination controls to event modal #13610

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

Closed
wants to merge 1 commit into from

Conversation

markstory
Copy link
Member

In grouped views we want to show pagination buttons to navigate between the events that match the current search filters including the query string. By creating URLs that use eventSlug and the current search criteria we'll end up at the right events.

The mocks include a 'showing event x of y' section. We currently don't have a way to get this data, and getting the total number of events that match the current query will likely not perform well.

Screen Shot 2019-06-10 at 11 50 47 AM

Refs SEN-715

In grouped views we want to show pagination buttons to navigate between
the events that match the current search filters including the query
string. By creating URLs that use eventSlug and the current search
criteria we'll end up at the right events.

Refs SEN-715
browserHistory.goBack();
const {location} = this.props;
// Remove modal related query parameters.
const query = omit(location.query, ['groupId', 'eventSlug', 'oldest']);
Copy link
Member

Choose a reason for hiding this comment

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

Could "oldest" and "latest" just be handled as special cases of eventSlug values? This is similar how it's handled in the issue details views where "oldest" and "latest" are just special eventIds that are handled a bit differently. I think the nice thing about it is that we avoid two additional URL params.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. I like that idea. 👍

@markstory
Copy link
Member Author

Closing this and joining it into #13568 so the chart and pagination can be reviewed as one piece.

@markstory markstory closed this Jun 10, 2019
@markstory markstory deleted the sen-715-pagination branch June 11, 2019 20:50
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants