Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

remove sheet db #210

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

remove sheet db #210

wants to merge 4 commits into from

Conversation

aniketmaurya
Copy link
Contributor

@aniketmaurya aniketmaurya commented Oct 16, 2022

Before submitting

The Sheet DB has a limit of 5K hits in a month. Let's remove that and use a local DB persisted with Drive.

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

Fixes # (issue).

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@aniketmaurya aniketmaurya marked this pull request as ready for review October 16, 2022 12:01
@aniketmaurya aniketmaurya added the enhancement New feature or request label Oct 16, 2022
@@ -62,12 +52,6 @@ def handle_command(self):
msg = f":zap: Generating image for prompt: _{prompt}_ :zap:. (This public version of the app may run slow. Clone and run the app on your own Lightning AI account to enable the creation of your own Slackbot with customizable performance)" # noqa: E501
return msg, 200

def save_new_workspace(self, team_id, bot_token):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it will be handled by the Bot component

@@ -37,23 +37,13 @@ def __init__(
self._secrets_drive: Drive = None
self._server: uvicorn.Server = None

self._SHEET_API_URL = os.environ.get("SHEET_API_URL")

def _get_bot_token(self, team_id):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

bot component exposes get_bot_token_by_team_id for this

@Borda
Copy link
Member

Borda commented Feb 14, 2023

@aniketmaurya can we also finish this one or close it? 🐿️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants