nautobot-app-chatops icon indicating copy to clipboard operation
nautobot-app-chatops copied to clipboard

Snapshot refreshing

Open ghost opened this issue 3 years ago • 3 comments

Environment

  • Nautobot version: 1.2.4
  • ipfabric version: 1.1.0

Proposed Functionality

Currently a user's context only has snapshot_id. I am proposing we add the following:

  • expiration: Not really an expiration but after 12 hours check to see if the snapshot is still there or newer snapshots available, see next item
  • snapshot_ref or use_last: We store the actual snapshot_id in the context however if I chose $last and a new snapshot is available the chatops will not change to the new one. With the above expiration we check every 12 hours and see if there is a new snapshot and then prompt the user. "Currently using UUID as snapshot, newest snapshot is UUID. Would you like to switch to $last"

Use Case

Snapshots in IP Fabric are usually run every day (sometimes 2x day). There can be a maximum of 5 loaded snapshots in the system and older ones are automatically moved to unloaded. If I use the chatops on Monday and then use it again Friday there is a possibility it errors as the snapshot was unloaded or I am using old data.

ghost avatar Jan 28 '22 13:01 ghost

@pke11y This may be good to include in the next release, IPF example: ipf = IPFClient() ipf.update()

or

ipf = IPFDiagram() ipf.update()

ghost avatar May 09 '22 11:05 ghost

@justinjeffery-ipf is this still a valid issue?

pke11y avatar Jul 08 '22 10:07 pke11y

Umm I will do some testing next week and let you know

ghost avatar Jul 08 '22 12:07 ghost