Skip to content

Add a default state for metadata#840

Merged
suchitadoshi1987 merged 6 commits intomasterfrom
suchita/metadefault
Aug 3, 2021
Merged

Add a default state for metadata#840
suchitadoshi1987 merged 6 commits intomasterfrom
suchita/metadefault

Conversation

@suchitadoshi1987
Copy link
Member

Currently ember addons that rely on certain metadata from fastboot service that depends on a transitive dependency that sets this metadata will run into issues during local development against a dummy app.
This PR adds the default value of the metadata so that the invocation of the meta doesnt hard fail.

@kratiahuja
Copy link
Contributor

kratiahuja commented Jul 21, 2021

Should we add a test for the default value ? This way in future if we accidentally change this, then we have a test to back this up.

@kratiahuja
Copy link
Contributor

kratiahuja commented Jul 21, 2021

Also would be good to run this by @rwjblue first

@suchitadoshi1987 suchitadoshi1987 requested a review from rwjblue July 21, 2021 06:39
@suchitadoshi1987
Copy link
Member Author

cc @rwjblue

@suchitadoshi1987
Copy link
Member Author

Should we add a test for the default value ? This way in future if we accidentally change this, then we have a test to back this up.

yup. added tests to ensure ^^

@kratiahuja
Copy link
Contributor

LGTM! thanks for adding the tests

@xg-wang
Copy link
Member

xg-wang commented Jul 23, 2021

@suchitadoshi1987 I think we need to avoid creating new test fixtures here. I'll DM you to figure out the unit test or use a proper test app

@suchitadoshi1987 suchitadoshi1987 merged commit 909c141 into master Aug 3, 2021
@suchitadoshi1987 suchitadoshi1987 deleted the suchita/metadefault branch August 3, 2021 05:35
@xg-wang
Copy link
Member

xg-wang commented Aug 6, 2021

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