FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Address a refactoring concern from #54 by graysonarts · Pull Request #55 · tableau/document-api-python · GitHub

Address a refactoring concern from #54 - #55

Merged
graysonarts merged 2 commits into
tableau:developmentfrom
graysonarts:code-cleanup
Jul 21, 2016
Merged

Address a refactoring concern from #54#55
graysonarts merged 2 commits into
tableau:developmentfrom
graysonarts:code-cleanup

Conversation

Copy link
Copy Markdown
Contributor

More readable by extracting a couple of methods and reorganizing the code a little.

Comment thread tableaudocumentapi/datasource.py Outdated
return FieldDictionary({k: v for k, v in column_objects})
column_field_objects = self._get_column_objects()
existing_column_fields = [x.id for x in column_field_objects]
metadata_field_objects = (x for x in self._get_metadata_objects() if x.id not in existing_column_fields)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

metadata_only_field_objects -- or some hint that we have to find these a different way

t8y8 commented Jul 21, 2016
edited
Loading

Copy link
Copy Markdown
Contributor

How do I make the rocket emoji? (rocket)

Copy link
Copy Markdown
Contributor Author

:rocket: I'll rename the variable to metadata_only_field_objects

t8y8 commented Jul 21, 2016

Copy link
Copy Markdown
Contributor

🚀

graysonarts merged commit f8206b9 into tableau:development Jul 21, 2016
graysonarts deleted the code-cleanup branch July 26, 2016 18:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL