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

Import statements update (w/tests) #245

Merged
merged 21 commits into from Jan 25, 2024
Merged

Conversation

AnthonyMDev
Copy link
Contributor

This is an update to #236 that includes unit tests. The next step will be adding documentation to this before we release it.

Thanks @hemel for your helping getting this completed!

Hemel Yahya and others added 18 commits January 10, 2024 15:29
…renced Fragment includes an import directive
…les in definitions + do not assing to the definitions directives anymore
…les in definitions + do not assing to the definitions directives anymore
…les in definitions + do not assing to the definitions directives anymore
…les in definitions + do not assing to the definitions directives anymore
…les in definitions + do not assing to the definitions directives anymore
…les in definitions + do not assing to the definitions directives anymore
@AnthonyMDev AnthonyMDev requested a review from a team as a code owner January 23, 2024 21:57
Copy link

netlify bot commented Jan 23, 2024

Deploy Preview for eclectic-pie-88a2ba canceled.

Name Link
🔨 Latest commit 96b4bc5
🔍 Latest deploy log https://app.netlify.com/sites/eclectic-pie-88a2ba/deploys/65b2a452839e170008f05e05

Copy link
Member

@calvincestari calvincestari left a comment

Choose a reason for hiding this comment

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

Looks good. Had a couple minor comments.

) -> TemplateString? {
guard let moduleImports else { return nil }
moduleImports: OrderedSet<String>
) -> TemplateString {
return """
\(moduleImports.map { "import \($0)" }.joined(separator: "\n"))
Copy link
Member

Choose a reason for hiding this comment

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

Should we have a comment above these to identify these as custom configured imports?

// given
let config = buildConfig(
moduleType:
.embeddedInTarget(
Copy link
Member

Choose a reason for hiding this comment

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

It looks as though the custom imports should be rendered regardless of the moduleType configuration - it might be worth having additional tests for the other module types to ensure that remains true.

@AnthonyMDev AnthonyMDev enabled auto-merge (squash) January 25, 2024 18:12
@AnthonyMDev AnthonyMDev merged commit e28f3e2 into main Jan 25, 2024
14 checks passed
@AnthonyMDev AnthonyMDev deleted the import_statements_update branch January 25, 2024 18:12
BobaFetters pushed a commit that referenced this pull request Jan 25, 2024
BobaFetters pushed a commit to apollographql/apollo-ios-codegen that referenced this pull request Jan 25, 2024
BobaFetters pushed a commit that referenced this pull request Jan 25, 2024
0ca66206 Import statements update (w/tests) (#245)

git-subtree-dir: apollo-ios-codegen
git-subtree-split: 0ca66206e6e9720f59141bf1fce422277507013b
BobaFetters pushed a commit that referenced this pull request Jan 25, 2024
git-subtree-dir: apollo-ios-codegen
git-subtree-mainline: 5da6e8d
git-subtree-split: 0ca66206e6e9720f59141bf1fce422277507013b
@hemel
Copy link

hemel commented Feb 1, 2024

@AnthonyMDev Do you have an eta for the next release by any chance with this change included?

@calvincestari
Copy link
Member

Hi @hemel - I think we can probably put together a release tomorrow; 1.9. We don't have plans for a release date but there are a few other things queued up that could go out too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants