Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Collect new snapshots #130

Merged
merged 6 commits into from Jul 12, 2023
Merged

Collect new snapshots #130

merged 6 commits into from Jul 12, 2023

Conversation

ghost
Copy link

@ghost ghost commented May 16, 2023

Nautobot still was not automatically refreshing snapshots. This should fix the issue.

This should force Nautobot to pull new snapshots when a user navigates to the `/extras/jobs/plugins-nautobot_ssot_ipfabric-jobs-ipfabricdatasource/run/` page
@ghost ghost requested review from glennmatthews, pke11y and chadell as code owners May 16, 2023 15:12
@ghost ghost changed the title Draft: Collect new snapshots Collect new snapshots May 16, 2023
@ghost
Copy link
Author

ghost commented May 16, 2023

Tested and now anytime someone goes to the page to start a sync it will now collect new snapshots like it should.

@ghost ghost changed the title Collect new snapshots DRAFT: Collect new snapshots May 16, 2023
@ghost
Copy link
Author

ghost commented Jun 21, 2023

Any idea how we can correctly do this so it updates snapshots once instead of twice? Another customer having issues not viewing recent snapshots and only seeing old data.

jjeff07 added 2 commits June 21, 2023 10:15
They are able to get a list of snapshots but the sync was not working.
This should allow the sync to try to init the IPF client again before erroring.
@ghost ghost changed the title DRAFT: Collect new snapshots Collect new snapshots Jun 21, 2023
@pke11y pke11y requested a review from alhogan June 26, 2023 11:15
Copy link
Contributor

@pke11y pke11y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and it works.

@@ -219,6 +225,8 @@ def load_target_adapter(self):

def sync_data(self):
"""Sync a device data from IP Fabric into Nautobot."""
if self.client is None:
self.client = self._init_ipf_client()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could perhaps just refresh the client without checking, but no big deal.

@pke11y pke11y merged commit 1fe77ad into nautobot:develop Jul 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants