Skip to content

Conversation

@zcc0077
Copy link
Contributor

@zcc0077 zcc0077 commented Jun 24, 2025

Closes #5080

📑 Description

fix write_secret error when update(e.g. update installed provider):

(builtins.TypeError) SQLite DateTime type only accepts Python datetime and date objects as input. [SQL: UPDATE secret SET value=?, last_updated=? WHERE secret."key" = ?]

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

ℹ Additional Information

zcc0077 and others added 9 commits June 9, 2025 09:41
1. method `install_providers` in providers_service.py need to use `provider_unique_id` as provider_id(currently use type) to save specific consumer provider to db and make sure when removing specific one instead of all consumers with same type.
2. method remove_consumer in event_subscriber.py wants `str` but given `object`: `provider_model`, will never take effective, need to send `provider_model.id`.
3. method `update_provider` in providers_service.py: need to re-add consumer to make sure configuration is latest in provider..

Signed-off-by: cheterchao <42969446+zcc0077@users.noreply.github.com>
Signed-off-by: cheterchao <42969446+zcc0077@users.noreply.github.com>
Signed-off-by: cheterchao <42969446+zcc0077@users.noreply.github.com>
This reverts commit 1e59259.
 (builtins.TypeError) SQLite DateTime type only accepts Python datetime and date objects as input. [SQL: UPDATE secret SET value=?, last_updated=? WHERE secret."key" = ?]
@vercel
Copy link

vercel bot commented Jun 24, 2025

@zcc0077 is attempting to deploy a commit to the KeepHQ Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. Bug Something isn't working labels Jun 24, 2025
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Jun 24, 2025
Copy link
Member

@shahargl shahargl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 24, 2025
@vercel
Copy link

vercel bot commented Jun 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
keep ⬜️ Ignored (Inspect) Visit Preview Jun 24, 2025 8:20am

@shahargl shahargl merged commit 138486a into keephq:main Jun 24, 2025
20 of 21 checks passed
@github-actions
Copy link
Contributor

🎉 Well done @zcc0077! Two PRs merged already! 🎉🥳

With your second PR, you're on a roll, and your contributions are already making a difference. 🌟
Looking forward to seeing even more contributions from you. See you in Slack https://slack.keephq.dev 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 Bug]:

2 participants