Skip to content

Remove no-op DANDI_ALLOW_LOCALHOST_URLS from test configs#1829

Merged
yarikoptic merged 1 commit intodandi:masterfrom
candleindark:rm-allow-localhost-urls
Apr 2, 2026
Merged

Remove no-op DANDI_ALLOW_LOCALHOST_URLS from test configs#1829
yarikoptic merged 1 commit intodandi:masterfrom
candleindark:rm-allow-localhost-urls

Conversation

@candleindark
Copy link
Copy Markdown
Member

@candleindark candleindark commented Apr 2, 2026

Summary

  • DANDI_ALLOW_LOCALHOST_URLS was consumed by the dandi-archive Django
    server to permit localhost URLs in asset contentUrl fields during
    testing (where assets are stored in a local MinIO instance).
  • It was removed from the test docker-compose.yml in commit 09c1b75
    when dandi-archive switched to dandiapi.settings.development, which
    allows localhost URLs by default — making this variable a no-op.
  • Removes the now-dead setting from tox.ini and
    .github/workflows/run-tests.yml.

Test plan

  • Verified the variable is no longer referenced in
    docker-compose.yml (removed in 09c1b75)
  • CI passes without the variable set

🤖 Generated with Claude Code

This variable was consumed by the dandi-archive Django server to permit
`localhost` URLs in asset `contentUrl` fields during testing (where
assets are stored in a local MinIO instance). It was removed from the
test `docker-compose.yml` in commit 09c1b75 when dandi-archive switched
to `dandiapi.settings.development`, which handles this by default,
making the variable a no-op in the test environment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@candleindark candleindark added internal Changes only affect the internal API code quality Nonfunctional improvements to the codebase configuration potentially pointing to configuration parameters to be defined etc labels Apr 2, 2026
@candleindark candleindark requested a review from yarikoptic April 2, 2026 19:23
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.12%. Comparing base (fb5e2f0) to head (21cc1b2).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1829      +/-   ##
==========================================
- Coverage   75.13%   75.12%   -0.01%     
==========================================
  Files          84       84              
  Lines       11931    11931              
==========================================
- Hits         8964     8963       -1     
- Misses       2967     2968       +1     
Flag Coverage Δ
unittests 75.12% <ø> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 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.

@yarikoptic yarikoptic merged commit 9b5b3f6 into dandi:master Apr 2, 2026
37 of 39 checks passed
@candleindark candleindark deleted the rm-allow-localhost-urls branch April 2, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code quality Nonfunctional improvements to the codebase configuration potentially pointing to configuration parameters to be defined etc internal Changes only affect the internal API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants