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

refactor: items logic in KV #284

Merged
merged 8 commits into from
Jun 23, 2023
Merged

refactor: items logic in KV #284

merged 8 commits into from
Jun 23, 2023

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Jun 22, 2023

Before, functions within util/db.ts did too much. E.g. createItem() generated an item, set it in KV, and then returned the generated item. Now, functions only do one thing, making things easier to understand and maintain.

This is part 1 of a series of PRs that simplifies DB/KV logic. This part focuses on items specifically.

Towards #267

@iuioiua iuioiua marked this pull request as ready for review June 22, 2023 10:07
@iuioiua iuioiua requested a review from kt3k June 22, 2023 10:09
@iuioiua iuioiua changed the title refactor: items and KV-related logic refactor: items logic in KV Jun 22, 2023
@iuioiua
Copy link
Contributor Author

iuioiua commented Jun 22, 2023

CC @Kit and @brunocorrea23, reviews are welcome, as this PR touches upon functionality that you guys implemented.

Copy link
Contributor

@huai-jie huai-jie left a comment

Choose a reason for hiding this comment

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

LGTM! Just some NIT

utils/db.ts Show resolved Hide resolved
utils/db.ts Show resolved Hide resolved
@iuioiua iuioiua requested a review from huai-jie June 22, 2023 22:10
@brunocorrea23
Copy link
Contributor

LGTM!

@iuioiua iuioiua merged commit 2df8465 into main Jun 23, 2023
@iuioiua iuioiua deleted the db-items-rework branch June 23, 2023 03:11
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.

3 participants