-
Notifications
You must be signed in to change notification settings - Fork 42
refactor: Remove core config from dashboard tenants list response #401
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
Conversation
@@ -101,7 +101,7 @@ def __init__( | |||
emailpassword: EmailPasswordConfig, | |||
passwordless: PasswordlessConfig, | |||
third_party: ThirdPartyConfig, | |||
core_config: Dict[str, Any], | |||
core_config: Optional[Dict[str, Any]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should not be changed optional... you can make a different type for this in the dashboard recipe which will NOT have this core_config prop and use that in the dashboard recipe. But do not change the mulittenancy recipe at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DOne
return { | ||
res = { | ||
"tenantId": self.tenant_id, | ||
"emailpassword": self.emailpassword.to_json(), | ||
"passwordless": self.passwordless.to_json(), | ||
"thirdParty": self.third_party.to_json(), | ||
"coreConfig": self.core_config, | ||
} | ||
if self.core_config is not None: | ||
res["coreConfig"] = self.core_config | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undo this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -193,7 +193,7 @@ async def list_all_tenants( | |||
config.emailpassword, | |||
config.passwordless, | |||
config.third_party, | |||
config.core_config, | |||
config.core_config or {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undo this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Summary of change
Remove core config from dashboard tenants list response
Related issues
Checklist for important updates
coreDriverInterfaceSupported.json
file has been updated (if needed)supertokens_python/constants.py
frontendDriverInterfaceSupported.json
file has been updated (if needed)setup.py
supertokens_python/constants.py
git tag
) in the formatvX.Y.Z
, and then find the latest branch (git branch --all
) whoseX.Y
is greater than the latest released tag.supertokens_python/utils.py
file to include that in theFRAMEWORKS
variablesyncio
/asyncio
functions are consistent.