-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add domain_data
to Organizations Create and Update methods to replace domains
#291
Add domain_data
to Organizations Create and Update methods to replace domains
#291
Conversation
These assertions don't really care about the internal behavior of `WorkOS::Deprecation`.
# @option domain_data [String] domain The domain that belongs to the organization. | ||
# @option domain_data [String] state The state of the domain. "verified" or "pending" | ||
# @param [Array<String>] domains List of domains that belong to the organization. | ||
# Deprecated: Use domain_data instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this deprecation notice supposed to be attached to the old domains
param? (i think we lost that one?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it should be associated with domains
:
# @param [Array<String>] domains List of domains that belong to the organization.
# Deprecated: Use domain_data instead.
Maybe it looks a bit weird since it is on the next line, indented, as a separate "paragraph". Is that the right way to document it in Ruby?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohhh, i don't know how i wasn't seeing that earlier. yeah this looks right to me 👍
Description
Adds a new
domain_data
parameter to be passed to Organization create and update calls, instead of thedomains
parameter which will be soon deprecated.While I was in here I also cleaned up some noise and warnings when running the specs, and also unified the way we were calling
warn
into a sharedWorkOS::Deprecation
module.Documentation
Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.
If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.