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

Add sort by date option to policies index page #1290

Closed
mlandauer opened this issue Dec 2, 2021 · 6 comments
Closed

Add sort by date option to policies index page #1290

mlandauer opened this issue Dec 2, 2021 · 6 comments

Comments

@mlandauer
Copy link
Member

We had an email this week suggesting that policies should also be sorted by date on the policy page. Currently, we only have an option to sort by name or subscriber numbers.

The user wants to be able to more easily find recent legislation when they don't know its actual name, i.e. they go to the relevant policy and look through the divisions from there, but find it a longer process due to not being able to sort policy names by date. In the case that prompted the email, they were looking for legislation related to climate change, so I imagine it took them a while to look through each climate change related policy. If the policies were sorted by date, they could go directly to the climate change policies that were most recently updated and so order their search more effectively.

Originally posted by @mackaymackay in #1069 (comment)

@mlandauer
Copy link
Member Author

@mackaymackay So what specifically should the date be? Should it be the date when the policy was most recently updated or somehow related to the dates of the divisions?

@mlandauer mlandauer added this to the Post 2022 Federal Election milestone Dec 2, 2021
@mackaymackay
Copy link
Contributor

@mlandauer the email referred to recent legislation, so presumably wanted the date to match the dates of the divisions. Though I'm not sure how exactly that would be done, as I imagine it would be easier to go by when the policy was most recently updated, which is usually a fairly close match to division dates (except for when I'm working through the backlog, in which case there would be a big difference between the two date options).

@mlandauer mlandauer removed this from the Post 2022 Federal Election milestone Dec 2, 2021
@mlandauer mlandauer modified the milestone: 2022 Federal Election Dec 15, 2021
@MutazAshhab
Copy link
Contributor

@mackaymackay The created_at variable holds the date which the policy was created on the tvfy platform. I believe tvfy does not have the date which which matches the date of the divisions.

So, I resulted to add the Sort by Date Edited onto the policies index page

@mlandauer
Copy link
Member Author

I believe tvfy does not have the date which which matches the date of the divisions.

We do have the dates of the divisions. It's just stored with the division object rather than the policies object

@mlandauer
Copy link
Member Author

I do think the "sort by date edited" is a reasonable approach

@stale
Copy link

stale bot commented Jun 13, 2022

This issue has been automatically marked as stale because there has been no activity on it for about six months. If you want to keep it open please make a comment and explain why this issue is still relevant. Otherwise it will be automatically closed in a week. Thank you!

@stale stale bot added the wontfix label Jun 13, 2022
@stale stale bot closed this as completed Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants