-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 CircleCI error caused by GraphQL change to GraphAPI.FlaggingKind #1985
Fix CircleCI error caused by GraphQL change to GraphAPI.FlaggingKind #1985
Conversation
@@ -810,7 +805,7 @@ public enum GraphAPI { | |||
} | |||
} | |||
|
|||
public static var allCases: [FlaggingKind] { | |||
public static var allCases: [NonDeprecatedFlaggingKind] { |
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 rename is the source of the problem.
…hAPI.NonDeprecatedFlaggingKind
6fd9b2b
to
65d72d8
Compare
@@ -84,7 +84,7 @@ let reportSpamSubListItems = [ | |||
), | |||
ReportProjectInfoListItem( | |||
type: .child, | |||
flaggingKind: .abuse, | |||
flaggingKind: .guidelinesAbuse, |
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.
@scottkicks This is the one material change here - NonDeprecatedFlaggingKind
does not include .abuse
but it does include .guidelinesAbuse
. What are these enums ultimately used for? Does it matter?
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.
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.
They're used to determine the category reason why users are reporting. I think this should be fine
Generated by 🚫 Danger |
📲 What
🤔 Why
Ingerid encountered this issue in a CircleCI build. Looks like we were running the Apollo update script on Circle, and it was making changes to
GraphAPI.swift
which broke her build. This fixes both the change to the schema, as well as makes sure that future updates to the schema will correctly cause a re-run of the Apollo build script.