-
Notifications
You must be signed in to change notification settings - Fork 27
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
Gundi 3719 v1 #34
Gundi 3719 v1 #34
Conversation
✅ Linked to Task GUNDI-3719 · Integration with Bluetrax |
unit_id: str | ||
user_id: str | ||
asset_id: str | ||
currentLoc: dict |
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.
minor: we could use an alias so the field name can be snake_case to be PEP8 compliant
https://docs.pydantic.dev/1.10/usage/model_config/#alias-precedence
app/bluetrax.py
Outdated
return None | ||
|
||
if __name__ == "__main__": | ||
auth_result = asyncio.run(authenticate("securityadmin@loisaba.com", "Nanyorryang")) |
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.
It looks like credentials were accidentally committed?
await self.db_client.setex( | ||
f"integration_state.{integration_id}.{action_id}.{source_id}", | ||
7*86400, |
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.
Usually, the state is persistent but I see we want it to expire after some days here. I'd like to know more about this use case so we can add proper support for it in the template.
a556bb9
to
f7f7d2b
Compare
This is an initial action runner for Bluetrax.
GUNDI-3719