Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AgentKind enum variants #352

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Update AgentKind enum variants #352

merged 1 commit into from
Nov 13, 2024

Conversation

danbi2990
Copy link
Contributor

@danbi2990 danbi2990 commented Nov 8, 2024

  • Update review-database to 0.32.0
  • Rename AgentKind enum variants to align with review-database
  • Add TimeSeriesGenerator variant
  • Update relevant test cases

Close: #351

@danbi2990 danbi2990 force-pushed the jake/update-agentkind branch from 0e44dde to 2c185de Compare November 8, 2024 01:14
@danbi2990 danbi2990 changed the title Update AgentKind enum variants [WIP] Update AgentKind enum variants Nov 8, 2024
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 96.23431% with 9 lines in your changes missing coverage. Please review.

Project coverage is 69.29%. Comparing base (787c96b) to head (b77141a).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/graphql.rs 0.00% 8 Missing ⚠️
src/graphql/node/control.rs 99.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #352      +/-   ##
==========================================
- Coverage   69.29%   69.29%   -0.01%     
==========================================
  Files          67       67              
  Lines       14007    14015       +8     
==========================================
+ Hits         9706     9711       +5     
- Misses       4301     4304       +3     

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

@danbi2990 danbi2990 force-pushed the jake/update-agentkind branch from 2c185de to 7e9ceaf Compare November 8, 2024 01:25
@danbi2990 danbi2990 changed the title [WIP] Update AgentKind enum variants Update AgentKind enum variants Nov 8, 2024
@@ -1298,7 +1298,7 @@ mod tests {
hostname: "collector1",
agents: [{
key: "piglet"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to change this to the new nickname. This way, we can completely avoid mentioning the previous names.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All keys have been updated.

For consistency, also updated:
learner => unsupervised
models => semi_supervised
features => sensor

@danbi2990 danbi2990 force-pushed the jake/update-agentkind branch from 7e9ceaf to 49b7010 Compare November 8, 2024 06:39
src/graphql.rs Outdated
@@ -593,22 +593,25 @@ impl AgentManager for MockAgentManager {
&self,
_networks: &HostNetworkGroup,
) -> Result<Vec<String>, anyhow::Error> {
Ok(vec!["hog@hostA".to_string()])
Ok(vec!["semi_supervised@hostA".to_string()])
Copy link
Contributor

Choose a reason for hiding this comment

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

semi-supervised is a definitely better option.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Applied suggested adjustment. Thank you.

@danbi2990 danbi2990 force-pushed the jake/update-agentkind branch 2 times, most recently from 837b003 to 614de29 Compare November 8, 2024 07:19
@sophie-cluml
Copy link
Contributor

Could you rebase please?

@danbi2990 danbi2990 force-pushed the jake/update-agentkind branch from 614de29 to 53e0561 Compare November 12, 2024 01:49
- Update review-database to 0.32.0
- Rename previous enum variants to align with review-database
- Add `TimeSeriesGenerator` variant

Close: #351
@danbi2990 danbi2990 force-pushed the jake/update-agentkind branch from 53e0561 to b77141a Compare November 12, 2024 01:57
@danbi2990
Copy link
Contributor Author

Could you rebase please?

Done rebase. Thank you.

@sehkone sehkone merged commit 808a3c9 into main Nov 13, 2024
10 checks passed
@sehkone sehkone deleted the jake/update-agentkind branch November 13, 2024 02:33
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.

Update AgentKind according to the update in review-database
3 participants