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

Use the privacy of the external source to set defaults #241

Open
wants to merge 1 commit into
base: bbg-merge-28032017
Choose a base branch
from

Conversation

vishalya
Copy link

Use the external datasource's privacy during the default settings, else it get's set to private and later on all the visualizations are marked as privace, due the the logic in the table_blender.rb

@@ -342,7 +349,8 @@ def partially_dependent_visualizations
private

def default_privacy_value
user.try(:private_tables_enabled) ? PRIVACY_PRIVATE : PRIVACY_PUBLIC
esv = external_source_visualization
esv.nil? ? (user.try(:private_tables_enabled) ? PRIVACY_PRIVATE : PRIVACY_PUBLIC) : PRIVACY_TEXTS_TO_VALUES[esv.privacy]

Choose a reason for hiding this comment

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

Looks good to me.

Copy link

@mbektash mbektash left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just one concern: will new library dataset published have privacy set as word versions or number versions? if they stay as 'public', 'private', 'link' words then it will be fine.

vishalya pushed a commit that referenced this pull request Feb 9, 2018
…geojson-regression-tests

Changes geojson_spec to use the configured ogr2ogr binary
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