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

feat: add support for external references #2294

Merged
merged 1 commit into from
Jul 31, 2024
Merged

feat: add support for external references #2294

merged 1 commit into from
Jul 31, 2024

Conversation

veu
Copy link
Contributor

@veu veu commented Jul 31, 2024

Summary

Add support for external references.

Description

Since these aren’t resolved they skip the withoutUnresolvedLinks behavior and are always kept.

I’ve only updated the parseEntries part of the integration tests because it’s enough to cover the simple logic we currently have. The underlying behavior is the same for getEntries anyway. If we complicate the logic in the future we can expand the tests as well.

@veu veu requested a review from a team as a code owner July 31, 2024 08:32
mgoudy91
mgoudy91 previously approved these changes Jul 31, 2024
Copy link
Contributor

@mgoudy91 mgoudy91 left a comment

Choose a reason for hiding this comment

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

Code changes look good, I'll TAL at the build and see if I can see what's up

@mgoudy91 mgoudy91 force-pushed the DANTE-1594 branch 2 times, most recently from 5ab2bb7 to 5430926 Compare July 31, 2024 19:20
@mgoudy91 mgoudy91 enabled auto-merge (squash) July 31, 2024 20:42
Comment on lines 250 to +257
? ResolvedEntryLink<Modifiers, Locales, LinkedEntry>
: Field extends EntryFieldTypes.EntryResourceLink<infer LinkedEntry>
? ResolvedEntryResourceLink<Modifiers, Locales, LinkedEntry>
: Field extends EntryFieldTypes.AssetLink
? ResolvedAssetLink<Modifiers, Locales>
: BaseFieldMap<Field>
: Field extends EntryFieldTypes.ExternalResourceLink
? { sys: ResourceLink<string> }
: Field extends EntryFieldTypes.AssetLink
? ResolvedAssetLink<Modifiers, Locales>
: BaseFieldMap<Field>
Copy link
Contributor

Choose a reason for hiding this comment

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

is there no other way to represent this? 😬

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean by represent?

@mgoudy91 mgoudy91 merged commit 2b09a9b into master Jul 31, 2024
6 checks passed
@mgoudy91 mgoudy91 deleted the DANTE-1594 branch July 31, 2024 20:51
@contentful-automation
Copy link
Contributor

🎉 This PR is included in version 10.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants