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

Code maintenance/59280 ensure that the new activity tab renders quickly also for work packages with over 100 comments #17224

Conversation

jjabari-op
Copy link
Collaborator

@jjabari-op jjabari-op self-assigned this Nov 18, 2024
@akabiru akabiru added this to the 15.0.x milestone Nov 19, 2024
Copy link
Member

@akabiru akabiru left a comment

Choose a reason for hiding this comment

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

🥇

app/controllers/work_packages/activities_tab_controller.rb Outdated Show resolved Hide resolved
Copy link
Member

@akabiru akabiru left a comment

Choose a reason for hiding this comment

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

Issue with scrolling on mobile - iOS Safari

https://community.openproject.org/api/v3/file_links/2093/open

Copy link
Member

@akabiru akabiru left a comment

Choose a reason for hiding this comment

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

Nice work Jonas! I push some test coverage for the notifications eager loading 👍🏾

Comment on lines +82 to +87
journals.each do |journal|
journal.instance_variable_set(
:@unread_notifications,
notifications[journal.id]
)
end
Copy link
Member

Choose a reason for hiding this comment

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

Very smart 👍🏾

@@ -375,6 +375,7 @@ def rerender_journals_with_updated_notification(journals, last_update_timestamp,
# alternative approach in order to bypass the notification join issue in relation with the sequence_version query
Notification
.where(journal_id: journals.pluck(:id))
.where(recipient_id: User.current.id)
Copy link
Member

Choose a reason for hiding this comment

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

👍🏾

@jjabari-op jjabari-op merged commit d61ab2e into release/15.0 Nov 21, 2024
14 checks passed
@jjabari-op jjabari-op deleted the code-maintenance/59280-ensure-that-the-new-activity-tab-renders-quickly-also-for-work-packages-with-over-100-comments branch November 21, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants