Skip to content

Auto-translated map_item updates from 4CAT: instagram#81

Draft
4cat-to-zeeschuimer-automation-pr[bot] wants to merge 1 commit into
masterfrom
auto/4cat-map-item-sync-instagram
Draft

Auto-translated map_item updates from 4CAT: instagram#81
4cat-to-zeeschuimer-automation-pr[bot] wants to merge 1 commit into
masterfrom
auto/4cat-map-item-sync-instagram

Conversation

@4cat-to-zeeschuimer-automation-pr
Copy link
Copy Markdown

@4cat-to-zeeschuimer-automation-pr 4cat-to-zeeschuimer-automation-pr Bot commented May 7, 2026

🤖 This PR was auto-generated by the 4CAT map_item sync workflow. The JavaScript was produced by an LLM and requires human review before merging — including manual fixes for any lint warnings flagged below.

Generation parameters

  • Model: gpt-oss-120b (provider: litellm)
  • Total LLM time: 77.51s
  • Trigger: manual workflow_dispatch for instagram.

Summary

  • ✅ 1 translated
  • ⚠️ 1 translated with lint warnings (require manual fix)
  • ❌ 0 failed
  • ❔ 0 skipped
Datasource Module Time Warnings
datasources/instagram/search_instagram.py modules/instagram.js 77.49s ⚠️ 1

⚠️ Lint warnings — fix before merging

The following datasources translated successfully but the static lint flagged issues that need human fixes. The auto-generated code was spliced into the JS module as-is; please patch the file directly in this PR.

datasources/instagram/search_instagram.py -> modules/instagram.js

  • [helpers_to_add[0]] Literal newline inside a string literal — JS strings can't span lines without escape ("\n") or template literals (`\n`).

datasources/instagram/search_instagram.py -> modules/instagram.js (77.49s) ⚠️

LLM commentary:

Implemented map_item to detect Polaris, Graph, or generic item‑list formats and delegate to helper parsers. Added extract_hashtags (using a JS RegExp that mirrors the Python pattern) and three parser functions that closely follow the Python logic, including handling of MissingMappedField, partial items, media type detection, location extraction, likes/comments, and timestamps (using the global formatUtcTimestamp helper). Constants for media types are defined inside parse_itemlist_item. All global helpers (MappedItem, MissingMappedField, normalize_url_encoding, formatUtcTimestamp, MapItemException) are used directly without imports. No Python keywords or .get calls remain.

@4cat-to-zeeschuimer-automation-pr 4cat-to-zeeschuimer-automation-pr Bot force-pushed the auto/4cat-map-item-sync-instagram branch 2 times, most recently from 6b3dda7 to 1535367 Compare May 28, 2026 14:59
@4cat-to-zeeschuimer-automation-pr 4cat-to-zeeschuimer-automation-pr Bot force-pushed the auto/4cat-map-item-sync-instagram branch 2 times, most recently from e9e5731 to cbfb24e Compare June 4, 2026 14:08
@4cat-to-zeeschuimer-automation-pr 4cat-to-zeeschuimer-automation-pr Bot force-pushed the auto/4cat-map-item-sync-instagram branch from cbfb24e to ca4a8aa Compare June 4, 2026 16:31
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.

1 participant