Skip to content

AO3-6731 Fix order of Recent Bookmarks in User and Pseud dashboards - #5774

Open
luis-pabon-tf wants to merge 7 commits into
otwcode:masterfrom
luis-pabon-tf:AO3-6731
Open

AO3-6731 Fix order of Recent Bookmarks in User and Pseud dashboards#5774
luis-pabon-tf wants to merge 7 commits into
otwcode:masterfrom
luis-pabon-tf:AO3-6731

Conversation

@luis-pabon-tf

Copy link
Copy Markdown
Contributor

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-6731

Purpose

Updates the sorting on the query that loads bookmarks on the User and Pseud controllers so that they sort by created_at, which is the expected behavior.

Credit

Luis Pabon (they/he)

Then I should be on the dashboard page for user "meatloaf" with pseud "meatloaf"
And I should see "Recent bookmarks"
And I should not see "Work One" within "#user-bookmarks"
And I should see "Work Six" within "#user-bookmarks"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried being thorough on this test, but if this is overkill let me know and I can try trimming it.

@luis-pabon-tf
luis-pabon-tf deleted the AO3-6731 branch May 14, 2026 05:45
@luis-pabon-tf
luis-pabon-tf restored the AO3-6731 branch May 15, 2026 01:32
@luis-pabon-tf

Copy link
Copy Markdown
Contributor Author

I'm a fool and deleted this branch locally, it's still here for testing!

@luis-pabon-tf luis-pabon-tf reopened this May 15, 2026

@sarken sarken left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just some nitpicks on the tests! Another option that would probably run a bit quicker than the feature test would be using RSpec to test that bookmarks is assigned correctly on the show action for users and pseuds.

I'm a little bit nervous that we could see some intermittent failures on this test during quick runs when multiple bookmarks might potentially be created with the same timestamp, but we can just watch for that and tweak things if it happens.

Comment thread features/users/user_dashboard.feature Outdated
Comment thread features/users/user_dashboard.feature Outdated
Comment thread features/users/user_dashboard.feature Outdated
Comment thread features/users/user_dashboard.feature Outdated
Comment thread features/users/user_dashboard.feature Outdated
@luis-pabon-tf

Copy link
Copy Markdown
Contributor Author

Thanks for the feedbacks! I think I got them all and this is ready for re-review.

@luis-pabon-tf
luis-pabon-tf requested a review from sarken August 29, 2026 23:04

@sarken sarken left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just one last tiny thing!

And I should not see "Work One" within "#user-bookmarks"
And I should see "Work Six" within "#user-bookmarks"
When I go to the dashboard page for user "meatloaf" with pseud "meatloaf"
And I should see "Recent bookmarks"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This will need to be a Then, since we're testing the results of our When.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants