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

remind, tell: Use config name in fake .db files #1699

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

dgw
Copy link
Member

@dgw dgw commented Oct 6, 2019

Instead of using the bot's nick and configured host (to connect to), let's use the config basename. This matches the default SQLite DB filename and (as of #1547) the names used for Sopel's log files.

Closes #1359. Labeling "Documentation" as I need to write a new section covering this for the upgrade guide in sopel-irc/sopel.chat#17 (already referenced here in the help links given if the migration fails).

@dgw dgw added this to the 7.0.0 milestone Oct 6, 2019
@dgw dgw requested a review from a team October 6, 2019 10:38
dgw added a commit to sopel-irc/sopel.chat that referenced this pull request Oct 6, 2019
@dgw dgw force-pushed the tell-remind-db-configname branch from 6e93298 to 2fd7c50 Compare October 6, 2019 11:14
@kwaaak
Copy link
Contributor

kwaaak commented Oct 6, 2019

Should we use a separate file at all? Now that there is #1621, this information could live in the big database.

@dgw
Copy link
Member Author

dgw commented Oct 7, 2019

@kwaaak It could, but the bot.db API isn't really designed to handle object dumps. We technically only "support" up to 255 characters each for key and value, though longer values might work depending on which back-end is in use.

These plugins could use custom tables, true, but their dump files are not that different from the GeoIP and malwaredomains files we already cache on disk. And those definitely aren't going into bot.db!

@dgw
Copy link
Member Author

dgw commented Oct 27, 2019

(Wrong browser tab, touched milestones I shouldn't have. Whoops.)

Instead of using the bot's nick and configured host (to connect to),
let's use the config `basename`. This matches the default SQLite DB
filename and the names used for Sopel's log files.
@dgw dgw force-pushed the tell-remind-db-configname branch from 2fd7c50 to 0063471 Compare November 14, 2019 17:32
@dgw dgw merged commit e1ca5f5 into master Nov 14, 2019
@dgw dgw deleted the tell-remind-db-configname branch November 14, 2019 17:59
dgw added a commit to sopel-irc/sopel.chat that referenced this pull request Nov 28, 2019
dgw added a commit to sopel-irc/sopel.chat that referenced this pull request Jan 11, 2020
dgw added a commit to sopel-irc/sopel.chat that referenced this pull request Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tell/remind] Switch to config-name for "db" files
3 participants