Skip to content

Use path as parameter type for module name in Django path#3653

Merged
johannaengland merged 2 commits into5.15.xfrom
bugfix/ipdevinfo-module-name-slash
Nov 17, 2025
Merged

Use path as parameter type for module name in Django path#3653
johannaengland merged 2 commits into5.15.xfrom
bugfix/ipdevinfo-module-name-slash

Conversation

@johannaengland
Copy link
Copy Markdown
Contributor

Scope and purpose

Fixes #3652.

Contributor Checklist

Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to NAV can be found in the
Hacker's guide to NAV.

  • Added a changelog fragment for towncrier
  • Added/amended tests for new/changed code
  • Added/changed documentation
  • Linted/formatted the code with ruff, easiest by using pre-commit
  • Wrote the commit message so that the first line continues the sentence "If applied, this commit will ...", starts with a capital letter, does not end with punctuation and is 50 characters or less long. See https://cbea.ms/git-commit/
  • Based this pull request on the correct upstream branch: For a patch/bugfix affecting the latest stable version, it should be based on that version's branch (<major>.<minor>.x). For a new feature or other additions, it should be based on master.
  • If applicable: Created new issues if this PR does not fix the issue completely/there is further work to be done
  • If it's not obvious from a linked issue, described how to interact with NAV in order for a reviewer to observe the effects of this change first-hand (commands, URLs, UI interactions)
  • If this results in changes in the UI: Added screenshots of the before and after
  • If this adds a new Python source code file: Added the boilerplate header to that file

@johannaengland johannaengland requested review from a team, aleksfl and lunkwill42 November 14, 2025 11:47
@johannaengland johannaengland self-assigned this Nov 14, 2025
@johannaengland johannaengland changed the title Bugfix/ipdevinfo module name slash Use path as parameter type for module name in Django path Nov 14, 2025
aleksfl
aleksfl previously approved these changes Nov 14, 2025
Copy link
Copy Markdown
Contributor

@aleksfl aleksfl left a comment

Choose a reason for hiding this comment

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

Looks good.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 14, 2025

Test results

    27 files      27 suites   45m 26s ⏱️
 2 667 tests  2 667 ✅ 0 💤 0 ❌
19 726 runs  19 726 ✅ 0 💤 0 ❌

Results for commit f9b8de3.

♻️ This comment has been updated with latest results.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.88%. Comparing base (2f46c7e) to head (f9b8de3).
⚠️ Report is 17 commits behind head on 5.15.x.

Additional details and impacted files
@@            Coverage Diff             @@
##           5.15.x    #3653      +/-   ##
==========================================
+ Coverage   62.82%   62.88%   +0.05%     
==========================================
  Files         611      611              
  Lines       45125    45125              
  Branches       43       43              
==========================================
+ Hits        28349    28376      +27     
+ Misses      16766    16739      -27     
  Partials       10       10              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Simrayz
Simrayz previously approved these changes Nov 14, 2025
Copy link
Copy Markdown
Contributor

@Simrayz Simrayz left a comment

Choose a reason for hiding this comment

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

Nice :D It's so satisfying when the fix is simple.

@johannaengland johannaengland force-pushed the bugfix/ipdevinfo-module-name-slash branch from 0490b98 to 00c87fd Compare November 14, 2025 13:35
lunkwill42
lunkwill42 previously approved these changes Nov 14, 2025
Copy link
Copy Markdown
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

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

@johannaengland johannaengland dismissed stale reviews from lunkwill42 and Simrayz via 50f8b16 November 14, 2025 14:22
@johannaengland johannaengland force-pushed the bugfix/ipdevinfo-module-name-slash branch from 50f8b16 to 87345cc Compare November 14, 2025 14:24
Accessing ipdevinfo for IP devices having a module with / in name
lead to internal server error
@johannaengland johannaengland force-pushed the bugfix/ipdevinfo-module-name-slash branch from 87345cc to f9b8de3 Compare November 14, 2025 14:25
@sonarqubecloud
Copy link
Copy Markdown

@johannaengland johannaengland merged commit 50a93e8 into 5.15.x Nov 17, 2025
19 checks passed
@johannaengland johannaengland deleted the bugfix/ipdevinfo-module-name-slash branch November 17, 2025 07:57
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.

[BUG] Accessing ipdevinfo for an IP device that has module with / in name raises internal server error

4 participants