Comments

tstoeckler created an issue. See original summary.

tstoeckler’s picture

Assigned: Unassigned » tstoeckler
Status: Active » Needs review
Related issues: +#2994828: Enforced config dependencies override normal dependencies instead of adding to them
StatusFileSize
new23.43 KB

Here we go. This should already work, as far as I can tell. The problem is that it incurs a significant performance cost, because all of the dependencies for the optional config need to be checked at runtime, including for a config read. So I will not commit this as is.

However, because the set of valid optional config really only depends on the extension list I think we should be able to perform some nice caching. Maybe that will even make sense for the install config, not sure yet.

Also found #2994828: Enforced config dependencies override normal dependencies instead of adding to them when working on this, BTW.

tstoeckler’s picture

StatusFileSize
new4.98 KB
new26.1 KB

Found a bug in ::filterDelete(). It's unrelated to this issue, but this already touches so many pieces of code, I guess we might as well fix it here.

Also fixes the remaining coding standard issues that are in 8.x-1.x at the moment.

Does not yet address the performance issue raised in #2.

Status: Needs review » Needs work

The last submitted patch, 3: 2989519-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

tstoeckler’s picture

Status: Needs work » Needs review
StatusFileSize
new7.55 KB
new29.68 KB

OK, so this revamps the whole "modifying the source/file storage" thing a bit. Hopefully this is green. Also opened #2995099: Extract parts of FileStorage::write() into a ::writeEncoded() method along the way.

tstoeckler’s picture

StatusFileSize
new14.72 KB
new32.49 KB

Here we go, this should address the performance concern by hooking into the storage class directly.

Status: Needs review » Needs work

The last submitted patch, 6: 2989519-6.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

tstoeckler’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new1.42 KB
new32.47 KB

Oops, small oversight. Will commit this if green.

  • tstoeckler committed 4b54231 on 8.x-1.x
    Issue #2989519 by tstoeckler: Support optional configuration
    
tstoeckler’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.