[PR #1767] [MERGED] Allow tags in JSON to be CSV or array of strings #4524

Closed
opened 2026-03-15 01:49:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/1767
Author: @danielalanbates
Created: 2/21/2026
Status: Merged
Merged: 2/24/2026
Merged by: @pirate

Base: devHead: fix/issue-1139


📝 Commits (1)

  • 08b0dfa Fix #1139: Return tags as a JSON list in Snapshot.to_dict() for LLM/RAG integration

📊 Changes

1 file changed (+7 additions, -5 deletions)

View changed files

📝 archivebox/core/models.py (+7 -5)

📄 Description

Returns tags as a JSON array in Snapshot.to_dict() and accepts both list and comma-separated tags in from_json()

  • New Features
    • Tags export is now a sorted JSON list for deterministic output.
    • Imports accept list or string formats; trims whitespace and deduplicates tags for compatibility.

Written for commit 08b0dfaf12. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ArchiveBox/ArchiveBox/pull/1767 **Author:** [@danielalanbates](https://github.com/danielalanbates) **Created:** 2/21/2026 **Status:** ✅ Merged **Merged:** 2/24/2026 **Merged by:** [@pirate](https://github.com/pirate) **Base:** `dev` ← **Head:** `fix/issue-1139` --- ### 📝 Commits (1) - [`08b0dfa`](https://github.com/ArchiveBox/ArchiveBox/commit/08b0dfaf127b0ecf76e7d2a4f31be26f97d0a9a8) Fix #1139: Return tags as a JSON list in Snapshot.to_dict() for LLM/RAG integration ### 📊 Changes **1 file changed** (+7 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `archivebox/core/models.py` (+7 -5) </details> ### 📄 Description Returns tags as a JSON array in Snapshot.to_dict() and accepts both list and comma-separated tags in from_json() - **New Features** - Tags export is now a sorted JSON list for deterministic output. - Imports accept list or string formats; trims whitespace and deduplicates tags for compatibility. <sup>Written for commit 08b0dfaf127b0ecf76e7d2a4f31be26f97d0a9a8. Summary will update on new commits.</sup> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 01:49:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#4524
No description provided.