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

Added support for Task completion_rule field #758

Merged
merged 3 commits into from
Oct 13, 2021
Merged

Added support for Task completion_rule field #758

merged 3 commits into from
Oct 13, 2021

Conversation

antusus
Copy link
Contributor

@antusus antusus commented Oct 12, 2021

No description provided.

mwwoda
mwwoda previously approved these changes Oct 13, 2021
Copy link
Contributor

@mwwoda mwwoda left a comment

Choose a reason for hiding this comment

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

Just small nitpicks.

Id = "7287087200",
Type = BoxType.file
},
Message = "REVIEW PLZ K THX",
Copy link
Contributor

Choose a reason for hiding this comment

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

😄

Box.V2.Test/BoxTasksManagerTest.cs Outdated Show resolved Hide resolved
@@ -399,6 +400,7 @@ public async Task CreateTask_ValidResponse()
Assert.AreEqual(taskCreateRequest.Item.Id, payload.Item.Id);
Assert.AreEqual(taskCreateRequest.Item.Type, payload.Item.Type);
Assert.AreEqual(taskCreateRequest.Message, payload.Message);
Assert.IsNull(payload.CompletionRule);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to check it explicitly? I don't see any reason to do this in here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure i can remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh wait... this one is useful. Without it CompletionRule could be not marked as optional and then this field is automatically set to first value from enum BoxCompletionRule. I could move it to dedicated test?

@antusus antusus merged commit 5ac133d into main Oct 13, 2021
@antusus antusus deleted the sdk-1053 branch October 13, 2021 13:21
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.

2 participants