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

FE: NMS-17004: Update the login events item in Usage Stats, add link to download CSV file #7598

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Shahbaz-dataq
Copy link
Contributor

Description

A new item, “CSV output of Login events for the past 60 days”, has been added to the usage stats list.

The “Latest Value” column will contain Base64-encoded file contents.

Update the column to display a download link labeled “Download CSV file”. The link should decode the Base64 content and trigger the file download.

The implementation should be generic, based on the datatype value (file|csv) provided in the metadata.

If the datatype starts with "file", split it using | to extract the file type (e.g., csv in this case) and handle the file appropriately.

Metadata:

{
"key": "loginsPast60Days",
"name": "CSV output of Login events for the past 60 days",
"description": "CSV output containing the date, username login events for the past 60 days",
"datatype": "file|csv"
}

External References

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.

1 participant