Problem/Motivation

Requested by Razem

  • Having a Varbase installation requirement before installation will guide people on the needed PHP extensions and memory limit and time for the process
  • Maybe some links for a doc link
  • Have that as a notice only. The requirement will not block the process of installing

Linked to changes after:
Issue #3217859: Support PHP8.1 and MySQL 8 for Varbase ~9.0 and all used components with automated testing
✅ Developer Documentation support on feature change/addition

Changed
Requirements

PHP 7.4 or higher. PHP 8.0 is recommended.

Steps to reproduce

When installing a new Varbase build, in Verify requirements phase, it's better to inform and guide people about the needed PHP extensions and memory limit and time for the process

Proposed resolution

Use hook_requirements to add requirements about those items.

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ✅ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-9.0.7, varbase-10.0.0-alpha1

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

Varbase requirements warnings

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

Issue fork varbase-3277590

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Abdullah Yassin created an issue. See original summary.

Abdullah Yassin’s picture

Needs final wording.

Abdullah Yassin’s picture

Assigned: Abdullah Yassin » Unassigned
Status: Active » Needs review
rajab natshah’s picture

Title: Fix have a Varbase installation requirement ( notification, not a blocker) » Have a Varbase installation requirement ( notification, not a blocker)
rajab natshah’s picture

Needs work on the following points:

  • Not to show the message. Only if the memory limit is less than 256M ( and not to show if it was -1 unlimited )
  • Change “Your” to “Current system” in messages.
  • Change “We recommend that you” to “Recommended for the current system”
  • Add logic to change the Recommended PHP version message based on the current system

Example:

if php version was < 7.4

Current system is using PHP 7.3
PHP 7.4 or higher. PHP 8.0 is recommended.

else if php version was 7.4

Current system is using PHP 7.4
PHP 8.0 is recommended.

It feels that this group of messages works for Server-side Requirements for Evaluation or Development
It could be nice to add a link for that. or let them know that these are recommended requirements for installation and development only.
And they can be changed for Server-side Requirements for Production

Linked to changes after:
Issue #3217859: Support PHP8.1 and MySQL 8 for Varbase ~9.0 and all used components with automated testing
✅ Developer Documentation support on feature change/addition

Changed
Requirements

PHP 7.4 or higher. PHP 8.0 is recommended.

rajab natshah’s picture

Abdullah Yassin’s picture

Version: 9.0.x-dev » 10.0.x-dev
Abdullah Yassin’s picture

Version: 10.0.x-dev » 9.0.x-dev
Abdullah Yassin’s picture

Status: Needs work » Needs review
StatusFileSize
new121.55 KB

Changed on branch 9.0.x
Added php-yaml notic
This is the result:
hook_requiremenrs

Abdullah Yassin’s picture

Here is a patch for adding requirements warnings with a new words mentioned by Razem.
New requirements

rajab natshah’s picture

Issue summary: View changes

rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
Category: Bug report » Task
Issue summary: View changes
Issue tags: +varbase-9.0.7, +varbase-10.0.0-alpha1, +php version, +PHP 8.0, +PHP 8.1, +memory_limit, +max_execution_time
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-9.0.7

rajab natshah’s picture

Status: Fixed » Closed (fixed)
rajab natshah’s picture

Issue summary: View changes
Issue tags: -