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

Complete Data to data rename #1431

Merged
merged 7 commits into from
Feb 26, 2016
Merged

Conversation

kwmsmith
Copy link
Member

This builds on PR #1421:

  • All calls to Data are replaced with data;
  • Calls to Data are deprecated;
  • InteractiveSymbol is deprecated and replaced by _Data;
  • Calls to data create an instance of _Data;
  • Calls to odo.resource are replaced by blaze.data throughout the codebase and testsuite.

In version 0.11, the following changes will take place, to complete the transition:

  • InteractiveSymbol will be removed;
  • The _Data class will be renamed Data, and calls to data will create a Data instance;
  • Just like Blaze's expressions, the public API is all lowercase function-like objects, and they create instances of their corresponding classes--join and Join, head and Head, etc.

Richard Postelnik and others added 5 commits February 18, 2016 08:53
Renames the `InteractiveSymbol` class to `_Data`, and deprecates
`InteractiveSymbol`.  In version 0.11, `InteractiveSymbol` will be
removed, and the `_Data` class will be renamed `Data`.

This is all to be consistent with other function / class naming schemes,
that have a lowercase entry point that creates an instance of the
CamelCased class.
`data()` will dispatch to `odo.resource()` when needed.  This change
ensures that many of the edge cases in `data()` are tested.
@@ -41,19 +41,27 @@
not_an_iterator.append(pymongo.database.Database)


class InteractiveSymbol(Symbol):
"""Interactive data.
class _Data(Symbol):
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 just call this Data to match the other expression/smart constructor pairs?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that's exactly the ultimate intent, and in version 0.11 we'll remove InteractiveSymbol and rename _Data to Data. I made note of this in the whatsnew document.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I should read the whole change before commenting; sorry

kwmsmith added a commit that referenced this pull request Feb 26, 2016
@kwmsmith kwmsmith merged commit 941c304 into blaze:master Feb 26, 2016
@kwmsmith kwmsmith deleted the refactor/Data-to-data branch February 26, 2016 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants