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

Gundi 3719 v1 #34

Closed
wants to merge 4 commits into from
Closed

Gundi 3719 v1 #34

wants to merge 4 commits into from

Conversation

chrisdoehring
Copy link
Contributor

@chrisdoehring chrisdoehring commented Nov 20, 2024

This is an initial action runner for Bluetrax.

GUNDI-3719

Copy link

swarmia bot commented Nov 20, 2024

✅  Linked to Task GUNDI-3719 · Integration with Bluetrax

unit_id: str
user_id: str
asset_id: str
currentLoc: dict
Copy link
Collaborator

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"))
Copy link
Collaborator

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?

Comment on lines +26 to +28
await self.db_client.setex(
f"integration_state.{integration_id}.{action_id}.{source_id}",
7*86400,
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants