Skip to content

Fix missing @fedify/mysql entries in CONTRIBUTING.md and fedify init#600

Merged
dahlia merged 4 commits intofedify-dev:mainfrom
dahlia:mysql
Mar 5, 2026
Merged

Fix missing @fedify/mysql entries in CONTRIBUTING.md and fedify init#600
dahlia merged 4 commits intofedify-dev:mainfrom
dahlia:mysql

Conversation

@dahlia
Copy link
Member

@dahlia dahlia commented Mar 4, 2026

Summary

Fixes two omissions left over after the @fedify/mysql package was added in #597 and #599.

  • Added *packages/mysql/* to the package list in CONTRIBUTING.md, alongside the other database adapter packages.
  • Added mysql as a message queue option in @fedify/init's mq.json, so that fedify init / npm init @fedify now offers MySQL/MariaDB as a message queue backend when scaffolding a new project. (The KV store side was already present in kv.json.)

Closes #587

dahlia added 2 commits March 4, 2026 23:07
The @fedify/mysql package was omitted from the list of packages in
the contributing guide, while all other database adapter packages
(@fedify/postgres, @fedify/redis, @fedify/sqlite) were already listed.

fedify-dev#587
The mq.json configuration for @fedify/init was missing the MySQL/MariaDB
entry, even though the KV store side (kv.json) already had it.  This
meant that `fedify init` / `npm init @fedify` did not offer MySQL as a
message queue backend option when scaffolding a new project.

fedify-dev#587
@issues-auto-labeler issues-auto-labeler bot added component/build Build system and packaging component/cli CLI tools related component/integration Web framework integration labels Mar 4, 2026
@dahlia dahlia added the driver/mysql MySQL/MariaDB driver (@fedify/mysql) label Mar 4, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses two omissions related to the recently introduced @fedify/mysql package. It ensures that the package is properly documented in the contribution guidelines and is available as a message queue option when initializing new Fedify projects. These changes improve the discoverability and usability of the MySQL integration for developers.

Highlights

  • Documentation Update: The CONTRIBUTING.md file has been updated to include @fedify/mysql in the list of monorepo packages, ensuring documentation completeness.
  • Scaffolding Tool Enhancement: The @fedify/init package now offers MySQL/MariaDB as a message queue backend option when scaffolding new projects, by adding the mysql entry to mq.json.
Changelog
  • CONTRIBUTING.md
    • Added *packages/mysql/* to the list of monorepo packages.
  • packages/init/src/json/mq.json
    • Introduced a new mysql entry, enabling MySQL/MariaDB as a message queue option for project initialization.
    • Defined label, packageManagers, dependencies, imports, object, and env configurations for the MySQL message queue.
Activity
  • No human activity has occurred on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly adds the @fedify/mysql package to CONTRIBUTING.md and its message queue configuration to packages/init/src/json/mq.json. The changes are accurate. I have one suggestion regarding the package list in CONTRIBUTING.md to improve maintainability by sorting it alphabetically. A similar sorting improvement could be applied to the package table in README.md.

Note: Security Review has been skipped due to the limited scope of the PR.

Two packages were out of alphabetical order: *packages/nestjs/* and
*packages/next/* were listed after *packages/relay/* instead of before
*packages/postgres/*, and *packages/fixture/* was at the very end
instead of between *packages/fastify/* and *packages/fresh/*.
@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dahlia
Copy link
Member Author

dahlia commented Mar 4, 2026

/gemini review

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes two oversights left after the @fedify/mysql package was introduced in PRs #597 and #599. It adds the missing packages/mysql/ entry to CONTRIBUTING.md's package list and adds a mysql entry to mq.json so that fedify init can scaffold a MySQL/MariaDB message queue backend.

Changes:

  • Added packages/mysql/* to the CONTRIBUTING.md package directory list (with bonus fixes: correct alphabetical placement of packages/fixture, packages/nestjs, packages/next)
  • Added a mysql key to packages/init/src/json/mq.json describing the MysqlMessageQueue backend with its dependencies, imports, and example object

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/init/src/json/mq.json Adds the mysql MQ backend entry for fedify init scaffolding
CONTRIBUTING.md Adds @fedify/mysql to the package list, fixes alphabetical ordering for @fedify/fixture, @fedify/nestjs, and @fedify/next

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly addresses omissions for the @fedify/mysql package. It updates CONTRIBUTING.md to include the new package and sorts the package list for better organization. It also adds the mysql option to packages/init/src/json/mq.json, enabling fedify init to scaffold projects with MySQL as a message queue backend. The changes are consistent with the project's structure and conventions. I have no further comments.

Note: Security Review has been skipped due to the limited scope of the PR.

Without this, the mysql entries in mq.json and kv.json were silently
ignored because the MessageQueue and KvStore types are derived from
the MESSAGE_QUEUE and KV_STORE constant arrays respectively, and mysql
was not listed in either.  As a result, fedify init never offered
MySQL/MariaDB as a selectable backend option despite the JSON entries
being present.

Also added mysql to DB_TO_CHECK and the corresponding db-to-check.json
so that the test suite can check whether a MySQL instance is running
before running integration tests.

fedify-dev#600 (comment)
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@dahlia dahlia merged commit 8b21c62 into fedify-dev:main Mar 5, 2026
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/build Build system and packaging component/cli CLI tools related component/integration Web framework integration driver/mysql MySQL/MariaDB driver (@fedify/mysql)

Development

Successfully merging this pull request may close these issues.

Add MySQL/MariaDB support (@fedify/mysql)

2 participants