Skip to content

Conversation

@ameliahsu
Copy link
Member

added description to the detector validator so users can add create/update detector descriptions

@ameliahsu ameliahsu requested a review from a team as a code owner October 31, 2025 19:08
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 31, 2025
def test_update_description(self) -> None:
assert self.detector.description is None

data = {
Copy link
Member

Choose a reason for hiding this comment

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

since i'm not quite sure of the convention for validators, is it worth testing that not providing a description doesn't make it go away, and that setting it to empty works? Probably not, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

I did write these tests initially, but it felt a bit excessive just for the description. These cases do work tho, I tested them locally 🙃

@kcons kcons self-requested a review October 31, 2025 19:18
@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #102505      +/-   ##
===========================================
+ Coverage   80.82%    80.90%   +0.07%     
===========================================
  Files        8826      8828       +2     
  Lines      390071    390084      +13     
  Branches    24799     24799              
===========================================
+ Hits       315294    315579     +285     
+ Misses      74426     74154     -272     
  Partials      351       351              

@ameliahsu ameliahsu merged commit 3af5f79 into master Oct 31, 2025
70 checks passed
@ameliahsu ameliahsu deleted the mia/aci/detector-description branch October 31, 2025 21:00
jjbayer pushed a commit that referenced this pull request Nov 3, 2025
added `description` to the detector validator so users can add
create/update detector descriptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants