Skip to content

Maite modules batch 9#1327

Merged
JamesHabben merged 11 commits into
abrignoni:mainfrom
Maite2003:maite-modules-batch-9
Jun 4, 2026
Merged

Maite modules batch 9#1327
JamesHabben merged 11 commits into
abrignoni:mainfrom
Maite2003:maite-modules-batch-9

Conversation

@Maite2003

Copy link
Copy Markdown
Contributor

Refactor artifacts to v2 and to use Context.
Also added plist validation

  • In bluetoothPairedReg.py changed lastseen from a string to a datetime object in utc. Also marked the data header column
  • In booking.py removed the preferences artifact since it was only used to set a global variable which was only used by the booking_booked artifact. Instead, I added the path to that artifact and set the variable inside the artifact to ensure it is set before the artifact is executed
  • In booking.py fixed some of the HTML data_lists. Also, in the booking_notifications artifact, changed the query to retrieve raw data and the perform the conversion with convert_cocoa_core_data_ts_to_utc function

I tested blockedContacts, bluettothOther, bluetoothPairedLE and bluetoothPairedReg. For booking i couldn't find test data

Updated blockedContacts, bluetoothOther, and bluetoothPairedLE artifacts to use  context. Also removed unused imports
Updated to use context.
Replaced plist file handling to use get_plist_file_content
Changed return source file to be consistent with other artifacts
Updated artifact dict.
Deleted the booking preferences artifact and replaced it with a function inside booking_booked.
Changed artifacts output for source file to be consistent with other artifacts
Changed datetime handling
changed datetime function to return utc datetime instead of string
Also mark Last seen time column as datetime
@JamesHabben JamesHabben added the Artifact Module Update related to an artifact module label Nov 6, 2025
@JamesHabben

Copy link
Copy Markdown
Collaborator
  • the booking_account artifact was appending 19 column values when only 18 were expected. removed a double source file value
  • the booking_preferences function was removed, but the artifact header was still in place. removed entry
  • the bluetoothPairedReg module was returning inside the loop. moved to outside the loop.

@JamesHabben

Copy link
Copy Markdown
Collaborator

after committing, GitHub was showing issues with booking module. turns out @djangofaiola updated this a few months back. removed the booking from this pr since its no longer needed.

@JamesHabben JamesHabben merged commit 42c7d31 into abrignoni:main Jun 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Artifact Module Update related to an artifact module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants