Refine multisite detection: many aliases for a single site is fine!

Created on 3 March 2022, over 2 years ago
Updated 23 February 2023, over 1 year ago

Problem/Motivation

In #3267603: Prevent updates in a multisite , we added a validator to Package Manager which will prevent any stage operation if the current site is part of a multisite. The way we detect a multisite is very rudimentary, though; we just look for the presence of sites/sites.php. But that file could also be used to define aliases for a single site, so we really need to be smarter about checking if that file really indicates a multisite.

Steps to reproduce

Proposed resolution

See #41:

Conclusion: we should stop checking the database altogether, that was a wrong path we went down. The only thing that can sa(f)(n)ely be tested is if there's >1 unique site directory that is actively being used.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024