Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AaronDDM
Copy link
Collaborator

@AaronDDM AaronDDM commented May 23, 2025

What did you do?

  • Add name field to Configuration, CreateConfigurationRequest, and UpdateConfigurationRequest models
  • Add builder support for name attribute in both create and update request classes
  • Add comprehensive tests for name attribute serialization and builder functionality
  • Name field is optional and defaults to organizer's name when not set
  • Fully backward compatible implementation

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

- Add name field to Configuration, CreateConfigurationRequest, and UpdateConfigurationRequest models
- Add builder support for name attribute in both create and update request classes
- Add comprehensive tests for name attribute serialization and builder functionality
- Name field is optional and defaults to organizer's name when not set
- Fully backward compatible implementation
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.57%. Comparing base (fd84619) to head (d2f36b7).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #277   +/-   ##
=========================================
  Coverage     80.57%   80.57%           
  Complexity      333      333           
=========================================
  Files            36       36           
  Lines          1014     1014           
  Branches         88       88           
=========================================
  Hits            817      817           
  Misses          138      138           
  Partials         59       59           

☔ 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.

@nylas-it-ops nylas-it-ops requested a review from Copilot May 23, 2025 20:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for an optional "name" field in Scheduler Configuration models to allow custom naming of Scheduling Pages while remaining backward compatible. Key changes include:

  • Adding the "name" field to Configuration, CreateConfigurationRequest, and UpdateConfigurationRequest models.
  • Incorporating builder methods for the new name attribute in both create and update request classes.
  • Adding comprehensive tests to verify serialization and builder functionality for the name attribute.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/test/kotlin/com/nylas/resources/ConfigurationsTest.kt Adds tests to verify serialization and request parameter contents including the new name field.
src/main/kotlin/com/nylas/models/UpdateConfigurationRequest.kt Updates the update request model to include the optional name attribute and builder support.
src/main/kotlin/com/nylas/models/Scheduler.kt Updates the main Configuration model to include the optional name attribute.
src/main/kotlin/com/nylas/models/CreateConfigurationRequest.kt Updates the create request model to include the optional name attribute and corresponding builder.
CHANGELOG.md Documents the addition of name attribute support in the Scheduling Configuration.

@AaronDDM AaronDDM requested a review from pooja169usp May 27, 2025 13:04
@AaronDDM AaronDDM merged commit 9d72614 into main May 27, 2025
3 checks passed
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.

4 participants