-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove duplicate query recency column - duplicate headers caused #159
- Loading branch information
Showing
10 changed files
with
117 additions
and
101 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
export default function defineListingSettings() { | ||
this.listing.config.cols = this.config.details | ||
? this.config.details.map(d => d.value_col) | ||
: Object.keys(this.raw_data[0]).filter(key => key !== 'Form: Field'); | ||
: Object.keys(this.raw_data[0]).filter( | ||
key => ['Form: Field', this.config.recency_category_col].indexOf(key) < 0 | ||
); // remove derived variables (recency_category_col is captured in variable queryrecency, derived in ./defineNewVariables) | ||
this.listing.config.headers = this.config.details | ||
? this.config.details.map(d => d.label) | ||
: Object.keys(this.raw_data[0]).filter(key => key !== 'Form: Field'); | ||
: Object.keys(this.raw_data[0]).filter( | ||
key => ['Form: Field', this.config.recency_category_col].indexOf(key) < 0 | ||
); | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import removeHeaderlessColumns from './onInit/removeHeaderlessColumns'; | ||
import applyVariableMetadata from './onInit/applyVariableMetadata'; | ||
|
||
export default function onInit() { | ||
removeHeaderlessColumns.call(this); | ||
applyVariableMetadata.call(this); | ||
} |
This file contains 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.