# etechflow/module-admin-reindex

> Run Magento indexers from the admin browser instead of CLI. Adds a 'Reindex' mass action + 'Reindex All' button to System → Tools → Index Management. No SSH required. Hyvä / Magento Open Source / Adobe Commerce compatible.

`composer require etechflow/module-admin-reindex`

Canonical URL: https://packagento.com/etechflow/module-admin-reindex

## At a glance

- **Vendor**: etechflow (https://packagento.com/etechflow.md)
- **Latest version**: 1.2.0 — released 2026-06-06
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/etechflow/module-admin-reindex and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require etechflow/module-admin-reindex:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Run Magento indexers from the admin browser instead of CLI. Adds a 'Reindex' mass action + 'Reindex All' button to System → Tools → Index Management. No SSH required. Hyvä / Magento Open Source / Adobe Commerce compatible.

## README

Run Magento indexers from the admin browser instead of CLI. Adds a **"Reindex"** mass-action option and a **"Reindex All"** button to **System → Tools → Index Management** — for teams without SSH/CLI access to the production server.

Commercial eTechFlow module. Per-domain HMAC license or eTechFlow bundle key activates the module on your production host. Dev / staging / `*.magento.cloud` / `localhost` etc. auto-detect and bypass licensing — no key needed for local work.

### What it adds to the admin

1. **"Reindex"** option in the existing mass-action dropdown on the Index Management grid — tick rows, click Submit, confirm. Per-indexer green/red messages with runtime in seconds.
2. **"Reindex All"** button in the page action toolbar — rebuilds every indexer in sequence.

Limited admin users without the `ETechFlow_AdminReindex::run` ACL resource see the stock Index Management page unchanged.

### Features

| | |
|---|---|
| Reindex selected indexers from the admin grid | ✓ |
| Reindex every indexer with one button click | ✓ |
| Per-indexer success/failure messages with runtime in seconds | ✓ |
| Form-key + ACL protected (no CSRF, granular role permissions) | ✓ |
| Per-domain HMAC licensing + bundle key support | ✓ |
| Tideways span instrumentation (`ETechFlow_AR_MassReindex`) | ✓ |
| Verify CLI (`etechflow:ar:verify`) | ✓ |
| No SSH / no CLI / no cron knowledge needed | ✓ |
| Works on any Magento install — no DB changes, no frontend assets | ✓ |

### Compatibility

| Platform | Status |
|---|---|
| Magento Open Source 2.4.4 – 2.4.8 | ✓ |
| Adobe Commerce 2.4.4 – 2.4.8 | ✓ |
| Hyvä-themed storefronts | ✓ (admin-only module — Hyvä doesn't touch admin) |
| PHP 8.1 / 8.2 / 8.3 / 8.4 | ✓ |

### Installation

```bash
## Option A — Composer
composer require etechflow/module-admin-reindex:^1.0
bin/magento module:enable ETechFlow_AdminReindex
bin/magento setup:upgrade
bin/magento setup:di:compile      # production mode only
bin/magento cache:flush

## Option B — Manual drop-in
cp -r ETechFlow/AdminReindex app/code/ETechFlow/AdminReindex
bin/magento module:enable ETechFlow_AdminReindex
bin/magento setup:upgrade
bin/magento setup:di:compile      # production mode only
bin/magento cache:flush
```

No database tables, no config rows beyond admin settings.

### Licensing

**Admin → Stores → Configuration → eTechFlow → Admin Reindex → License**

| Field | Default | What it does |
|---|---|---|
| **Production Environment** | Yes | Yes = check the license key. No = run at full features without a key (use on dev/staging on non-standard domains). |
| **License Key** | (empty) | Paste the per-domain key from your purchase email. |

If you bought the eTechFlow bundle, enter the bundle key under any module's *License* section — it activates all eTechFlow modules at once.

Dev / staging hosts (`.test`, `.local`, `localhost`, RFC 1918 IPs, `*.magento.cloud`, `*.ngrok.io`, common `staging.`/`dev.`/`qa.` prefixes) auto-detect and bypass licensing — engineers don't need a real key locally.

### Permissions

Two new ACL resources appear under **Stores → Permissions → User Roles → Role Resources**:

- `ETechFlow_AdminReindex::run` — required to see the *Reindex* mass action and *Reindex All* button, and to POST to the run endpoint.
- `ETechFlow_AdminReindex::config` — required to see the admin config section.

Both are granted to the *Administrators* role by default. Assign granularly to limited roles as needed.

### Smoke test

After installing, confirm the module is healthy:

```bash
bin/magento etechflow:ar:verify
```

Should print `✅ ALL CHECKS PASSED. v1.0.0 verified.`

### Uninstall

```bash
bin/magento module:disable ETechFlow_AdminReindex
bin/magento cache:flush

## Composer:
composer remove etechflow/module-admin-reindex
## Manual:
rm -rf app/code/ETechFlow/AdminReindex
bin/magento setup:upgrade
bin/magento cache:flush
```

Nothing to clean from the database — the module doesn't add tables.

### License

Proprietary — see `LICENSE.txt`. Commercial licenses available at <https://etechflow.com>.

## Changelog

All notable changes to this module. Adheres to [Semantic Versioning](https://semver.org/).

---

### [1.1.1] — 2026-06-03 — Billing-period plans (weekly / monthly / yearly)

#### Changed

- **License gate now offers billing periods instead of one-time tiers.** Replaced the Solo/Growth/Business/All-Channels one-time-purchase cards with **Weekly $5 / Monthly $15 / Yearly $150** (USD; yearly ≈ 2 months free). Updated `Controller/Adminhtml/License/CreateSession.php` plan catalog (`reindex_weekly|monthly|yearly`) and the gate template. Matches the eTechFlow portal's new billing-period subscription model.

### [1.0.0] — 2026-05-19

#### Initial commercial release

Run Magento indexers from the admin panel instead of the command line. Reduces support load for teams without SSH access to the production server.

##### Added

- **"Reindex" mass-action option** on **System → Tools → Index Management** — tick rows, click Reindex, confirm. Per-indexer success/failure messages with runtime in seconds.
- **"Reindex All" button** in the page action toolbar — one click rebuilds every indexer in sequence.
- **Per-installation HMAC license** with bundle-key support. Same licensing pattern as every other eTechFlow module: per-domain key OR bundle key activates the module on the production host. Dev/staging environments (`.test`, `.local`, `*.magento.cloud`, RFC 1918 IPs, etc.) auto-detect and bypass licensing.
- **ACL resource** `ETechFlow_AdminReindex::run` — required to see the new buttons and post to the run endpoint. Limited admin users without it see the stock Index Management page unchanged.
- **Profiler instrumentation** — wraps the mass-reindex execute path in an `ETechFlow_AR_MassReindex` Tideways span for production tracing. No-op when Tideways isn't installed.
- **Verify CLI** — `bin/magento etechflow:ar:verify` confirms classes resolve via DI, license validator evaluates, IndexerRegistry returns real indexers. Use as a smoke test in deploy pipelines.
- **Hyvä-safe** — admin-only module with zero frontend assets. Hyvä themes only re-skin the storefront; this module never touches it.

##### Compatibility

- Magento Open Source 2.4.4 – 2.4.8
- Adobe Commerce 2.4.4 – 2.4.8
- PHP 8.1 / 8.2 / 8.3 / 8.4
- All Hyvä child themes

## Recent Versions

| Version | Released |
|---|---|
| 1.2.0 | 2026-06-06 |
| 1.1.1 | 2026-06-03 |
| 1.1.0 | 2026-05-29 |
| 1.0.1 | 2026-05-21 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | ^103.0\|\|^104.0 |
| magento/module-backend | ^102.0\|\|^103.0 |
| magento/module-config | ^101.2\|\|^102.0 |
| magento/module-indexer | ^100.4\|\|^101.0 |
| magento/module-store | ^101.1\|\|^102.0 |
| php | ~8.1.0\|\|~8.2.0\|\|~8.3.0\|\|~8.4.0 |

### Suggest

| Package | Constraint |
|---|---|
| etechflow/module-next-day-eligibility | Part of the eTechFlow module bundle — one bundle key activates every eTechFlow module. |

## Quality

Latest release (1.2.0) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | not tested |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 114 | 4 errors, 110 warnings (ruleset: Magento2) — 46 auto-fixable with phpcbf |
| PHPMD | Warning | 24 | 24 rule violations (NPathComplexity:7, CyclomaticComplexity:5, UnusedFormalParameter:4, MissingImport:4, EmptyCatchBlock:3) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 15 | 15 | – | – |
| 2.4.8 | – | 15 | 15 | – |
| 2.4.9 | – | – | 15 | N/A |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["etechflow/module-admin-reindex"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

etechflow is a Magento 2 vendor on Packagento. See https://packagento.com/etechflow.md for their full catalogue.

