Skip to content

Validate UUID middleware#3815

Open
lferran wants to merge 7 commits into
mainfrom
validate-uuid-middleware
Open

Validate UUID middleware#3815
lferran wants to merge 7 commits into
mainfrom
validate-uuid-middleware

Conversation

@lferran

@lferran lferran commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description

Add middleware to validare uuid for resources and kbids and return a 404

How was this PR tested?

Describe how you tested this PR.

@lferran
lferran requested review from a team as code owners July 17, 2026 09:12
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.54545% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.37%. Comparing base (f37ba0c) to head (f293593).

Files with missing lines Patch % Lines
nucliadb/src/nucliadb/middleware/__init__.py 96.00% 2 Missing ⚠️
nucliadb/src/nucliadb/train/app.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3815      +/-   ##
==========================================
- Coverage   85.40%   85.37%   -0.04%     
==========================================
  Files         572      572              
  Lines       50580    50629      +49     
  Branches    15354    15354              
==========================================
+ Hits        43200    43225      +25     
- Misses       6746     6769      +23     
- Partials      634      635       +1     
Flag Coverage Δ
nidx 80.92% <ø> (-0.01%) ⬇️
nucliadb 74.49% <94.54%> (+0.45%) ⬆️
nucliadb-ingest 43.77% <29.09%> (-0.04%) ⬇️
nucliadb-reader 43.77% <89.09%> (+0.06%) ⬆️
nucliadb-search 54.87% <89.09%> (+0.04%) ⬆️
nucliadb-standalone 46.11% <94.54%> (+0.08%) ⬆️
nucliadb-train 44.74% <87.27%> (+0.06%) ⬆️
nucliadb-writer 47.23% <87.27%> (+0.05%) ⬆️
nucliadb_dataset 73.41% <ø> (ø)
nucliadb_models 69.70% <ø> (ø)
nucliadb_sdk 82.29% <ø> (ø)
nucliadb_telemetry 85.67% <ø> (ø)
nucliadb_utils 80.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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