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

[Potential Bug] Plugin ID generated in plugins.json is not using the 'id' field (and instead the name of the file)

Đang mở
#652 1 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 1 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
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu với plugins.json được tạo và ví dụ _plugins/DiscordRemote.md, so sánh ID đã công bố với trường id của tệp. Xem xét các issue DiscordRemote và PrettyGCode được liên kết để xác định hành vi bị ảnh hưởng, đồng thời kiểm tra xem các plugin khác có cùng sự không khớp hay không. Được xem là hoàn tất khi đã xác định nguồn ID dự kiến và các ID của plugin bị ảnh hưởng được xử lý nhất quán.

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

Mô tả

help wanted
Problem

Seems that the file plugins.json is grabbing its plugin ID from the name of the file under _plugins/, rather than the id: field in the data at the top of the file. If this is intended, it should be documented and the id field removed.

This causes a problem with:

  • the built in backup & restore
  • Upgrade to Python 3

since they look to compare the internal ID with the repository, and don't find a match.

Example

https://plugins.octoprint.org/plugins/DiscordRemote/

The internal ID is discordremote, which is in the file _plugins/DiscordRemote.md correctly - however, in the plugins.json file, the ID is wrong

Linking https://github.com/cameroncros/OctoPrint-DiscordRemote/issues/141, and first noticed with https://github.com/Kragrathea/OctoPrint-PrettyGCode/issues/68#issuecomment-691246463

One issue with changing it

Might need to check that no plugins are adversely affected (ie. wrong ID inside the file, but filename is right), but this is probably not a problem since it says that the ID should be correct

Ngôn ngữ chính
Less
Star
145
Fork
374
Merge trung bình
4 giờ 25 phút
Pull request đã merge (30 ngày)
5

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

  • Không có Dockerfile hay tệp Docker Compose
  • 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 OctoPrint/plugins.octoprint.org

Tất cả issue của OctoPrint/plugins.octoprint.org

Issue tương tự

Thêm issue về DevTools

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.