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

Overload column #33

Closed
wants to merge 7 commits into from
Closed

Overload column #33

wants to merge 7 commits into from

Conversation

ckirby
Copy link
Contributor

@ckirby ckirby commented Oct 25, 2016

I wanted the ability to have two fields in my model to map to the same incoming data column. The second of the two fields is a transformation of the data. COPY with copy_templates runs quickly as compared to updating all the rows after a copy, and denormalizing is preferred for my use case I added this feature.
I thought it was better to be explicit with a new kwarg for overloaded_mapping as opposed to allowing multiple instances of a column in the mapping parameter.

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.9%) to 97.101% when pulling e49a49b on ckirby:overload_column into 79f71ef on california-civic-data-coalition:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.9%) to 97.101% when pulling e49a49b on ckirby:overload_column into 79f71ef on california-civic-data-coalition:master.

@coveralls
Copy link

coveralls commented Oct 25, 2016

Coverage Status

Coverage decreased (-2.9%) to 97.101% when pulling 35729bf on ckirby:overload_column into 79f71ef on california-civic-data-coalition:master.

@coveralls
Copy link

coveralls commented Oct 25, 2016

Coverage Status

Coverage decreased (-2.9%) to 97.101% when pulling 04de918 on ckirby:overload_column into 79f71ef on california-civic-data-coalition:master.

1 similar comment
@coveralls
Copy link

coveralls commented Oct 25, 2016

Coverage Status

Coverage decreased (-2.9%) to 97.101% when pulling 04de918 on ckirby:overload_column into 79f71ef on california-civic-data-coalition:master.

@ckirby
Copy link
Contributor Author

ckirby commented Oct 25, 2016

I'll fix the coverage checks

ckirby and others added 3 commits October 25, 2016 14:34
The `copy_template` logic was used for both standard and overloaded
mapping fields. Refactor the code into it's own method.
@ckirby
Copy link
Contributor Author

ckirby commented Oct 25, 2016

I'll make a new, cleaner, pull request

@ckirby ckirby closed this Oct 25, 2016
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 8cdc934 on ckirby:overload_column into 79f71ef on california-civic-data-coalition:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 8cdc934 on ckirby:overload_column into 79f71ef on california-civic-data-coalition:master.

@coveralls
Copy link

coveralls commented Oct 25, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 8cdc934 on ckirby:overload_column into 79f71ef on california-civic-data-coalition:master.

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.

None yet

2 participants