Remove obsolete `getScssVariables()` implementations and misleading theme example

Đang mở
#66,671 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 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ái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php, scss
Lĩnh vực
backend, documentation

Hướng nghiên cứu

Start by reading the implementations in OC_Defaults, ThemingDefaults, the example theme, and the dedicated tests; check the compatibility requirements and external callers mentioned in the issue before removing anything. Review related documentation for references to the hook. Done means the obsolete methods, example, and tests are removed safely and documentation no longer advertises the hook.

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

Mô tả

0. Needs triage feature: theming technical debt

getScssVariables() remains in OC_Defaults, ThemingDefaults, the example theme, and dedicated tests, despite having no production caller in Server. As noted in #58426 by @andreas-p, the example misleadingly suggests a working customization hook.

This hook supplied variable overrides to the former on-demand SCSS compiler/cache. The ThemingDefaults override is marked deprecated since Nextcloud 22, following #9940. Runtime SCSS support was dropped in Nextcloud 25; see #32060 and nextcloud/documentation#9136. Current build-time SCSS compilation does not use this hook and is unaffected.

Remove the obsolete implementations, example method, and dedicated tests, checking external callers and applicable API compatibility requirements before removal. Correct any related documentation that still advertises this hook.

Ngôn ngữ chính
PHP
Star
37.5k
Fork
5.4k
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
639

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 nextcloud/server

Tất cả issue của nextcloud/server

Issue tương tự

Thêm issue về PHP

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.