Allow force-changing files using Shared Instances

Đang mở
#8,145 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
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
desktop

Hướng nghiên cứu

Start by reading pull request #7991 and its discussion of shared instance files, then trace how the Modrinth App selects and pushes files for an instance update. Check how joining or updating an instance handles files that already exist, and look for relevant tests in that flow. Done means an update can explicitly force selected shared files to replace existing files while preserving the current default behavior.

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

Mô tả

Please confirm the following.
What parts of Modrinth is your feature request related too?

Modrinth App

Is your suggested feature related to a problem? Please describe.

Hi, as of 7991 it's now possible to share (almost) all files in the insance folder. Amazing work!

This pull request also mentions Players joining or updating a shared instance no longer download files they already have.
Unfortunatly this means that when I (as instance owner) want to change a setting from a mod it currently doesn't actually change it for other users.

Describe the solution you'd like

My suggestion is to add a force download file option when pushing a new update. This could be one simple checkbox when pushing an update. When you want to force 1 file but not all of them in a specific update, you can just push an update 2 times. Or maybe even add a second Force checkbox next to each file when selecting files to share.
I think the last option would be nicer but probably also a lot more work.

As the name implies, when this checkbox is checked the pushed files will override existing files.

I believe the default should stay as it is now, but a force download option would be amazing!

EDIT:
I was messing around and tried to push one file to a friend of mine and somehow it actuallty overrode the file... (it already existed on my friends instance)
I am confused... according to the the pull request that shouldn't happen?
If anyone knows what the current intended behaviour is I would love to know

Greetings, Werra

Ngôn ngữ chính
Rust
Star
2.5k
Fork
663
Merge trung bình
2 ngày 11 giờ
Pull request đã merge (30 ngày)
122

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 modrinth/code

Tất cả issue của modrinth/code

Issue tương tự

Thêm issue về Rust

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.