Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Pull the desired mysql version from a single location

Đang mở
#1,126 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 7 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker-compose, javascript, mysql
Lĩnh vực
databases, testing

Hướng nghiên cứu

Start with app/test/db_setup.js at the MySQL launch configuration and docker-compose.yml at the MySQL service version. Compare how each selects the version, then investigate whether they can share configuration or whether tests can reuse Compose. Done means both use one source for the desired MySQL version; the issue leaves the implementation choice open.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The test framework has the ability to launch mysql ( via docker. )
The mysql version is hard-coded there ( see: https://github.com/shift-org/shift-docs/blob/52e8d9589f6e81ce42b38e716662c8bced8ff28b/app/test/db_setup.js#L44 )

The docker compose also has a mysql version ( see: https://github.com/shift-org/shift-docs/blob/52e8d9589f6e81ce42b38e716662c8bced8ff28b/docker-compose.yml#L31 )

It is objectively terrible to have to keep them synchronized; but not exactly sure what the solution is.

  • both read from some sort of common config file?
  • both read from some common environmental var?
  • can testing read or re-use the docker-compose?
  • get rid of the ./shift bash and launch everything using npm scripts? ( i jest. sort of. )
  • ...?
Ngôn ngữ chính
JavaScript
Star
30
Fork
26
Merge trung bình
6 ngày 24 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của shift-org/shift-docs

Tất cả issue của shift-org/shift-docs

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.