Skip to content

Add bulk import functionality for tags with duplicate handling#47

Merged
ngAlexander9 merged 4 commits intomainfrom
ang/import-tags
Apr 3, 2026
Merged

Add bulk import functionality for tags with duplicate handling#47
ngAlexander9 merged 4 commits intomainfrom
ang/import-tags

Conversation

@ngAlexander9
Copy link
Copy Markdown
Contributor

@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
Copy link
Copy Markdown
Contributor

@shilorigins shilorigins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with slaclab/react-squirrel#84, this endpoint is quick and accurate when importing tags from a csv with 35,000+ rows. Works great!

@ngAlexander9 ngAlexander9 merged commit 1446d67 into main Apr 3, 2026
2 checks passed
@ngAlexander9 ngAlexander9 deleted the ang/import-tags branch April 3, 2026 18:16
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