Skip to content

Conversation

@briangoldstein
Copy link
Collaborator

Kandji Device Activity API Pagination

  • Added pagination to the get_kandji_device_activity_date() function
  • Calculates offset to jump directly to the last page instead of iterating through all pages
  • Added error handling for missing activity data (shouldn’t happen, but good to validate)
  • Reported by @Jan-Dovetail Issue 30

Improved Logging Messages and Consistency

  • Added more clarity and consistency (still has room for improvement)
  • Fixed typos and incorrect labels in logs

Improved Record Update Logic

  • Makes a distinction between a Kandji record’s timestamp being newer vs there being new data to sync from Kandji

Asset Tag Sync Validation

  • Checks the Kandji response when updating the asset tag field, rather than assuming success
  • Logging is more verbose

Checkout/Checkin Logic

  • Consolidated logic and cleaned up redundant logging
  • Added confirmation of success

Kandji Device Activity API Pagination
- Added pagination to the get_kandji_device_activity_date() function
- Calculates offset to jump directly to the last page instead of iterating through all pages
- Added error handling for missing activity data (shouldn’t happen, but good to validate)

Improved Logging Messages and Consistency
- Added more clarity and consistency (still has room for improvement)
- Fixed typos and incorrect labels in logs

Improved Record Update Logic
- Makes a distinction between a Kandji record’s timestamp being newer vs there being new data to sync from Kandji

Asset Tag Sync Validation
- Checks the Kandji response when updating the asset tag field, rather than assuming success
- Logging is more verbose

Checkout/Checkin Logic
- Consolidated logic and cleaned up redundant logging
- Added confirmation of success
adding user agent change (PR 29/33) to my update
**Kandji Device Activity API Pagination** 
- Added pagination to the get_kandji_device_activity_date() function 
- Calculates offset to jump directly to the last page instead of iterating through all pages
- Added error handling for missing activity data (shouldn’t happen, but good to validate)
- Reported by @Jan-Dovetail [Issue 30](#30)

**Improved Logging Messages and Consistency**
- Added more clarity and consistency (still has room for improvement)
- Fixed typos and incorrect labels in logs

**Improved Record Update Logic**
- Makes a distinction between a Kandji record’s timestamp being newer vs there being new data to sync from Kandji

**Asset Tag Sync Validation** 
- Checks the Kandji response when updating the asset tag field, rather than assuming success
- Logging is more verbose

**Checkout/Checkin Logic**
- Consolidated logic and cleaned up redundant logging
- Added confirmation of success
Merge pull request #33 from grokability/develop
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.

2 participants