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

fix: updates all int --> long for DatabaseIds #312

Merged
merged 7 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Octokit.GraphQL.Core.Generation/Utilities/TypeUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ internal static object GetArgName(InputValueModel arg)

public static bool IsCSharpPrimitive(TypeModel type)
{
return type.Kind == TypeKind.Scalar ||
return type.Kind == TypeKind.Scalar ||
type.Kind == TypeKind.Enum ||
(type.Kind == TypeKind.NonNull && IsCSharpPrimitive(type.OfType));
}
Expand Down Expand Up @@ -113,7 +113,7 @@ public static TypeModel ReduceType(TypeModel type)

return type;
}

public static string GetGraphQlIdentifierAttribute(string graphQlModelType)
{
if (graphQlModelType == null)
Expand Down Expand Up @@ -162,10 +162,10 @@ private static string GetCSharpType(TypeModel type, bool nullableType, bool retu
private static bool IsValueType(TypeModel type)
{
return type.Kind == TypeKind.Enum ||
(type.Kind == TypeKind.Scalar &&
(type.Kind == TypeKind.Scalar &&
(type.Name == "Int" ||
type.Name == "Float" ||
type.Name == "Boolean" ||
type.Name == "Float" ||
type.Name == "Boolean" ||
type.Name == "DateTime" ||
type.Name == "ID"));
}
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/AddedToProjectEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal AddedToProjectEvent(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the AddedToProjectEvent object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal App(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The description of the app.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/BaseRefChangedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal BaseRefChangedEvent(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the BaseRefChangedEvent object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal Bot(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the Bot object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/BranchProtectionRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ internal BranchProtectionRule(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// Will new commits pushed to matching branches dismiss pull request review approvals.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/CheckAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal CheckAnnotation(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The position of this annotation.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/CheckRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ internal CheckRun(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The corresponding deployment for this job, if any
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/CheckSuite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ internal CheckSuite(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the CheckSuite object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/CommentDeletedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal CommentDeletedEvent(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The user who authored the deleted comment.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/CommitComment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ internal CommitComment(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The actor who edited the comment.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/ConvertedNoteToIssueEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal ConvertedNoteToIssueEvent(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the ConvertedNoteToIssueEvent object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/DeployedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal DeployedEvent(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The deployment associated with the 'deployed' event.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/Deployment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal Deployment(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The deployment description.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/DeploymentProtectionRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal DeploymentProtectionRule(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// Whether deployments to this environment can be approved by the user who created the deployment.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/DeploymentReview.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal DeploymentReview(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The environments approved or rejected
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/Discussion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal Discussion(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The actor who edited the comment.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/DiscussionComment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal DiscussionComment(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The time when this replied-to comment was deleted
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/Enterprise.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ internal Enterprise(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The description of the enterprise.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/Environment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal Environment(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the Environment object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/GistComment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal GistComment(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The actor who edited the comment.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/Issue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal Issue(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The actor who edited the comment.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/IssueComment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal IssueComment(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The actor who edited the comment.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/Mannequin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal Mannequin(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The mannequin's email on the source instance.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/MentionedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal MentionedEvent(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the MentionedEvent object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/MovedColumnsInProjectEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal MovedColumnsInProjectEvent(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the MovedColumnsInProjectEvent object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/Organization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ internal Organization(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The organization's public profile description.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/PinnedDiscussion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal PinnedDiscussion(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The discussion that was pinned.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/PinnedIssue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal PinnedIssue(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// Identifies the primary key from the database as a BigInt.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal Project(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the Project object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/ProjectCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ internal ProjectCard(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the ProjectCard object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/ProjectColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal ProjectColumn(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the ProjectColumn object
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/ProjectV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal ProjectV2(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// A field of the project
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/ProjectV2Field.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal ProjectV2Field(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The Node ID of the ProjectV2Field object
Expand Down
4 changes: 2 additions & 2 deletions Octokit.GraphQL/Model/ProjectV2FieldCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public interface IProjectV2FieldCommon : IQueryableValue<IProjectV2FieldCommon>,
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
int? DatabaseId { get; }
long? DatabaseId { get; }

/// <summary>
/// The Node ID of the ProjectV2FieldCommon object
Expand Down Expand Up @@ -70,7 +70,7 @@ internal StubIProjectV2FieldCommon(Expression expression) : base(expression)

public ProjectV2FieldType DataType { get; }

public int? DatabaseId { get; }
public long? DatabaseId { get; }

public ID Id { get; }

Expand Down
7 changes: 6 additions & 1 deletion Octokit.GraphQL/Model/ProjectV2Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal ProjectV2Item(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The field value of the first project field which matches the 'name' argument that is set on the item.
Expand All @@ -51,6 +51,11 @@ internal ProjectV2Item(Expression expression) : base(expression)
/// <param name="orderBy">Ordering options for project v2 item field values returned from the connection</param>
public ProjectV2ItemFieldValueConnection FieldValues(Arg<int>? first = null, Arg<string>? after = null, Arg<int>? last = null, Arg<string>? before = null, Arg<ProjectV2ItemFieldValueOrder>? orderBy = null) => this.CreateMethodCall(x => x.FieldValues(first, after, last, before, orderBy), Octokit.GraphQL.Model.ProjectV2ItemFieldValueConnection.Create);

/// <summary>
/// Identifies the primary key from the database as a BigInt.
/// </summary>
public string FullDatabaseId { get; }

/// <summary>
/// The Node ID of the ProjectV2Item object
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/ProjectV2ItemFieldDateValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal ProjectV2ItemFieldDateValue(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// Date value for the field
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/ProjectV2ItemFieldIterationValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal ProjectV2ItemFieldIterationValue(Expression expression) : base(expressi
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The duration of the iteration in days.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/ProjectV2ItemFieldNumberValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal ProjectV2ItemFieldNumberValue(Expression expression) : base(expression)
/// <summary>
/// Identifies the primary key from the database.
/// </summary>
public int? DatabaseId { get; }
public long? DatabaseId { get; }

/// <summary>
/// The project field that contains this value.
Expand Down
Loading
Loading