Skip to content

feat(ovpnrw): connections history from storage if available#720

Open
m-dilorenzi wants to merge 2 commits intomainfrom
vpn_rw_conn_history_from_storage
Open

feat(ovpnrw): connections history from storage if available#720
m-dilorenzi wants to merge 2 commits intomainfrom
vpn_rw_conn_history_from_storage

Conversation

@m-dilorenzi
Copy link
Collaborator

This pull request refactors the OpenVPN RW connections history feature to improve performance, usability, and code maintainability. The most significant changes include switching from local data filtering to server-side querying with pagination and sorting, updating the UI to handle asynchronous states, and simplifying component responsibilities.

Data fetching and filtering improvements:

  • Replaced local filtering and manual pagination in ConnectionsHistory.vue with server-side querying using @tanstack/vue-query, including debounced search, route-persisted filters, sorting, and pagination. This enables more efficient handling of large datasets and improves responsiveness.
  • Removed obsolete local filtering functions and related state, shifting all filtering, sorting, and pagination logic to the backend and query parameters.

UI and component updates:

  • Updated ConnectionsHistory.vue and UserConnectionsTable.vue to use new query state variables (isPending, isSuccess, isError, etc.) for displaying loading skeletons, error notifications, and empty states, improving user feedback and clarity.
  • Modified UserConnectionsTable.vue to receive paginated, sorted data and control parameters as props, removing internal sorting and pagination logic, and emitting events for parent control.

Error handling and filter reset enhancements:

  • Separated download error handling from query errors, providing distinct notifications for download failures and query issues. Updated filter reset logic to clear all filters and reset page state.

Closes: NethServer/nethsecurity#1404

@m-dilorenzi m-dilorenzi requested a review from Tbaile March 12, 2026 16:01
@m-dilorenzi m-dilorenzi self-assigned this Mar 12, 2026
@Tbaile Tbaile changed the title feat(ovpn-rw-conn-history): connections history from storage if available feat(ovpnrw): connections history from storage if available Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show full OpenVPN RW in the UI connection history from stored logs instead of RAM

1 participant