Skip to content

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented Jul 29, 2025

TODO: Determine if we can filter this to just GET requests and if we need to watch for the CSRF protections which generally require saving cookies.

Reloading the dashboard after login.

Before:

[----] D, [...#57822:c954] DEBUG -- development: RackSessionDalliLogger#find_session   id: 16f4c39a-2761-4d8f-9f8e-a82b2c6e74bc method: GET fullpath: /dashboard/show
[----] D, [...#57822:c954] DEBUG -- development: RackSessionDalliLogger#write_session  id: 16f4c39a-2761-4d8f-9f8e-a82b2c6e74bc method: GET fullpath: /dashboard/show
[----] D, [...#57822:f5780] DEBUG -- development: RackSessionDalliLogger#find_session   id: 839787ed-6efd-4838-8fc2-d6f87558931c method: GET fullpath: /api/notifications?expand=resources&attributes=details&sort_by=id&sort_order=desc&limit=100
[----] D, [...#57822:f5794] DEBUG -- development: RackSessionDalliLogger#find_session   id: 603e64ca-bc3e-4cdc-ae3b-6f4fea42b192 method: GET fullpath: /ws/notifications
[----] D, [...#57822:f5794] DEBUG -- development: RackSessionDalliLogger#write_session  id: 603e64ca-bc3e-4cdc-ae3b-6f4fea42b192 method: GET fullpath: /ws/notifications
[----] D, [...#57822:f58fc] DEBUG -- development: RackSessionDalliLogger#find_session   id: 30906bf7-6a17-4d36-93a0-c5b3a4df0478 method: GET fullpath: /dashboard/widget_chart_data/9
[----] D, [...#57822:f5794] DEBUG -- development: RackSessionDalliLogger#find_session   id: fc2b9b22-ab43-4f93-9868-49f4d0f49ac6 method: GET fullpath: /dashboard/widget_report_data/21
[----] D, [...#57822:c954] DEBUG -- development: RackSessionDalliLogger#find_session   id: d533bab1-d615-4c9f-86b7-0aceeb22a2dd method: GET fullpath: /dashboard/widget_report_data/22
[----] D, [...#57822:f5910] DEBUG -- development: RackSessionDalliLogger#find_session   id: 356b690e-a9f2-4bcb-87be-56b3ee8fe42b method: GET fullpath: /dashboard/widget_report_data/24
[----] D, [...#57822:f58fc] DEBUG -- development: RackSessionDalliLogger#write_session  id: 30906bf7-6a17-4d36-93a0-c5b3a4df0478 method: GET fullpath: /dashboard/widget_chart_data/9
[----] D, [...#57822:c954] DEBUG -- development: RackSessionDalliLogger#write_session  id: d533bab1-d615-4c9f-86b7-0aceeb22a2dd method: GET fullpath: /dashboard/widget_report_data/22
[----] D, [...#57822:f5910] DEBUG -- development: RackSessionDalliLogger#write_session  id: 356b690e-a9f2-4bcb-87be-56b3ee8fe42b method: GET fullpath: /dashboard/widget_report_data/24
[----] D, [...#57822:f5794] DEBUG -- development: RackSessionDalliLogger#write_session  id: fc2b9b22-ab43-4f93-9868-49f4d0f49ac6 method: GET fullpath: /dashboard/widget_report_data/21
[----] D, [...#57822:f5780] DEBUG -- development: RackSessionDalliLogger#write_session  id: 839787ed-6efd-4838-8fc2-d6f87558931c method: GET fullpath: /api/notifications?expand=resources&attributes=details&sort_by=id&sort_order=desc&limit=100
[----] D, [...#57822:f58fc] DEBUG -- development: RackSessionDalliLogger#find_session   id: 2ec1a7a0-7142-45e8-846b-a2b4f216fe7d method: GET fullpath: /dashboard/widget_chart_data/10
[----] D, [...#57822:f58fc] DEBUG -- development: RackSessionDalliLogger#write_session  id: 2ec1a7a0-7142-45e8-846b-a2b4f216fe7d method: GET fullpath: /dashboard/widget_chart_data/10

After

Note: The session writes from API GETs will be handled in ManageIQ/manageiq-api#1292

[----] D, [...#57609:c954] DEBUG -- development: RackSessionDalliLogger#find_session   id: 532a8a5b-6db1-4584-afd7-4aebcc1dbf3b method: GET fullpath: /dashboard/show
[----] D, [...#57609:c954] DEBUG -- development: RackSessionDalliLogger#write_session  id: 532a8a5b-6db1-4584-afd7-4aebcc1dbf3b method: GET fullpath: /dashboard/show
[----] D, [...#57609:f55c8] DEBUG -- development: RackSessionDalliLogger#find_session   id: 4492cb87-36a7-4278-b53e-65e2c7de5be2 method: GET fullpath: /ws/notifications
[----] D, [...#57609:f55c8] DEBUG -- development: RackSessionDalliLogger#write_session  id: 4492cb87-36a7-4278-b53e-65e2c7de5be2 method: GET fullpath: /ws/notifications
[----] D, [...#57609:f55b4] DEBUG -- development: RackSessionDalliLogger#find_session   id: 81279bf5-2386-4d7c-8ca2-8c46d4c3e6ea method: GET fullpath: /api/notifications?expand=resources&attributes=details&sort_by=id&sort_order=desc&limit=100
[----] D, [...#57609:c954] DEBUG -- development: RackSessionDalliLogger#find_session   id: fda1582e-f254-4ea2-847e-37ba858c40fe method: GET fullpath: /dashboard/widget_report_data/22
[----] D, [...#57609:f55c8] DEBUG -- development: RackSessionDalliLogger#find_session   id: 79ca1dca-5565-4f76-97d7-95a1764614d6 method: GET fullpath: /dashboard/widget_report_data/21
[----] D, [...#57609:f571c] DEBUG -- development: RackSessionDalliLogger#find_session   id: ed271786-c357-4328-a72d-52f3c909d630 method: GET fullpath: /dashboard/widget_chart_data/9
[----] D, [...#57609:f5730] DEBUG -- development: RackSessionDalliLogger#find_session   id: 49ed83ab-fac4-4030-a051-61f9d12f5dbf method: GET fullpath: /dashboard/widget_report_data/24
[----] D, [...#57609:f55b4] DEBUG -- development: RackSessionDalliLogger#write_session  id: 81279bf5-2386-4d7c-8ca2-8c46d4c3e6ea method: GET fullpath: /api/notifications?expand=resources&attributes=details&sort_by=id&sort_order=desc&limit=100
[----] D, [...#57609:c954] DEBUG -- development: RackSessionDalliLogger#find_session   id: d9c19f1e-93af-448c-8777-bcf7114a6386 method: GET fullpath: /dashboard/widget_chart_data/10

@jrafanie jrafanie force-pushed the skip-session branch 2 times, most recently from d0e3598 to 0ab65ef Compare September 17, 2025 20:37
@jrafanie jrafanie changed the title [WIP] Skip saving session for dashboard/widget*_data [WIP] Skip writing session for dashboard/widget*_data GETs Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant