Skip to content

Commit

Permalink
Merge branch 'master' into better-inline-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
edlouth authored Aug 21, 2023
2 parents a908a56 + d9e1b48 commit b8390ee
Show file tree
Hide file tree
Showing 78 changed files with 36,872 additions and 535 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/integration-looker-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Looker Integration CI

on:
pull_request:
paths:
- "grai-integrations/source-looker/**"
- ".github/workflows/integration-looker-ci.yml"
env:
py_ver: "3.10"
poetry_ver: "1.3.2"
project_dir: "grai-integrations/source-looker"

jobs:
lint-integration-looker:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.project_dir }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Install Python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "${{ env.py_ver }}"

- run: pip install black isort

- run: |
black . --check
isort . --profile black
tests-integration-looker:
needs: lint-integration-looker
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.project_dir }}
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "${{ env.py_ver }}"

- uses: abatilo/actions-poetry@v2
with:
poetry-version: "${{ env.poetry_ver }}"

- run: poetry install
- run: poetry run pytest
40 changes: 11 additions & 29 deletions docs/pages/api-docs/grai_cli/api/config/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,48 +17,30 @@ def cli_init_config(username: str = typer.Option(...,
prompt_required=True,
hide_input=True,
confirmation_prompt=True,
callback=strip_style(password_callback),
callback=typer.unstyle,
),
host: str = typer.Option(
default=default_styler(config.server.host),
prompt="Server host",
url: str = typer.Option(
InitDefaults.url_default,
prompt="Server URL",
prompt_required=True,
callback=strip_style(host_callback),
),
port: str = typer.Option(
default=default_styler(config.server.port),
prompt="Server port",
prompt_required=True,
callback=strip_style(port_callback),
),
insecure: str = typer.Option(
default=default_styler("False"),
prompt="Insecure connection (i.e. http)?",
prompt_required=True,
callback=strip_style(insecure_callback),
callback=typer.unstyle,
),
workspace: str = typer.Option(
default=default_styler(config.server.workspace),
InitDefaults.workspace_default,
prompt="The Grai workspace for this config",
prompt_required=True,
callback=strip_style(workspace_callback),
callback=typer.unstyle,
))
```

Initialize a new config file

**Arguments**:

- `username` _str, optional_ - (Default value = typer.Option(..., prompt=True, callback=username_callback, prompt_required=True))
- `password` _str, optional_ - (Default value = typer.Option(...,prompt=True,prompt_required=True,hide_input=True,confirmation_prompt=True,callback=strip_style(password_callback))
):
- `host` _str, optional_ - (Default value = typer.Option(default=default_styler(config.server.host))
- `prompt` - (Default value = "The Grai workspace for this config")
- `prompt_required` - (Default value = True)
- `callback` - (Default value = strip_style(workspace_callback))
- `port` _str, optional_ - (Default value = typer.Option(default=default_styler(config.server.port))
- `insecure` _str, optional_ - (Default value = typer.Option(default=default_styler("False"))
- `workspace` _str, optional_ - (Default value = typer.Option(default=default_styler(config.server.workspace))
username:
password:
url:
workspace:


**Returns**:
Expand Down
9 changes: 3 additions & 6 deletions docs/pages/api-docs/grai_cli/api/server/endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ def is_authenticated()
## get\_nodes

```python
def get_nodes(name: Optional[str] = None,
namespace: Optional[str] = None,
print: bool = True,
to_file: Optional[Path] = None)
def get_nodes(print: bool = True, to_file: Optional[Path] = None, **kwargs)
```

**Arguments**:
Expand Down Expand Up @@ -122,8 +119,8 @@ def apply(file: Path = typer.Argument(...),

**Arguments**:

- `file` _Path, optional_ - (Default value = typer.Argument(...))
- `dry_run` _bool, optional_ - (Default value = typer.Option(False, "--d", help="Dry run of file application"))
- `file` - (Default value = typer.Argument(...))
- `dry_run` - (Default value = typer.Option(False, "--d", help="Dry run of file application"))


**Returns**:
Expand Down
124 changes: 2 additions & 122 deletions docs/pages/api-docs/grai_cli/settings/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,75 +3,6 @@ sidebar_label: config
title: grai_cli.settings.config
---

## ConfigDirHandler Objects

```python
class ConfigDirHandler()
```



### config\_content

```python
@property
def config_content()
```



### config\_content

```python
@config_content.setter
def config_content(value: Dict)
```

**Arguments**:

value (Dict):


**Returns**:



### save\_content

```python
def save_content()
```



### get\_config\_dir

```python
def get_config_dir() -> str
```

**Arguments**:



**Returns**:



### get\_config\_file

```python
def get_config_file() -> Optional[str]
```

**Arguments**:



**Returns**:



## unredact

```python
Expand All @@ -87,21 +18,6 @@ def unredact(obj: Any) -> Any



## yaml\_config\_settings\_source

```python
def yaml_config_settings_source(settings: BaseSettings) -> dict[str, Any]
```

**Arguments**:

settings (BaseSettings):


**Returns**:



## ServerSettingsV1 Objects

```python
Expand Down Expand Up @@ -158,50 +74,14 @@ class ContextSettings(BaseModel)



## GraiConfig Objects
## BaseGraiConfig Objects

```python
class GraiConfig(YamlModelMixin, BaseSettings)
class BaseGraiConfig(LazyConfig)
```



### save

```python
def save()
```



### view

```python
def view()
```



### Config Objects

```python
class Config()
```



#### customise\_sources

```python
@classmethod
def customise_sources(cls, init_settings, env_settings, file_secret_settings)
```

**Arguments**:

init_settings:
env_settings:
file_secret_settings:


**Returns**:
86 changes: 0 additions & 86 deletions docs/pages/api-docs/grai_client/endpoints/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,89 +447,3 @@ def patch_sequence(


**Returns**:



## client\_get\_url

```python
@get.register
def client_get_url(
client: BaseClient, url: str,
options: ClientOptions = ClientOptions()) -> Response
```

**Arguments**:

client (BaseClient):
url (str):
- `options` _ClientOptions, optional_ - (Default value = ClientOptions())


**Returns**:



## client\_delete\_url

```python
@delete.register
def client_delete_url(
client: BaseClient, url: str,
options: ClientOptions = ClientOptions()) -> Response
```

**Arguments**:

client (BaseClient):
url (str):
- `options` _ClientOptions, optional_ - (Default value = ClientOptions())


**Returns**:



## client\_post\_url

```python
@post.register
def client_post_url(
client: BaseClient,
url: str,
payload: Dict,
options: ClientOptions = ClientOptions()) -> Response
```

**Arguments**:

client (BaseClient):
url (str):
payload (Dict):
- `options` _ClientOptions, optional_ - (Default value = ClientOptions())


**Returns**:



## client\_patch\_url

```python
@patch.register
def client_patch_url(
client: BaseClient,
url: str,
payload: Dict,
options: ClientOptions = ClientOptions()) -> Response
```

**Arguments**:

client (BaseClient):
url (str):
payload (Dict):
- `options` _ClientOptions, optional_ - (Default value = ClientOptions())


**Returns**:
Loading

0 comments on commit b8390ee

Please sign in to comment.