Skip to content

Support search by description in search providers#3647

Merged
Simrayz merged 1 commit intomasterfrom
feat/3149-support-description-in-search
Nov 12, 2025
Merged

Support search by description in search providers#3647
Simrayz merged 1 commit intomasterfrom
feat/3149-support-description-in-search

Conversation

@Simrayz
Copy link
Copy Markdown
Contributor

@Simrayz Simrayz commented Nov 4, 2025

Scope and purpose

Resolves #3149

This PR adds support for searching by description in the main info search, for rooms, locations, vlans and device groups.

image

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

@Simrayz Simrayz self-assigned this Nov 4, 2025
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Nov 4, 2025

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2025

Test results

    27 files      27 suites   45m 44s ⏱️
 2 669 tests  2 669 ✅ 0 💤 0 ❌
19 742 runs  19 742 ✅ 0 💤 0 ❌

Results for commit 22325bc.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.82%. Comparing base (16d6419) to head (22325bc).
⚠️ Report is 289 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3647      +/-   ##
==========================================
- Coverage   62.82%   62.82%   -0.01%     
==========================================
  Files         611      611              
  Lines       45125    45127       +2     
  Branches       43       43              
==========================================
  Hits        28351    28351              
- Misses      16764    16766       +2     
  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 requested a review from a team November 5, 2025 07:59
Copy link
Copy Markdown
Contributor

@johannaengland johannaengland left a comment

Choose a reason for hiding this comment

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

chef's kiss

)

@staticmethod
def assert_search_provider_result(instance: models.Model, provider_name: str):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh, this is absolutely beautiful! Nice abstraction!

@Simrayz Simrayz merged commit f253c01 into master Nov 12, 2025
19 checks passed
@Simrayz Simrayz deleted the feat/3149-support-description-in-search branch November 12, 2025 08:58
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.

Search box - search inside Description

2 participants