feat: access-usage last-used column and filter; get_access_audit in System MCP tool catalogue - #521
Merged
Merged
Conversation
…ogue Read-only tool that reports last-used / never-used / stale API keys, roles and users from system/access_usage. Catalogue and spec go from 17 to 18 tools; df-system-mcp-server TOOL_NAMES must list it after list_admins.
…, roles, users, admins Join GET system/access_usage client-side (like the apps table's AI usage join) through a new DfAccessUsageService, and opt the apps, roles, users and admins tables into it via DfManageTableComponent.enableAccessUsage(): - "Last used" (apps, roles) / "Last active" (users, admins) column with relative time or "Never"; tooltip carries the exact time, the service and status of the last use, the last denial, stale window, last login and 30-day volume when present, and "no use recorded since" tracking start for never-used subjects - muted text for stale / never-used subjects, a warning icon for inactive keys that clients still send, an "Unreferenced" badge on roles - "Not used in" selector (Any / 30 / 90 / 180 days / Never used), filtering the loaded rows client-side; the column sorts by last use The request is silent: on 404 (older DreamFactory), 401/403, 400 or any error the column and filter stay hidden and the tables render as before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
system/access_usage(dreamfactorysoftware/df-system PR feature/access-usage).get_access_auditto the System API MCP Server tool catalogue (18 tools).Test plan