Skip to content

fix (datafile manager) [OASIS-4715]: Rename top-level exports to avoid conflict with interface name #291

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

Merged
merged 2 commits into from
Jun 11, 2019

Conversation

mjc1283
Copy link
Contributor

@mjc1283 mjc1283 commented Jun 10, 2019

Summary

The interface DatafileManager, defined in src/datafileManager.ts, is exported from src/index.node.ts and src/index.browser.ts.

However, in each of these top-level entry points, another export statement appears below, which exports something else (the actual implementation of the datafile manager), using the same name.

To avoid the name conflict, we rename the exports of the datafile manager implementations from DatafileManager to HttpPollingDatafileManager.

Test plan

Updated unit tests

Issues

https://optimizely.atlassian.net/browse/OASIS-4715

Matt Carroll added 2 commits June 10, 2019 15:54
@mjc1283 mjc1283 requested review from jordangarcia, mikeproeng37 and a team June 10, 2019 23:33
@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.6% when pulling 66909c2 on mcarroll/OASIS-4715 into d0ac882 on master.

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

lgtm

@mjc1283 mjc1283 merged commit efdaf3e into master Jun 11, 2019
@mjc1283 mjc1283 deleted the mcarroll/OASIS-4715 branch June 11, 2019 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants