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

show defaults for new reports in sidebar #1162

Open
inphobia opened this issue Jan 31, 2024 · 0 comments
Open

show defaults for new reports in sidebar #1162

inphobia opened this issue Jan 31, 2024 · 0 comments

Comments

@inphobia
Copy link
Member

enhancement idea for new reports, like recentlyaddeddevices

i really love the new reports, but it took me a bit to figure out how to use a custom period. most date sidebar fields have a date selector if you click on them. so, try & alter the period for recentyaddeddevices i tried using that format but got an error.
having a look at the code it turns out the default is "2 months" , so using 12 months in the sidebar worked fine.

perhaps we can make this more userfriendly by having the default be shown in the sidebar fields?

and if we're at it perhaps somehow make the default not hardcoded?

WHERE creation > (LOCALTIMESTAMP - COALESCE(NULLIF(?,''), '2 months')::interval)

also no idea if it can be done for all reports.

Context

Your Environment

  • Netdisco version used: 2.72.2

Config info (deployment.yml)

Device information

https://github.com/netdisco/netdisco/wiki/Snapshot#share-a-snapshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants