-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adding multiple path support when requesting audit events #730
Conversation
75655ee
to
4705bc9
Compare
Change of plans, the functionality of |
Don't change your plans yet, investigate the total cost of the change - scope it out and then decide. |
Yeah, it seems like a 1 line change https://github.com/MatrixAI/Polykey-Network-Status/blob/dea74578e15d4d3402f568204c65a03cb6670ce9/src/routes/api/nodes/index.ts#L38C1-L43C14 for I believe Polykey-Network-Dashboard will also need a dependency update for this change as well. |
The audit domain does a lot of type magic. While it's impressive it's very hard to follow what's happening and why. It's really cool that the output of the It would be a lot cleaner to have all the event types extend a generic base I'm not sure this is a change I want to make in the scope of this PR however. That said, We're already making changes that have downstream affects, so it might be worth looking at. |
Ok, the changes made by Also note that the |
…t events while selecting multiple paths [ci skip]
3342b63
to
c1669b6
Compare
Ready to merge. Unless we want to look into simplifying how all the types work but that can be a new PR. |
Make sure @brynblack is prepared for this changeover. Spec out the procedure and review with @amydevs to document this zero downtime update. |
Let's see, I'll need @amydevs input on the scope of what is affected in the dashboard. I think @brynblack will be coordinating the infrastructure changes needed for this as well. At first blush it seems that
I think So the minimal downtime procedure here is...
I think that covers everything? Any input @amydevs ? We'll need a new issue for coordinating this, but I'm unsure where. Also, I can proceed with the audit domain in CLI and merge that. But a new CLI version is blocked by prep work for the dashboard supporting it. |
I'm merging this now, but MatrixAI/Polykey-CLI#178 is blocked by the above mentioned prep-work |
Description
This PR adds the
auditEventMultiPathGet
handler for getting audit events while specifying multiple event paths. The paths are specified in dot path formata.b.c
. and filtered down to the minimum common paths in the list. Multiple iterators are created and combined when returning the stream.Issues Fixed
Tasks
auditEventMultiPathGet
handler for efficiently getting audit events while combining multiple audit paths.Final checklist