Skip to content

Add bulk import functionality for tags with duplicate handling#47

Open
ngAlexander9 wants to merge 2 commits intomainfrom
ang/import-tags
Open

Add bulk import functionality for tags with duplicate handling#47
ngAlexander9 wants to merge 2 commits intomainfrom
ang/import-tags

Conversation

@ngAlexander9
Copy link
Copy Markdown

@ngAlexander9 ngAlexander9 commented Mar 24, 2026

Description

  • Added bulk_import_tags endpoint (/v1/tags/bulk) that allows clients to import multiple tag groups and tags in one request, with clear summary reporting of created groups, created tags, skipped tags (due to duplicates), and warnings. Avoids having to add each tag individually (400+ queries!).
  • Updated the add_tag_to_group endpoint to accept a skip_duplicates query parameter. When set to true, duplicate tags are skipped instead of causing an error.

Motivation

Supports slaclab/react-squirrel#84

Screenshots

Pre-merge checklist

  • Code works interactively
  • Code contains descriptive docstrings
  • New/changed functions and methods are covered in the test suite where possible
  • Test suite passes locally
  • Test suite passes on GitHub Actions

@ngAlexander9 ngAlexander9 changed the title feat: add bulk import functionality for tags with duplicate handling Add bulk import functionality for tags with duplicate handling Mar 24, 2026
@ngAlexander9 ngAlexander9 marked this pull request as ready for review March 25, 2026 20:54
@ngAlexander9 ngAlexander9 requested a review from a team March 25, 2026 20:55
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