Skip to content

Commit

Permalink
MBL-988: Add GraphQL query FetchBackerProjectsQuery to replace v1 API…
Browse files Browse the repository at this point in the history
… calls on backer dashboard (#1863)

* MBL-988: Add GraphQL query FetchBackerProjectsQuery to replace v1 API calls on backer dashboard

* Install Rosetta in Alpha build for AWS commandline tools
  • Loading branch information
amy-at-kickstarter committed Oct 11, 2023
1 parent ebec1e8 commit 1475571
Show file tree
Hide file tree
Showing 13 changed files with 1,409 additions and 15 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Expand Up @@ -156,6 +156,7 @@ jobs:
environment:
- *default_environment
steps:
- macos/install-rosetta
- checkout
- aws-cli/setup:
<<: *aws_cli_setup
Expand Down
54 changes: 39 additions & 15 deletions Kickstarter.xcodeproj/project.pbxproj
Expand Up @@ -1485,6 +1485,13 @@
D7B9C7581E453FBF00EA3A22 /* UILabel+IsTruncated.swift in Sources */ = {isa = PBXBuildFile; fileRef = D7B9C7571E453FBF00EA3A22 /* UILabel+IsTruncated.swift */; };
D7E20E6D2284A3BD00BA61A0 /* PledgeCTAContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D741577A2284849000C0B907 /* PledgeCTAContainerView.swift */; };
D7E20EA7228B4B7D00BA61A0 /* PledgeCTAContainerViewViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = D7E20EA5228B4AC200BA61A0 /* PledgeCTAContainerViewViewModel.swift */; };
E10D06632ACF385E00470B5C /* FetchBackerProjectsQuery.json in Resources */ = {isa = PBXBuildFile; fileRef = E10D06622ACF385E00470B5C /* FetchBackerProjectsQuery.json */; };
E10D06652AD48C9C00470B5C /* FetchBackerProjectsQueryRequestForTests.graphql_test in Resources */ = {isa = PBXBuildFile; fileRef = E10D06642AD48C9C00470B5C /* FetchBackerProjectsQueryRequestForTests.graphql_test */; };
E1A1491E2ACDD76800F49709 /* FetchBackerProjectsQuery.graphql in Resources */ = {isa = PBXBuildFile; fileRef = E1A1491D2ACDD76700F49709 /* FetchBackerProjectsQuery.graphql */; };
E1A149202ACDD7BF00F49709 /* FetchProjectsEnvelope+FetchBackerProjectsQueryData.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1A1491F2ACDD7BF00F49709 /* FetchProjectsEnvelope+FetchBackerProjectsQueryData.swift */; };
E1A149222ACE013100F49709 /* FetchProjectsEnvelope.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1A149212ACE013100F49709 /* FetchProjectsEnvelope.swift */; };
E1A149242ACE02B300F49709 /* FetchProjectsEnvelope+FetchBackerProjectsQueryDataTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1A149232ACE02B300F49709 /* FetchProjectsEnvelope+FetchBackerProjectsQueryDataTests.swift */; };
E1A149272ACE063400F49709 /* FetchBackerProjectsQueryDataTemplate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1A149262ACE063400F49709 /* FetchBackerProjectsQueryDataTemplate.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -3027,6 +3034,13 @@
D7ADDFE522E0DAEB00157D83 /* RewardCellProjectBackingStateType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RewardCellProjectBackingStateType.swift; sourceTree = "<group>"; };
D7B9C7571E453FBF00EA3A22 /* UILabel+IsTruncated.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UILabel+IsTruncated.swift"; sourceTree = "<group>"; };
D7E20EA5228B4AC200BA61A0 /* PledgeCTAContainerViewViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PledgeCTAContainerViewViewModel.swift; sourceTree = "<group>"; };
E10D06622ACF385E00470B5C /* FetchBackerProjectsQuery.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = FetchBackerProjectsQuery.json; sourceTree = "<group>"; };
E10D06642AD48C9C00470B5C /* FetchBackerProjectsQueryRequestForTests.graphql_test */ = {isa = PBXFileReference; lastKnownFileType = text; path = FetchBackerProjectsQueryRequestForTests.graphql_test; sourceTree = "<group>"; };
E1A1491D2ACDD76700F49709 /* FetchBackerProjectsQuery.graphql */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = FetchBackerProjectsQuery.graphql; sourceTree = "<group>"; };
E1A1491F2ACDD7BF00F49709 /* FetchProjectsEnvelope+FetchBackerProjectsQueryData.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "FetchProjectsEnvelope+FetchBackerProjectsQueryData.swift"; sourceTree = "<group>"; };
E1A149212ACE013100F49709 /* FetchProjectsEnvelope.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FetchProjectsEnvelope.swift; sourceTree = "<group>"; };
E1A149232ACE02B300F49709 /* FetchProjectsEnvelope+FetchBackerProjectsQueryDataTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "FetchProjectsEnvelope+FetchBackerProjectsQueryDataTests.swift"; sourceTree = "<group>"; };
E1A149262ACE063400F49709 /* FetchBackerProjectsQueryDataTemplate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FetchBackerProjectsQueryDataTemplate.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -5496,14 +5510,6 @@
path = "SwiftUI+Extensions";
sourceTree = "<group>";
};
60DF50952A434E30002C771F /* DashboardDeprecationBanner */ = {
isa = PBXGroup;
children = (
60DF50962A434E6B002C771F /* DashboardDeprecationView.swift */,
);
path = DashboardDeprecationBanner;
sourceTree = "<group>";
};
7061848A29BE4C1E008F9941 /* Views */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -5582,6 +5588,8 @@
6008632D29B8F66F00B87B39 /* FetchUserEmail.graphql */,
0655C7272732FDA30087281F /* FetchRootCategories.graphql */,
0655C7292732FDE00087281F /* FetchCategory.graphql */,
E1A1491D2ACDD76700F49709 /* FetchBackerProjectsQuery.graphql */,
E1A149252ACE060E00F49709 /* templates */,
);
path = queries;
sourceTree = "<group>";
Expand Down Expand Up @@ -5727,6 +5735,8 @@
06F7BE1926B334DB0094BF37 /* CreatePaymentSourceEnvelope+CreatePaymentSourceMutation.DataTests.swift */,
062868E926B99FB400EC5052 /* DeletePaymentSourceEnvelope+DeletePaymentSourceMutation.Data.swift */,
062868EB26B9E25F00EC5052 /* DeletePaymentSourceEnvelope+DeletePaymentSourceMutation.DataTests.swift */,
E1A1491F2ACDD7BF00F49709 /* FetchProjectsEnvelope+FetchBackerProjectsQueryData.swift */,
E1A149232ACE02B300F49709 /* FetchProjectsEnvelope+FetchBackerProjectsQueryDataTests.swift */,
8AC3E104269F4D1C00168BF8 /* GraphAPI.ApplePay+ApplePayParams.swift */,
4758484F26B32110005AAC1C /* GraphAPI.BackingState+BackingState.swift */,
47B1338E26B35AA000080048 /* GraphAPI.BackingState+BackingStateTests.swift */,
Expand Down Expand Up @@ -6546,10 +6556,11 @@
D015877B1EEB2ED6006E7684 /* ActivityTests.swift */,
D015877C1EEB2ED6006E7684 /* Backing.swift */,
77272D362370AB5C003B7A9C /* BackingPaymentSourceTests.swift */,
8A67DDB724DDB21100B4AB10 /* ErroredBackingsEnvelope.swift */,
474D731F26B46412000F63DC /* ErroredBackingsEnvelopeTests.swift */,
8A4E954824525EC100A578CF /* BackingState.swift */,
D015877D1EEB2ED6006E7684 /* BackingTests.swift */,
8A67DDB724DDB21100B4AB10 /* ErroredBackingsEnvelope.swift */,
474D731F26B46412000F63DC /* ErroredBackingsEnvelopeTests.swift */,
E1A149212ACE013100F49709 /* FetchProjectsEnvelope.swift */,
19D988472979CA4E00A5EE61 /* BrazePushEnvelope.swift */,
D6B9DF3E1F72E25A0064A4D8 /* Category.swift */,
D6AE52271FD1B4BA00BEC788 /* CategoryEnvelope.swift */,
Expand Down Expand Up @@ -6806,6 +6817,16 @@
path = inputs;
sourceTree = "<group>";
};
E1A149252ACE060E00F49709 /* templates */ = {
isa = PBXGroup;
children = (
E1A149262ACE063400F49709 /* FetchBackerProjectsQueryDataTemplate.swift */,
E10D06622ACF385E00470B5C /* FetchBackerProjectsQuery.json */,
E10D06642AD48C9C00470B5C /* FetchBackerProjectsQueryRequestForTests.graphql_test */,
);
path = templates;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -7222,6 +7243,7 @@
6008632E29B8F66F00B87B39 /* FetchUserEmail.graphql in Resources */,
399DAD8A2ACD163400238BA1 /* UnwatchProject.graphql in Resources */,
06DAAE5B26AA3CD800194E58 /* BackingFragment.graphql in Resources */,
E1A1491E2ACDD76800F49709 /* FetchBackerProjectsQuery.graphql in Resources */,
6008632C29B8F64800B87B39 /* UserEmailFragment.graphql in Resources */,
47C0BCD826C42135003658AC /* CreatePaymentSource.graphql in Resources */,
0655C72A2732FDE00087281F /* FetchCategory.graphql in Resources */,
Expand All @@ -7247,6 +7269,8 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E10D06632ACF385E00470B5C /* FetchBackerProjectsQuery.json in Resources */,
E10D06652AD48C9C00470B5C /* FetchBackerProjectsQueryRequestForTests.graphql_test in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -7702,8 +7726,6 @@
D09362B0225D803600E1411A /* UIViewController+URLTests.swift in Sources */,
77319C7E2469B5C70051B755 /* DiscoveryProjectCardViewModelTests.swift in Sources */,
A7ED1FDF1E831C5C00BFFA01 /* DiscoveryFiltersViewModelTests.swift in Sources */,
191E60282A953FAB001413B2 /* ProjectTabQuestionAnswerCellViewModelTests.swift in Sources */,
A7ED1FDC1E831C5C00BFFA01 /* DashboardVideoCellViewModelTests.swift in Sources */,
8A5CB28424C11819003113D4 /* RewardAddOnSelectionContinueCTAViewModelTests.swift in Sources */,
3706409022A9BE9400889CBD /* DateFormatterTests.swift in Sources */,
778F891E22D5414F00D095C5 /* Feature+HelpersTests.swift in Sources */,
Expand Down Expand Up @@ -7817,7 +7839,6 @@
776B1A1124193C2500B03098 /* CategoryPillCellViewModelTests.swift in Sources */,
A7ED1FB11E831C5C00BFFA01 /* ActivitySampleProjectCellViewModelTests.swift in Sources */,
60368E6C2AC35BE3005EE9A5 /* ReportProjectFormViewModelTests.swift in Sources */,
A7ED1FCA1E831C5C00BFFA01 /* DashboardProjectsDrawerViewModelTests.swift in Sources */,
A7ED1F371E830FDC00BFFA01 /* String+WhitespaceTests.swift in Sources */,
D64DDCDF235648C200DE0EA9 /* ManagePledgePaymentMethodViewModelTests.swift in Sources */,
A7ED20011E831C5C00BFFA01 /* SignupViewModelTests.swift in Sources */,
Expand Down Expand Up @@ -8065,9 +8086,8 @@
A757E9EF1D19C37F00A5C978 /* ActivitySurveyResponseCell.swift in Sources */,
D63BBCDA217E7802007E01F0 /* CreditCardCell.swift in Sources */,
473632A426EBAC6A001B0D39 /* RiskMessagingViewController.swift in Sources */,
191E601F2A93F318001413B2 /* ProjectTabQuestionAnswerCell.swift in Sources */,
191E601F2A93F318001413B2 /* ProjectTabAIGenerationCell.swift in Sources */,
018422BE1D2C484700CA7566 /* DashboardTitleView.swift in Sources */,
191E601F2A93F318001413B2 /* ProjectTabAIGenerationCell.swift in Sources */,
5970739A1D06346700B00444 /* ProjectNotificationsViewController.swift in Sources */,
A745D1411CAAB48F00C12802 /* LoginToutViewController.swift in Sources */,
19F91B0E289C1DD6000AEC6A /* PledgePaymentSheetPaymentMethodCell.swift in Sources */,
Expand Down Expand Up @@ -8301,6 +8321,7 @@
D01588691EEB2ED7006E7684 /* DiscoveryEnvelope.swift in Sources */,
D0158A251EEB30A2006E7684 /* RewardTemplates.swift in Sources */,
D0158A241EEB30A2006E7684 /* RewardsItemTemplates.swift in Sources */,
E1A149202ACDD7BF00F49709 /* FetchProjectsEnvelope+FetchBackerProjectsQueryData.swift in Sources */,
D0158A171EEB30A2006E7684 /* LocationTemplates.swift in Sources */,
8AC3E03926977C0200168BF8 /* Project+ProjectFragment.swift in Sources */,
D6AE52251FD1B3F600BEC788 /* RootCategoriesEnvelope.swift in Sources */,
Expand Down Expand Up @@ -8484,6 +8505,7 @@
8A1F155824DC657E00E0C000 /* Project.RewardDataLenses.swift in Sources */,
065E6BA626B1C7FD007F67CA /* UpdateBackingEnvelope+UpdateBackingMutation.Data.swift in Sources */,
D62B1477221216A000AC05C8 /* DeletePaymentMethodEnvelope.swift in Sources */,
E1A149222ACE013100F49709 /* FetchProjectsEnvelope.swift in Sources */,
D0158A261EEB30A2006E7684 /* ShippingRulesEnvelopeTemplates.swift in Sources */,
06FE2D7426CD844E00A4C0F4 /* ApolloClientType.swift in Sources */,
D01588F31EEB2ED7006E7684 /* MessageThreadsEnvelope.swift in Sources */,
Expand Down Expand Up @@ -8626,6 +8648,7 @@
06962F8B273B32D900FB0B3D /* PostCommentEnvelope+PostCommentMutationDataTests.swift in Sources */,
8AF34C7A2342D864000B211D /* Encodable+DictionaryTests.swift in Sources */,
D0D10C0C1EEB4550005EBAD0 /* FindFriendsEnvelopeTests.swift in Sources */,
E1A149242ACE02B300F49709 /* FetchProjectsEnvelope+FetchBackerProjectsQueryDataTests.swift in Sources */,
47B1338F26B35AA000080048 /* GraphAPI.BackingState+BackingStateTests.swift in Sources */,
D0D10C141EEB4550005EBAD0 /* Project.VideoTests.swift in Sources */,
D0D10C181EEB4550005EBAD0 /* RewardsItemTests.swift in Sources */,
Expand All @@ -8636,6 +8659,7 @@
8AC3E05E2697ABEF00168BF8 /* Project.Country+CountryFragmentTests.swift in Sources */,
066C0AE126CB11BD0048F4D8 /* ClearUserUnseenActivityMutationTemplate.swift in Sources */,
D0D10C131EEB4550005EBAD0 /* Project.PhotoTests.swift in Sources */,
E1A149272ACE063400F49709 /* FetchBackerProjectsQueryDataTemplate.swift in Sources */,
194154D328D928C9004648C8 /* CreatePaymentSourceSetupIntentInputTests.swift in Sources */,
8AF34C762342D1D2000B211D /* UpdateBackingInputTests.swift in Sources */,
D0D10C191EEB4550005EBAD0 /* RewardTests.swift in Sources */,
Expand Down

0 comments on commit 1475571

Please sign in to comment.