Make row validation optional, parse XLSX files, add worksheet column to Excel parser#1
Open
tylergannon wants to merge 2 commits intoactivewarehouse:masterfrom
tylergannon:master
Open
Make row validation optional, parse XLSX files, add worksheet column to Excel parser#1tylergannon wants to merge 2 commits intoactivewarehouse:masterfrom tylergannon:master
tylergannon wants to merge 2 commits intoactivewarehouse:masterfrom
tylergannon:master
Conversation
Configuration of excel parser can now include:
:worksheet_column => {{column_name}}
Resulting output has {{column_name}} field with the current worksheet
name in each row.
… for excel parser.
Member
|
Hello Tyler! I took quite a bit to answer, I was very busy launching https://www.wisecashhq.com. I'm sorry this was not clear, but this specific repository is experimental and is not really maintained! The maintained repo is here: https://github.com/activewarehouse/activewarehouse-etl I'm not sure how much work this is to adapt things to over there (and some of it is probably already integrated, like the mass assignment issue). What do you think? Would you like to adapt the code so I merge it over there? |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hi, added the following features.
:validate_rowsas a parameter to their source object. If this is turned off, then the process won't die when a row has the wrong number of fields.worksheet_column: :column_namein the definition configuration, the excel parser will add the name of the worksheet to each row in a field by that name.My change to ETL::Engine is for compatibility with activerecord 3.x, which won't allow mass assignment to fields that have not been declared as accessible in the model. I didn't add any attr_accessible calls on the model because I don't want to mess with backward compatibility.
Lastly, I am not having an easy time with getting the test suite to work. I'm happy to do the leg work in getting these changes properly tested but I wanted to see if you're interested in these changes -- and if so, whether you wouldn't mind helping me out with the test environment.
I have some cool new DSL I've developed, and if I can get my test environment working I'll pull it out of my application and send another pull request to see about adding it to the gem.
Cheers!
Tyler