Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[client] Update NewManifest field paths for new extra field format #13398

Merged
merged 2 commits into from
Jul 12, 2021

Conversation

wschurman
Copy link
Member

Why

expo/expo-cli#3606 defines the new format for the extra field. expoClientConfig contains the fields necessary for the client to function (with the exception of scopeKey). expoGoConfig contains the fields necessary for development using Expo Go.

This PR updates the RawManifest and NewManifest to look in the new location for the fields it needs. Previously none of these fields were defined on the new manifest format.

How

Point field getters to new location in NewManifests.

Test Plan

In combination with expo/expo-cli#3606:

Copy link
Collaborator

@expo-bot expo-bot left a comment

Choose a reason for hiding this comment

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

The review previously left here is no longer valid, jump to the latest one 👉 #13398 (review)

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Jun 24, 2021
@wschurman wschurman marked this pull request as ready for review June 24, 2021 21:34
@wschurman wschurman requested a review from esamelson as a code owner June 24, 2021 21:34
@wschurman wschurman requested a review from jkhales June 24, 2021 21:34
@wschurman wschurman force-pushed the @wschurman/new-manifest-extra-fields branch from a146a41 to 4a4e034 Compare June 25, 2021 20:01
Copy link
Collaborator

@expo-bot expo-bot left a comment

Choose a reason for hiding this comment

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

The review previously left here is no longer valid, jump to the latest one 👉 #13398 (review)

Copy link
Contributor

@jkhales jkhales left a comment

Choose a reason for hiding this comment

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

looks great, although left a question about expoClientConfig in the other PR.

Copy link
Contributor

@esamelson esamelson 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 to me, pending the discussion about the names of these fields in expo/expo-cli#3606.

// use commitTime instead of publishedTime as it is more accurate;
// however, fall back to publishedTime in case older cached manifests do not contain
// the commitTime key (we have not always served it)
return getCommitTime() ?: getPublishedTime()
Copy link
Contributor

Choose a reason for hiding this comment

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

we should be able to safely remove this fallback, as we've been serving both fields for the entirety of the lifetimes of all SDK versions we currently support in Expo Go. I don't think the expo-updates runtime even looks at publishedTime.

Copy link
Member Author

Choose a reason for hiding this comment

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

@wschurman wschurman force-pushed the @wschurman/new-manifest-extra-fields branch from 4a4e034 to c1b33f4 Compare July 12, 2021 16:03
Copy link
Collaborator

@expo-bot expo-bot left a comment

Choose a reason for hiding this comment

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

The review previously left here is no longer valid, jump to the latest one 👉 #13398 (review)

@wschurman
Copy link
Member Author

Failing test run tests are broken in master, landing.

@wschurman wschurman merged commit 5471ac8 into master Jul 12, 2021
@wschurman wschurman deleted the @wschurman/new-manifest-extra-fields branch July 12, 2021 16:43
Copy link
Collaborator

@expo-bot expo-bot left a comment

Choose a reason for hiding this comment

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

Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines.

Looks like I have nothing to complain about 👏 Keep up the good work! 💪

Generated by ExpoBot 🤖 against 9d6afdd

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants