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

[APP-4397] Make runtimeVariable feature default only for playbook apps #16

Merged
merged 3 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies = [
"debugpy",
"inflect",
"isort",
"paho.mqtt",
"paho-mqtt<2.0.0",
"pyaes",
"pydantic<2.0.0",
"python-dateutil",
Expand Down Expand Up @@ -133,9 +133,15 @@ extension-pkg-whitelist = "pydantic"
exclude = [
"**/.history",
"**/__pycache__",
"**/local-*",
"tcex/api/tc/v2",
"tests",
]
pythonPlatform = "Linux"
pythonVersion = "3.11"
reportIncompatibleMethodOverride = false
reportIncompatibleVariableOverride = false
reportPrivateImportUsage = false

[tool.pytest.ini_options]
filterwarnings = []
Expand Down
4 changes: 4 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 1.0.3

- APP-4397 [CONFIG] Update to make runtimeVariable feature a default feature only for playbook apps.

## 1.0.2

- APP-4171 - [DEPS] Updated deps command to add a link to lib_latest for current Python version for App Builder
Expand Down
3 changes: 2 additions & 1 deletion tcex_cli/__metadata__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""TcEx Framework metadata."""

__license__ = 'Apache-2.0'
__version__ = '1.0.2'
__version__ = '1.0.3'
2 changes: 1 addition & 1 deletion tcex_cli/app/config
5 changes: 3 additions & 2 deletions tcex_cli/cli/validate/validate_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import ast
import json
Expand Down Expand Up @@ -222,7 +223,7 @@ def check_layout_params(self):
)
try:
self.app.permutation.db_conn.execute(display_query.replace('"', ''))
except sqlite3.Error:
except sqlite3.Error: # type: ignore
self.validation_data.errors.append(
'Layouts input.parameters[].display validations failed '
f'("{p.display}" query is an invalid statement).'
Expand Down Expand Up @@ -262,7 +263,7 @@ def check_layout_params(self):
)
try:
self.app.permutation.db_conn.execute(display_query.replace('"', ''))
except sqlite3.Error:
except sqlite3.Error: # type: ignore
self.validation_data.errors.append(
f"""Layouts outputs.display validations failed ("{o.display}" """
f"""query is an invalid statement)."""
Expand Down
5 changes: 4 additions & 1 deletion tcex_cli/input/field_type/sensitive.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import logging
from collections.abc import Generator
Expand Down Expand Up @@ -119,7 +120,9 @@ def validate_type(cls, value: bytes | str | Self, field: ModelField) -> bytes |
"""Raise exception if value is not a String type."""
if not isinstance(value, (bytes, str, Sensitive)):
raise InvalidType(
field_name=field.name, expected_types='(bytes, str)', provided_type=type(value)
field_name=field.name,
expected_types='(bytes, str)',
provided_type=type(value).__name__,
)
return value

Expand Down
Loading