Skip to content

Commit ebc4314

Browse files
authored
Merge pull request #14 from gofynd/update-version-number
Update change log and init version for latestversion
2 parents 98086ed + 4b3c072 commit ebc4314

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
---
8-
## [v0.6.0]
8+
## [v0.7.0] -
99
### Added
1010
- Added `partner_api_routes` to support calling partners server APIs through `PartnerClient`
1111
- Added Support to launch extension Admin inside partners panel
12+
- Added support of passing log level `debug` to SDK from `setupFDK` debug true. This enables curl printing of API calls made from SDK.
13+
14+
---
15+
16+
## [v0.6.0] - 2024-03-27
17+
Added
18+
Added retry mechanism for APIs getting used inside extension library if Fynd Platform server is down.
1219

1320
---
1421
## [v0.5.2] - 2022-12-31

fdk_extension/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FDK Extension helper Library
33
"""
44

5-
__version__ = '0.6.0'
5+
__version__ = '0.7.0'
66

77

88
from fdk_extension.main import setup_fdk

fdk_extension/extension.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ def __init__(self):
3636
self.cluster: str = FYND_CLUSTER
3737
self.webhook_registry: WebhookRegistry = None
3838
self.__is_initialized: bool = False
39+
self.debug: bool = False
3940

4041
async def initialize(self, data: dict) -> None:
4142
self.__is_initialized = False
4243

44+
if data.get('debug'):
45+
self.debug = data.get('debug')
46+
4347
self.storage = data["storage"]
4448

4549
# API Key
@@ -120,7 +124,8 @@ def get_platform_config(self, company_id) -> PlatformConfig:
120124
"domain": self.cluster,
121125
"apiKey": self.api_key,
122126
"apiSecret": self.api_secret,
123-
"useAutoRenewTimer": False
127+
"useAutoRenewTimer": False,
128+
"logLevel": 'debug' if self.debug else None
124129
})
125130
return platform_config
126131

@@ -161,7 +166,7 @@ def get_partner_config(self, organization_id) -> PartnerConfig:
161166
"apiKey": self.api_key,
162167
"apiSecret": self.api_secret,
163168
"useAutoRenewTimer": False,
164-
"logLevel": "DEBUG"
169+
"logLevel": 'debug' if self.debug else None
165170
})
166171
return partner_config
167172

fdk_extension/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ async def get_application_client(application_id: str, application_token: str) ->
4242
application_config = ApplicationConfig({
4343
"applicationID": application_id,
4444
"applicationToken": application_token,
45-
"domain": extension.cluster
45+
"domain": extension.cluster,
46+
"logLevel": 'debug' if extension.debug else None
4647
})
4748
application_client = ApplicationClient(application_config)
4849
return application_client

0 commit comments

Comments
 (0)