From 038fc2cfb213335b4913e81e1c2a73ea4bdbb7b5 Mon Sep 17 00:00:00 2001 From: Jeremy Chang Date: Fri, 5 Nov 2021 21:04:45 +0000 Subject: [PATCH 1/3] fix: Updated hackathon readme landing page path Updated to match what is running in production --- packages/hackathon/README.md | 31 ++++++++++++++++--- packages/hackathon/src/data/add_user/sagas.ts | 2 +- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/packages/hackathon/README.md b/packages/hackathon/README.md index 9eaa4955c..cb2127168 100644 --- a/packages/hackathon/README.md +++ b/packages/hackathon/README.md @@ -21,8 +21,8 @@ To configure your access token server, see the instructions in the [access token Until the Hackathon extension is available via the Looker Marketplace, a Hackathon manifest needs to be used. This manifest should have: ```lookml -project_name: "hackathon_app" -application: hackathon_app { +project_name: "hackathon" +application: hackathon { label: "Hackathon" url: "https://localhost:8080/dist/bundle.js" # file: "bundle.js" @@ -46,8 +46,29 @@ application: hackathon_app { use_clipboard: no external_api_urls: ["http://localhost:8081/*", "https://sheets.googleapis.com/*"] core_api_methods: [ - "me", "all_roles", "all_user_attributes", "delete_user_attribute", "create_user_attribute", "search_groups", - "search_users", "user_roles", "role_users", "user_attribute_user_values" + "me", + "all_roles", + "all_user_attributes", + "delete_user_attribute", + "create_user_attribute", + "search_groups", + "search_users", + "user_roles", + "role_users", + "user_attribute_user_values", + "search_roles", + "create_group", + "set_role_groups", + "set_user_attribute_group_values", + "set_user_attribute_user_value", + "create_user_credentials_email", + "send_user_credentials_email_password_reset", + "create_user_credentials_api3", + "add_group_user", + "update_user", + "create_user", + "search_groups_with_roles", + "role_groups" ] oauth2_urls: [] scoped_user_attributes: ["sheet_id", "token_server_url"] @@ -60,7 +81,7 @@ application: hackathon_app { Remember to add a model to the project that has a valid connection. ## Specific steps to `yarn` -1. run `yarn install` in sdk-codegen +1. run `yarn install` in sdk-codegen 2. run `yarn build` in sdk-codgen 3. run `yarn start` in examples/access_token_server 4. run `yarn dev:hack` in sdk-codegen to start the development server and connect to the extension diff --git a/packages/hackathon/src/data/add_user/sagas.ts b/packages/hackathon/src/data/add_user/sagas.ts index de5a94bc9..2c7d3c5cb 100644 --- a/packages/hackathon/src/data/add_user/sagas.ts +++ b/packages/hackathon/src/data/add_user/sagas.ts @@ -50,7 +50,7 @@ const HACKATHON_USER_ATTR_NAME = 'hackathon' // case sensitive const HACKATHON_USER_ATTR_LABEL = 'Hackathon' const HACKATHON_GROUP_PREFIX = 'Looker_Hack: ' const LANDING_PAGE_ATTR_NAME = 'landing_page' -const LANDING_PAGE_PATH = '/extensions/hackathon::hackathon_app' +const LANDING_PAGE_PATH = '/extensions/hackathon::hackathon' function* parseCsvSaga(action: ReturnType): SagaIterator { try { From cf55d54d7102ac4c1792e32bbfc9457629b555f8 Mon Sep 17 00:00:00 2001 From: Jeremy Chang Date: Fri, 5 Nov 2021 21:21:51 +0000 Subject: [PATCH 2/3] Update hackathon readme --- packages/hackathon/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hackathon/README.md b/packages/hackathon/README.md index cb2127168..8f23b66de 100644 --- a/packages/hackathon/README.md +++ b/packages/hackathon/README.md @@ -82,7 +82,7 @@ Remember to add a model to the project that has a valid connection. ## Specific steps to `yarn` 1. run `yarn install` in sdk-codegen -2. run `yarn build` in sdk-codgen +2. run `yarn build` in sdk-codegen 3. run `yarn start` in examples/access_token_server 4. run `yarn dev:hack` in sdk-codegen to start the development server and connect to the extension From d61ea3bde807ab9ab5cca85fbbf5c14d637c8883 Mon Sep 17 00:00:00 2001 From: Jeremy Chang Date: Fri, 5 Nov 2021 22:00:39 +0000 Subject: [PATCH 3/3] Added create-looker-extension utility --- .../hackathon/src/scenes/ResourceScene/resource_data.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/hackathon/src/scenes/ResourceScene/resource_data.ts b/packages/hackathon/src/scenes/ResourceScene/resource_data.ts index 06fd0489b..abf611467 100644 --- a/packages/hackathon/src/scenes/ResourceScene/resource_data.ts +++ b/packages/hackathon/src/scenes/ResourceScene/resource_data.ts @@ -97,6 +97,15 @@ export const resources: Array = [ shortenedLink: 'https://bit.ly/3q1f0RR', title: 'Embed Tutorial Video', }, + { + content: + 'Create extensions with zero manual configuration with the create-looker-extension utility.', + type: ResourceType.Resource, + tag: ResourceTag.Extensions, + link: 'https://github.com/looker-open-source/create-looker-extension', + shortenedLink: 'https://bit.ly/3k6vcNW', + title: 'Extension Creation Utility', + }, { content: 'The API Explorer lets you learn and interact with Looker API.', type: ResourceType.Resource,