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

Closes #3192: Add data source config options. #3292

Closed
wants to merge 18 commits into from

Conversation

emtwo
Copy link

@emtwo emtwo commented Jan 16, 2019

This is a fresh PR with the code from #3193 rebased and linted.

It is ready for review now. This PR is the second a part of a series of PRs for schema enhancements.
It is preceded by #3291

[1] Schema viewer drawer #3291
[2] Schema admin configuration #3292 (this one)
[3] Schema query samples #3293
[4] Data source descriptions #3401

@ghost ghost assigned emtwo Jan 16, 2019
@ghost ghost added in progress labels Jan 16, 2019
@emtwo emtwo force-pushed the emtwo/schema2_admin_controls branch from 281861d to 3ca1370 Compare January 22, 2019 15:44
@emtwo emtwo force-pushed the emtwo/schema2_admin_controls branch from 3ca1370 to 8c94c5a Compare January 30, 2019 19:58
@ghost ghost added the in progress label Jan 30, 2019
for row in results['rows']:
table_samples = {}

for i, row in enumerate(results['rows']):
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.


for row in results['rows']:
for i, row in enumerate(results['rows']):
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

'hasColumnMetadata': table.column_metadata,
'table_description': table.table_description,
'columns': []}
columns = db.session.query(ColumnMetadata).filter(ColumnMetadata.table_id==table.id)
Copy link

Choose a reason for hiding this comment

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

Missing whitespace around operator

return record.key === this.state.editingKey;
}

save(form, tableKey, columnKey) {
Copy link

Choose a reason for hiding this comment

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

Function save has 26 lines of code (exceeds 25 allowed). Consider refactoring.

tableMetadata: [],
};

render() {
Copy link

Choose a reason for hiding this comment

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

Function render has 42 lines of code (exceeds 25 allowed). Consider refactoring.

@guidopetri
Copy link
Contributor

@emtwo , thanks for all your PRs! We've updated a lot of things now that we're Community-driven so - if you're still interested in getting this merged - would you mind rebasing your PRs off master to re-run the CI, as well as updating merge conflicts?

We're trying to clean up our PR todo list, so if you're not interested, that's fine - we'll close the PRs in about a week if we don't hear back. If you're interested in reopening any of the PRs afterwards, we would also very much welcome that.

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.

3 participants