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

Change constructor arg "name" to "identity" #135

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

tcmitchell
Copy link
Collaborator

The use of "name" as the argument caused confusion. The argument does not populate the "name" field of an object. Rather, it is used to populate the identity and/or display_id. Switch to calling it identity, which is the first use in the heuristic. If the value is not a valid identity it is assumed to be a display_id and concatenated with a default namespace if one exists.

@bbartley @tramyn this pull request contains a change that is not backward compatible. It is very likely that some of your code will have to change. You will need to change any registered builders (via Document.register_builder) to rename the name argument to identity.

Additionally if you have code that invokes a constructor using a name keyword argument, that invocation must be updated by renaming name to identity.

CC: @jakebeal

Closes #130

The use of "name" as the argument caused confusion. The argument does not
populate the "name" field of an object. Rather, it is used to populate the
identity and/or display_id. Switch to calling it identity, which is the
first use in the heuristic. If the value is not a valid identity it is
assumed to be a display_id and concatenated with a default namespace if
one exists.
@tcmitchell tcmitchell added this to the alpha milestone Jan 13, 2021
@tcmitchell tcmitchell self-assigned this Jan 13, 2021
@tcmitchell tcmitchell merged commit 757b08c into SynBioDex:master Jan 13, 2021
@tcmitchell tcmitchell deleted the 130-constructor-identity branch January 13, 2021 21:49
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.

Rename the name argument to constructors
1 participant