diff --git a/config/_default/menus.toml b/config/_default/menus.toml index 9446b82d..cca2742c 100644 --- a/config/_default/menus.toml +++ b/config/_default/menus.toml @@ -17,10 +17,10 @@ url = "/docs/configuration/" [[docs]] - name = "Dekart Cloud" - weight = 3 - identifier = "cloud" - url = "/docs/cloud/" + name = "Usage" + weight = 2 + identifier = "usage" + url = "/docs/usage/" [[docs]] name = "Snowpark" diff --git a/content/docs/cloud/cloud-security-faq.md b/content/docs/cloud/cloud-security-faq.md index bed67850..203f695c 100644 --- a/content/docs/cloud/cloud-security-faq.md +++ b/content/docs/cloud/cloud-security-faq.md @@ -4,10 +4,8 @@ description: "Why Dekart Cloud is Secure" date: 2021-02-22T07:48:05+01:00 lastmod: 2021-02-22T07:48:05+01:00 draft: false -menu: - docs: - parent: "cloud" images: [] +canonical: "/docs/usage/cloud-security-faq/" ---

Dekart Cloud is designed to make your cybersecurity and legal teams happy. We achieve it by never storing tokens, and query results in Dekart Cloud backend.

diff --git a/content/docs/usage/cloud-security-faq.md b/content/docs/usage/cloud-security-faq.md new file mode 100644 index 00000000..7cf21748 --- /dev/null +++ b/content/docs/usage/cloud-security-faq.md @@ -0,0 +1,44 @@ +--- +title: "Security Considerations" +description: "Why Dekart Cloud is Secure" +date: 2021-02-22T07:48:05+01:00 +lastmod: 2021-02-22T07:48:05+01:00 +draft: false +menu: + docs: + parent: "usage" +images: [] +canonical: "/docs/usage/cloud-security-faq/" +--- + +

Dekart Cloud is designed to make your cybersecurity and legal teams happy. We achieve it by never storing tokens, and query results in Dekart Cloud backend.

+ + + +### What permissions am I granting to Dekart, and why are they necessary? + +You are granting Dekart the following scopes: + * `https://www.googleapis.com/auth/bigquery` this scope grants Dekart the ability to manage user data in Google BigQuery, encompassing actions like running queries, managing datasets, and configuring settings. + * `https://www.googleapis.com/auth/devstorage.read_write` this scope allows Dekart to read and write user data in Google Cloud Storage, enabling it to manage files and potentially other data storage elements. + +These permissions are necessary for Dekart to run queries and store results in your Google Cloud Storage bucket. + +### How will my data be used and protected? + +SQL queries and their results are stored in Google Cloud Storage bucket *provided by you!* We never store tokens, and query results in Dekart Cloud backend. Nobody at Dekart can access your BigQuery data or Google Cloud Storage bucket. + +### Can I revoke Dekart's access if I change my mind? + +Yes, you can revoke Dekart's access to your Google Cloud resources by signing out of Dekart Cloud. This will remove Dekart's access to your Google Cloud resources and prevent Dekart from running queries or storing results in your Google Cloud Storage bucket. + +### Does Dekart comply with data protection regulations? + +We are committed to upholding the principles of GDPR and ensuring that your data rights are respected. We also comply with [Google API Services User Data Policy](https://cloud.google.com/terms/services) and verified by Google's Trust & Safety team. + +### What support is available if I have issues or questions about data access? + +If you have any questions or issues about data access, please contact us via email at [support@dekart.xyz](mailto:support@dekart.xyz) or via [Slack](https://slack.dekart.xyz/). diff --git a/content/docs/usage/query-parameters/dekart-query-parameters.png b/content/docs/usage/query-parameters/dekart-query-parameters.png new file mode 100644 index 00000000..2099d139 Binary files /dev/null and b/content/docs/usage/query-parameters/dekart-query-parameters.png differ diff --git a/content/docs/usage/query-parameters/index.md b/content/docs/usage/query-parameters/index.md new file mode 100644 index 00000000..83bb6753 --- /dev/null +++ b/content/docs/usage/query-parameters/index.md @@ -0,0 +1,66 @@ +--- +title: "Query Parameters" +description: "Turn your maps in applications with Dekart Query Parameters." +date: 2021-02-22T07:48:05+01:00 +lastmod: 2021-02-22T07:48:05+01:00 +draft: false +menu: + docs: + parent: "usage" +images: ["dekart-query-parameters.png", "setting-default-query-parameter-value.png", "share-with-query-params.png"] +--- + +

+ +👉 [Example Map with Query Parameters](https://cloud.dekart.xyz/reports/322dbd27-0699-4c41-8a08-a3e023edf981/source?qp_country=DE&qp_region=BE&ref=query-param-example) + +Query parameters in Dekart provide a powerful way to make your maps interactive and dynamic. With query parameters, you can create SQL queries that dynamically adjust based on user input. Below is a detailed guide to understanding and using query parameters in Dekart. + +--- + +## Syntax for Query Parameters +Query parameters are wrapped in double curly braces (`{{parameter_name}}`) and can be used in your SQL queries. For example: +```sql +SELECT geometry +FROM `bigquery-public-data.overture_maps.division_area` +WHERE region = {{region}} + AND subtype = 'region' +``` + +In this query: +- `{{region}}` is a query parameter that the user can set dynamically. +- SQL logic adjusts based on the value provided for the parameter. + +## Setting Default Values +You can define default values for query parameters. This is useful when a user doesn't provide input for a parameter. + +{{< img src="setting-default-query-parameter-value.png" >}} + + +## Making Parameters Optional +To make a parameter optional: +1. Use SQL logic to handle cases where the parameter is not provided. +2. Combine conditions in your query to handle "all data" when a parameter is empty. + +For instance: +Example: +```sql +SELECT geometry +FROM `bigquery-public-data.overture_maps.division_area` +WHERE ( + ({{region}} = 'ALL' AND country = 'FR') + OR region = 'FR-' || {{region}} + ) + AND subtype = 'region' +``` +- The default value `'ALL'` ensures that if no value is entered, all regions are shown. + +## Sharing Reports with Query Parameters + +{{< img src="share-with-query-params.png" >}} + +When you share a report with query parameters, the parameters are included in the URL. This allows you to share a report with specific parameters set. + +User with Editor and Admin roles, who have access to update the report, can change the query parameters and see the updated results. + +Viewers can view only cached results with the parameters set by the report owner. \ No newline at end of file diff --git a/content/docs/usage/query-parameters/setting-default-query-parameter-value.png b/content/docs/usage/query-parameters/setting-default-query-parameter-value.png new file mode 100644 index 00000000..9dc016dd Binary files /dev/null and b/content/docs/usage/query-parameters/setting-default-query-parameter-value.png differ diff --git a/content/docs/usage/query-parameters/share-with-query-params.png b/content/docs/usage/query-parameters/share-with-query-params.png new file mode 100644 index 00000000..aa736837 Binary files /dev/null and b/content/docs/usage/query-parameters/share-with-query-params.png differ