Skip to content

feat: add model name check and count endpoints#345

Open
shivv23 wants to merge 2 commits into
c2siorg:mainfrom
shivv23:feat/model-check-name-count
Open

feat: add model name check and count endpoints#345
shivv23 wants to merge 2 commits into
c2siorg:mainfrom
shivv23:feat/model-check-name-count

Conversation

@shivv23
Copy link
Copy Markdown
Contributor

@shivv23 shivv23 commented May 22, 2026

Summary

Add two utility endpoints for model management that improve the developer and user experience.

Changes

  • GET /model/check-name — Check if a model name is available before saving (scoped to project)
  • GET /model/count — Get the total count of saved models (optional project_id filter)
  • 6 unit tests covering available/unavailable name checks, project scoping, and count cases

Validation

  • 6 new unit tests added (168 total backend tests pass)
  • Single commit, rebased on latest main

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 22, 2026

PR Review

Squash

Your PR has 2 commits. Please squash into a single commit.

How to fix

git fetch origin
git rebase -i origin/main   # mark all but first commit as "squash"
git push --force-with-lease

This comment updates automatically on each push.

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