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 updateNodeDraft #349

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Update updateNodeDraft #349

merged 1 commit into from
Nov 11, 2024

Conversation

BLYKIM
Copy link
Contributor

@BLYKIM BLYKIM commented Nov 4, 2024

  • updateNodeDraft GraphQL API to no longer require config in NodeDraftInput::agents.

Close: #335

Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.29%. Comparing base (455758d) to head (3de06cd).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #349      +/-   ##
==========================================
+ Coverage   68.52%   69.29%   +0.76%     
==========================================
  Files          67       67              
  Lines       13665    14007     +342     
==========================================
+ Hits         9364     9706     +342     
  Misses       4301     4301              

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

src/graphql/node/control.rs Show resolved Hide resolved
src/graphql/node/crud.rs Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@BLYKIM BLYKIM force-pushed the bly/update_node_draft branch 2 times, most recently from fe599c9 to 37508b3 Compare November 4, 2024 23:00
@BLYKIM BLYKIM requested a review from sophie-cluml November 6, 2024 01:17
Comment on lines 147 to 148
.cloned()
.and_then(|config| config.and_then(|c| c.try_into().ok()));
Copy link
Contributor

Choose a reason for hiding this comment

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

This is good enough. However, I would suggest using clone as late as possible in the code, as it helps convey why clone is inevitable.

- `updateNodeDraft` GraphQL API to no longer require `config` in
  `NodeDraftInput::agents`.
@BLYKIM BLYKIM force-pushed the bly/update_node_draft branch from 37508b3 to 3de06cd Compare November 10, 2024 23:23
@sehkone sehkone merged commit 787c96b into main Nov 11, 2024
10 checks passed
@sehkone sehkone deleted the bly/update_node_draft branch November 11, 2024 01:27
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.

updateNodeDraft GraphQL API's new parameter does not have to have agents' config
3 participants