-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[AC 1427]Add New Organisation Properties Update DB Objects and create migration #2980
Changes from 15 commits
1ebeeda
6f00a46
c497ca2
66cfeaa
de69dde
7e9a68f
0590fde
07224ec
b2371a1
2ff0a89
2c67ece
e5de4fc
d868ffc
a658e77
aedef82
06a10b2
d97fec3
7007fdf
b43898c
1455a30
621503e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,11 @@ public OrganizationResponseModel(Organization organization, string obj = "organi | |
UseCustomPermissions = organization.UseCustomPermissions; | ||
SelfHost = organization.SelfHost; | ||
HasPublicAndPrivateKeys = organization.PublicKey != null && organization.PrivateKey != null; | ||
UsePasswordManager = organization.UsePasswordManager; | ||
SmSeats = organization.SmSeats; | ||
SmServiceAccounts = organization.SmServiceAccounts; | ||
MaxAutoscaleSmSeats = organization.MaxAutoscaleSmSeats; | ||
MaxAutoscaleSmServiceAccounts = organization.MaxAutoscaleSmServiceAccounts; | ||
} | ||
|
||
public string Id { get; set; } | ||
|
@@ -81,6 +86,11 @@ public OrganizationResponseModel(Organization organization, string obj = "organi | |
public bool UseCustomPermissions { get; set; } | ||
public bool SelfHost { get; set; } | ||
public bool HasPublicAndPrivateKeys { get; set; } | ||
public bool UsePasswordManager { get; set; } = true; | ||
public int? SmSeats { get; set; } | ||
public int? SmServiceAccounts { get; set; } | ||
public int? MaxAutoscaleSmSeats { get; set; } = null; | ||
public int? MaxAutoscaleSmServiceAccounts { get; set; } = null; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specifying There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I agree with your comment above though that these default assignments are probably not necessary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This null has been removed. I agree with Conner There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops sorry, the default value is indeed @cyprain-okeke This change is not showing, please double check that you've removed these assignments and pushed to remote. |
||
} | ||
|
||
public class OrganizationSubscriptionResponseModel : OrganizationResponseModel | ||
|
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.
This default initialization value seems to be ignored since it's already initialized by the constructor. What's the reason for including it here? Perhaps just to document the intended default value?
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.
That's a good point, what do you think @cyprain-okeke?
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.
Cy's response (@cyprain-okeke looks like you accidentally edited my comment instead, so I'm just posting this separately for you)
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.
Yes but it's a non-nullable
bool
, so it will always have a value assigned in the constructor, and this default assignment will never be used. (Please correct me if I'm wrong!)