- 27 Aug, 2020 1 commit
-
-
John Kaster authored
- published Typescript SDK
-
- 26 Aug, 2020 4 commits
-
-
Joseph Axisa authored
-
Rob Miller authored
-
Rob Miller authored
-
John Kaster authored
Disabled escaping for `required` and made the LookerSDK streams property public
-
- 21 Aug, 2020 2 commits
-
-
Joseph Axisa authored
-
John Kaster authored
* adding public inits to Swift models See the swift README for more information
-
- 20 Aug, 2020 1 commit
-
-
Joseph Axisa authored
* Positioned RunIt and made it collapsable * Bumped @looker/components to 0.9.11 * Added CollapserCard component for collapsing sections * Made method documentation collapsable * Made reference section collapsable * RunIt and Method docs take equal space when RunIt is expanded - adjusted debounce logic for search to improve responsiveness - stand-alone API Explorer now uses https again so OAuth works * Fixed tests * Refactor CollapserCard to use Accordion * CollapserCard tests * count methods instead of remapping * Add doc comments Co-authored-by:
John Kaster <kaster@google.com>
-
- 19 Aug, 2020 1 commit
-
-
John Kaster authored
* Use base64 for Python, Kotlin, and Swift SDK code verification * added more open/public for SDK classes/structs
-
- 17 Aug, 2020 1 commit
-
-
John Kaster authored
## Working runit for extensions and standalone Key points are: - Wrapped ApiExplorer in - StandaloneApiExplorer - ExtensionApiExplorer (this is renamed ApiExplorerProvider which on further examination determined not to be a provider in that it did not create a context) - The ApiExplorer wrappers pass in a configurator. This configurator for standalone uses local storage, the configurator for extension uses in memory (but could use sdk localstorage) - The extension wrapper passes in the sdk and the sdk is now passed down. - The RunIt performance panel is hidden for the extension API version until we provide performance metrics in the Extension SDK Co-authored-by:
Bryn Ryans <bryn.ryans@looker.com> Co-authored-by:
Joseph Axisa <jax@looker.com>
-
- 14 Aug, 2020 3 commits
-
-
Kalen Petersen authored
Change ApiSettings to accept a Map instead of Ini text
-
Kalen Petersen authored
This should allow for simpler overriding of behavior, allowing clients to provide a custom dict rather than requiring that they use the INI format.
-
Kalen Petersen authored
Helps ensure files are consistently formatted, in lieu of other editor settings.
-
- 13 Aug, 2020 4 commits
-
-
John Kaster authored
* Table layout generally looks much better * Zeroed the scale for the timeline chart * Corrected the relative start time calculation for post-processing * Hid ticks at the bottom of the Google Charts timeline graph (issue w/ timeline chart) Co-authored-by: Bryn Ryans
-
Joel Dodge authored
The python SDK now accepts dictionaries as method bodies in addition to the original model class instances. E.g. these are equivalent: ``` sdk.create_user({"first_name": "Jane", "last_name": "Smith"}) sdk.create_user(models.Writeuser(first_name="Jane", last_name="Smith")) ``` Note: static type checking fails on the first example but the assumption is that users who opt for that form are not interested in type safety Additionally, model class instances returned by the API act like dictionaries. So you can do this: ``` me = sdk.me() me["locale"] = "uk" sdk.update_user(me["id"], me) ``` Note: the SDK will not do anything to prevent sending read-only properties - the caller is responsible for the API's behavior in such cases. The dictionary-like behavior of model class instances is nearly complete. `popitem()`, `clear()`, and `copy()` are the only methods not supported. Another difference is setting a nested child property to a dictionary: under the hood that gets converted to the appropriate model instance and no reference to the original dictionary is kept. The following demonstrates this: ``` my_email = {"email": "jane.smith@example.com"} me = sdk.me() me["credentials_api3"] = my_email my_email["email"] = "jane.smith@foo.com" print(me["credentials_api3"]["email"]) # jane.smith@example.com me["credentials_api3"]["email"] = "jane.smith@foo.com" print(me["credentials_api3"]["email"]) # jane.smith@example.com ``` (unrealistic example as the Looker API does not support updating email address via update_user)
-
Kalen Petersen authored
Fixes to support embedding in other projects
-
Kalen Petersen authored
This defines a project group and name which are necesssary so that the kotlin sdk may be accessed as a project. Until we have the project published to a package distribution system, this allows us to use a Gradle Source Dependency [1] to embed the project. Also changes a few `compile` dependencies to their newer versions to remove deprecation warnings from gradle. [1] https://blog.gradle.org/introducing-source-dependencies
-
- 12 Aug, 2020 2 commits
-
-
Joel Dodge authored
Lower-bound python attrs requirement to 18.2.0
-
Joseph Atkins-Turkish authored
looker_sdk [uses](https://github.com/looker-open-source/sdk-codegen/blob/a1c4acb61d727cc7a22368761b0bff2244747c61/python/looker_sdk/rtl/auth_session.py#L276) the `kw_only` feature of attrs, which was [introduced](https://www.attrs.org/en/stable/api.html#core) in 18.2.0. I'm not _100% sure_ that this really is the minimum bound for `attrs` for looker_sdk (it could be higher), but the minimum bound is at least as low as this. This became an issue for me while working with another library which specified `attrs==18.1.0`. If `looker_sdk` had included this pin, the pip install would have (correctly) failed. Of course, the other library shouldn't be pinning with `==` - I opened a PR there too.
-
- 08 Aug, 2020 1 commit
-
-
John Kaster authored
-
- 07 Aug, 2020 1 commit
-
-
John Kaster authored
When the user sees the RunIt section of API Explorer in the stand-alone version, they will see: - The configuration form if server urls are not available in local or session storage - Then, if the user is not authenticated, a Login button that will start OAuth - Finally, the user will see the input form with the Run button for the endpoint This also updates the Typescript SDK OAuthSession for the base64 encoding version
-
- 03 Aug, 2020 1 commit
-
-
John Kaster authored
Adding open or public where needed for Swift SDK - also updating some Python config settings - Generating SDK against Looker 7.12
-
- 31 Jul, 2020 2 commits
-
-
Joseph Axisa authored
* Cleaned up responses in DocResponse * MethodScene utility tests * More DocResponse cleanup * Bumped @looker/components to 0.9.7 for Tabs to scroll for overflow * Renamed DocResponse to DocResponses and moved it to global components folder * Added response utilities and tests
-
Joel Dodge authored
Prior to this change python SDK would raise when the API returned an invalid enum value. Given an enum type of `MyAPIEnum` and an invalid value of `""` this error would be raised `ValueError: '' is not a valid MyAPIEnum` Now it will deserialize to `MyAPIEnum.invalid_api_enum_value` Side note: I really wanted to but was unable to dynamically modify the `MyAPIEnum.invalid_api_enum_value` enum member value to be the actual invalid value returned by the API. So `MyAPIEnum.invalid_api_enum_value.value` will always be `"invalid_api_enum_value"`
-
- 27 Jul, 2020 2 commits
-
-
John Kaster authored
* yarn refresh in packages/api-explorer updates to the latest API specs - Cleaned up some codegen script files - Put APIX script utils in a separate file
-
Joseph Axisa authored
- Fixed issue with DialogForm url validation - Added ability to clear RequestForm inputs
-
- 26 Jul, 2020 1 commit
-
-
Joseph Axisa authored
* Pinned @looker/design-tokens to 0.9.1 @looker/design-tokens 0.9.6 yields unwanted MethodBadge colors * Added a transparent background to stop the jitter
-
- 24 Jul, 2020 6 commits
-
-
John Kaster authored
* Dynamically obtain a collection of generators for supported languages * Use that collection to generate SDK method prototypes in APIX
-
John Kaster authored
Working but ugly prototype for performance tracking also renamed all "TryIt" to "RunIt"
-
Joseph Axisa authored
-
Joseph Axisa authored
* Reset ButtonToggle value on route change * Added C# type/method SDK declarations - Added tests - Fixed broken noComment utility method. Adding a getter to a property of a base class in its extension requires adding a setter as well. - Added DocStrings to all touched files - Added openapi3-ts as an api-explorer dependency as per ESLint rules * Optimize noComment
-
Joseph Axisa authored
* Added a "watch" script that runs babel in watch mode in all packages
-
John Kaster authored
-
- 22 Jul, 2020 1 commit
-
-
Joseph Axisa authored
-
- 21 Jul, 2020 1 commit
-
-
Joseph Axisa authored
* Removed yarn.lock from api-explorer package
-
- 20 Jul, 2020 1 commit
-
-
John Kaster authored
Added ConfigForm and ConfigDialog - Added configUtils and several unit tests - Still has cosmetic issues
-
- 17 Jul, 2020 2 commits
-
-
Joseph Axisa authored
* Removed unnecessary code highlighting utilities * Moved ShowResponse and its utilities into own directory * Moved RequestForm and its utilities into own sub directory * Updated all index files accordingly * Listed lodash as a dependency api-explorer and try-it * Made type and location in TryItInput strongly typed - This made the test in requestUtils about a bogus TryItInput location redundant * Moved CodeStructure into own directory * Moved TryItDSK into global utils folder * Fixed broken TryIt tests * Moved MethodBadge into TryIt, thus eliminating all ties from try-it to api-explorer * Fixed MethodBadge test. More work to be done on this component in a separate PR * bumped @looker/components to 0.9.6
-
Luke Bowerman authored
Should correct issues with Tooltip reference passing and makes the component simpler in-general. - Used minWidth from styled-system to remove single-use prop - Used typographProps from @looker/design-tokens to leverage standard typography props
-
- 16 Jul, 2020 2 commits
-
-
John Kaster authored
- tags are listed alphabetically - methods are listed in natural order - fixed a c# reserved word in http calls also - Typescript, Kotlin have region folding in IntelliJ - C# has region folding in Rider - Swift has no region folding at all, contradicting documentation on `// MARK` - Black reformats `#region` and `#endregion` to `# region` and `# endregion` - IntelliJ doesn't detect either version of region folding documented for Python - Maybe only PyCharm supports it - Updated SDK code to Looker 7.12's spec Co-authored-by:
Joseph Axisa <jax@looker.com>
-
Joseph Axisa authored
* Removed package babel.config.js and pointed webpack to the root one * Made base webpack config take a packagePath parameter and moved it to the monorepo root * Added webpack prod/dev build configs for api-explorer and extension-api-explorer packages - utilized by the 'package' script in the respective package.json files - Also removed superfluous --mode=production webpack cli argument. The mode option in the config file achieves the same. - https://www.npmjs.com/package/webpack-merge - Maybe we can use this for extending/merging webpack configs. * Extended and reused the root jest config in api-explorer and try-it packages - This allows us to run just the api explorer package tests - Additional arguments passed to the jest cmd were replaced by the `testMatch` property defined in the local jest config. - Completely removing the jest config from api-explorer causes yarn to run all tests because the rootDir becomes the directory containing the config file and it uses the "testMatch" property defined in there. - The same pattern can be followed in all other workspaces: 1) extend base jest config, 2) explicitly assign rootDir 3) define the testMatch property * Addressed eslint config rule overrides - The pre-commit hook seems to be working as intended now. * Added a no-var-requires override for js files * Cleaned up package.json from duplicates already existing in root package.json * Sorted dependencies/devDependencies Co-authored-by:
John Kaster <johnk@looker.com>
-