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

Organization Membership Preview API Changes - existing endpoints #1952

Closed

Conversation

hnrkndrssn
Copy link
Contributor

Fixes #1514

@hnrkndrssn hnrkndrssn force-pushed the organization-membership-preview branch 2 times, most recently from fd88e95 to faa6d0f Compare March 15, 2019 15:07
@hnrkndrssn hnrkndrssn force-pushed the organization-membership-preview branch from faa6d0f to 8e8f4af Compare March 15, 2019 15:35
@hnrkndrssn hnrkndrssn marked this pull request as ready for review March 15, 2019 22:48
Copy link
Contributor

@ryangribble ryangribble left a comment

Choose a reason for hiding this comment

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

Hey @hnrkndrssn this looks pretty awesome thanks. I noted a couple of things

@@ -269,6 +269,7 @@ II.2.12 <HandlesEvent />
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpKeepExistingMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpRenamePlacementToArrangementMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean>
Copy link
Contributor

Choose a reason for hiding this comment

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

can you clarify what this resharper setting does?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm...I think this was an involentary change...

/// <summary>
/// Gets or sets the default permission level members have for organization repositories.
/// </summary>
public string DefaultRepositoryPermission { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be an enum?

/// <summary>
/// Default permission level members have for organization repositories.
/// </summary>
public string DefaultRepositoryPermission { get; protected set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be a StringEnum<T> ?

@ryangribble
Copy link
Contributor

I also noticed while reviewing that there is another API preview involving a new field members_allowed_repository_creation_type on Get/Update Organisation endpoints. Should we include that field also or worry about it on another PR? (Note that it's possible to specify multiple preview headers using the AcceptHeaders.Concat() helper method)

@@ -10,12 +10,13 @@ public class Organization : Account
{
public Organization() { }

public Organization(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, int id, string nodeId, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, string billingAddress, string defaultRepositoryPermission, bool membersCanCreateRepositories)
public Organization(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, int id, string nodeId, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, string billingAddress, string defaultRepositoryPermission, bool membersCanCreateRepositories, string membersAllowedRepositoryCreationType)
Copy link
Contributor

Choose a reason for hiding this comment

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

defaultRepositoryPermission and membersAllowedRepositoryCreationType are strings in the ctor rather than the enum types. Although this does compile, we should take the enum type in the ctor for consistency/clarity

@shiftkey shiftkey changed the base branch from master to main June 9, 2020 21:30
@github-actions
Copy link

👋 Hey Friends, this pull request has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

@github-actions github-actions bot added the Stale label Jun 13, 2022
@hnrkndrssn hnrkndrssn closed this Jun 15, 2022
@nickfloyd nickfloyd added the Status: Stale Used by stalebot to clean house label Oct 27, 2022
@nickfloyd nickfloyd removed the Stale label Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Used by stalebot to clean house
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Organization Membership Preview API Changes - existing endpoints
3 participants