Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@PromoFaux
Copy link
Member

What does this PR aim to accomplish?:

Addresses #2671 (comment)


By submitting this pull request, I confirm the following:

  1. I have read and understood the contributors guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
  2. I have commented my proposed changes within the code and I have tested my changes.
  3. I am willing to help maintain this change if there are issues with it later.
  4. It is compatible with the EUPL 1.2 license
  5. I have squashed any insignificant commits. (git rebase)

  • I have read the above and my PR is ready for review. Check this box to confirm

The gravity action endpoint now only includes ANSI escape codes when the
client explicitly requests them via the 'color=true' query parameter. This
prevents ANSI codes from appearing in API responses for consumers that don't
need them, fixing issue #2671.

The web interface will request colors by adding '?color=true' to its API call.
Other API consumers will receive plain output by default.

Addresses: #2671
rdwebdesign
rdwebdesign previously approved these changes Nov 19, 2025
@yubiuser yubiuser linked an issue Nov 20, 2025 that may be closed by this pull request
Copy link
Member

@yubiuser yubiuser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs adjustment to the API documentation as you introduced a new query parameter

@DL6ER DL6ER merged commit 324abdd into development Nov 22, 2025
18 checks passed
@DL6ER DL6ER deleted the gravity-colour-tweak branch November 22, 2025 08:48
@PromoFaux PromoFaux mentioned this pull request Nov 25, 2025
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/pi-hole-ftl-v6-4-web-v6-4-and-core-v6-3-released/83680/1

github-actions bot pushed a commit to bigbeartechworld/big-bear-universal-apps that referenced this pull request Nov 30, 2025
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [pihole/pihole](https://redirect.github.com/pi-hole/docker-pi-hole) | patch | `2025.11.0` -> `2025.11.1` |

---

### Release Notes

<details>
<summary>pi-hole/docker-pi-hole (pihole/pihole)</summary>

### [`v2025.11.1`](https://redirect.github.com/pi-hole/docker-pi-hole/releases/tag/2025.11.1)

[Compare Source](https://redirect.github.com/pi-hole/docker-pi-hole/compare/2025.11.0...2025.11.1)

<!-- Release notes generated using configuration in .github/release.yml at master -->

#### What's Changed (Docker Specific)

- Fix build status badge in readme by [@&#8203;nol166](https://redirect.github.com/nol166) in [#&#8203;1938](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1938)
- Add RISCV back by [@&#8203;yubiuser](https://redirect.github.com/yubiuser) in [#&#8203;1939](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1939)
- Improve FTL startup detection and log tailing by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [#&#8203;1940](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1940)
- Set DNS listening mode to 'ALL' in docker-compose.yml example by [@&#8203;cornshakes](https://redirect.github.com/cornshakes) in [#&#8203;1946](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1946)
- Add instructions for excluding Pi-hole from Watchtower updates by [@&#8203;chippy01](https://redirect.github.com/chippy01) in [#&#8203;1949](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1949)

#### New Contributors

- [@&#8203;nol166](https://redirect.github.com/nol166) made their first contribution in [#&#8203;1938](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1938)
- [@&#8203;cornshakes](https://redirect.github.com/cornshakes) made their first contribution in [#&#8203;1946](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1946)
- [@&#8203;chippy01](https://redirect.github.com/chippy01) made their first contribution in [#&#8203;1949](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1949)

**Full Changelog**: <pi-hole/docker-pi-hole@2025.11.0...2025.11.1>

***

<!-- Release notes generated using configuration in .github/release.yml at development -->

#### What's Changed (FTL v6.4.1)

- Fix API specs and example for dns.upstreams in config.yaml by [@&#8203;rdwebdesign](https://redirect.github.com/rdwebdesign) in [pi-hole/FTL#2696](https://redirect.github.com/pi-hole/FTL/pull/2696)
- gravity update - silently discard unicode BOM if present by [@&#8203;rrobgill](https://redirect.github.com/rrobgill) in [pi-hole/FTL#2702](https://redirect.github.com/pi-hole/FTL/pull/2702)
- Update embedded SQLite to 3.51.0 by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/FTL#2704](https://redirect.github.com/pi-hole/FTL/pull/2704)
- Get earliest query timestamp from database by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [pi-hole/FTL#2706](https://redirect.github.com/pi-hole/FTL/pull/2706)
- Increase buffer length for query string by [@&#8203;mwoolweaver](https://redirect.github.com/mwoolweaver) in [pi-hole/FTL#2709](https://redirect.github.com/pi-hole/FTL/pull/2709)
- Reduce DNS resolver locking during database interaction by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/FTL#2700](https://redirect.github.com/pi-hole/FTL/pull/2700)
- Make colour output optional in streaming gravity API call by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [pi-hole/FTL#2718](https://redirect.github.com/pi-hole/FTL/pull/2718)
- api/dhcp/leases Allow for hwaddr > 48 bits by [@&#8203;rrobgill](https://redirect.github.com/rrobgill) in [pi-hole/FTL#2724](https://redirect.github.com/pi-hole/FTL/pull/2724)
- Add rate-limiting for TOTP validation by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/FTL#2719](https://redirect.github.com/pi-hole/FTL/pull/2719)
- Implement simple partial matching for regex in /api/search/{domain} by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/FTL#2705](https://redirect.github.com/pi-hole/FTL/pull/2705)
- Performance optimizations: string processing, memory management, and compiler flags by [@&#8203;Copilot](https://redirect.github.com/Copilot) in [pi-hole/FTL#2571](https://redirect.github.com/pi-hole/FTL/pull/2571)
- Fix authentication redirect when webhome is / (fixes [#&#8203;2518](https://redirect.github.com/pi-hole/docker-pi-hole/issues/2518)) by [@&#8203;averyvigolo](https://redirect.github.com/averyvigolo) in [pi-hole/FTL#2610](https://redirect.github.com/pi-hole/FTL/pull/2610)
- Reduce database locking and add timing debug setting by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/FTL#2688](https://redirect.github.com/pi-hole/FTL/pull/2688)

#### New Contributors

- [@&#8203;mwoolweaver](https://redirect.github.com/mwoolweaver) made their first contribution in [pi-hole/FTL#2709](https://redirect.github.com/pi-hole/FTL/pull/2709)
- [@&#8203;Copilot](https://redirect.github.com/Copilot) made their first contribution in [pi-hole/FTL#2571](https://redirect.github.com/pi-hole/FTL/pull/2571)
- [@&#8203;averyvigolo](https://redirect.github.com/averyvigolo) made their first contribution in [pi-hole/FTL#2610](https://redirect.github.com/pi-hole/FTL/pull/2610)

**Full Changelog**: <pi-hole/FTL@v6.3.3...v6.4>

<!-- Release notes generated using configuration in .github/release.yml at master -->

<!-- Release notes generated using configuration in .github/release.yml at master -->

#### What's Changed (Web v6.4)

- Start using commented tags for editorconfig-checker by [@&#8203;yubiuser](https://redirect.github.com/yubiuser) in [pi-hole/web#3643](https://redirect.github.com/pi-hole/web/pull/3643)
- Remove some unused code (leftover from v5) by [@&#8203;rdwebdesign](https://redirect.github.com/rdwebdesign) in [pi-hole/web#3636](https://redirect.github.com/pi-hole/web/pull/3636)
- Make sure the table is redrawn after the dnssec API call returns by [@&#8203;rdwebdesign](https://redirect.github.com/rdwebdesign) in [pi-hole/web#3645](https://redirect.github.com/pi-hole/web/pull/3645)
- Add hint that partial matching may not return all possible results by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/web#3654](https://redirect.github.com/pi-hole/web/pull/3654)
- Enable one-time code autofill for TOTP input by [@&#8203;sebastianlivoni](https://redirect.github.com/sebastianlivoni) in [pi-hole/web#3658](https://redirect.github.com/pi-hole/web/pull/3658)
- Set "All Time " range for query log datepicker based on Database ranges (moment) by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [pi-hole/web#3657](https://redirect.github.com/pi-hole/web/pull/3657)
- Request ANSI colour codes when calling gravity API by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [pi-hole/web#3662](https://redirect.github.com/pi-hole/web/pull/3662)
- Pi-hole Web v6.4 by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [pi-hole/web#3670](https://redirect.github.com/pi-hole/web/pull/3670)

#### New Contributors

- [@&#8203;sebastianlivoni](https://redirect.github.com/sebastianlivoni) made their first contribution in [pi-hole/web#3658](https://redirect.github.com/pi-hole/web/pull/3658)

**Full Changelog**: <pi-hole/web@v6.3...v6.4>

#### What's Changed (Core v6.3)

- Add Fedora 43 to test suite by [@&#8203;yubiuser](https://redirect.github.com/yubiuser) in [pi-hole/pi-hole#6453](https://redirect.github.com/pi-hole/pi-hole/pull/6453)
- Fix libcap capabilities not being granted on OpenRC distros by [@&#8203;Sparronator9999](https://redirect.github.com/Sparronator9999) in [pi-hole/pi-hole#6456](https://redirect.github.com/pi-hole/pi-hole/pull/6456)
- systemd service - don't use deprecated PermissionsStartOnly by [@&#8203;rrobgill](https://redirect.github.com/rrobgill) in [pi-hole/pi-hole#6465](https://redirect.github.com/pi-hole/pi-hole/pull/6465)
- debug - speed up processing and display of file contents and services by [@&#8203;rrobgill](https://redirect.github.com/rrobgill) in [pi-hole/pi-hole#6469](https://redirect.github.com/pi-hole/pi-hole/pull/6469)
- Use port from dns.port in piholeDebug.sh by [@&#8203;darkexplosiveqwx](https://redirect.github.com/darkexplosiveqwx) in [pi-hole/pi-hole#6475](https://redirect.github.com/pi-hole/pi-hole/pull/6475)
- Improve gravity tables presentation on the debug log by [@&#8203;rdwebdesign](https://redirect.github.com/rdwebdesign) in [pi-hole/pi-hole#6460](https://redirect.github.com/pi-hole/pi-hole/pull/6460)

#### New Contributors

- [@&#8203;Sparronator9999](https://redirect.github.com/Sparronator9999) made their first contribution in [pi-hole/pi-hole#6456](https://redirect.github.com/pi-hole/pi-hole/pull/6456)

**Full Changelog**: <pi-hole/pi-hole@v6.2.2...v6.3>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/bigbeartechworld/big-bear-universal-apps).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOS45IiwidXBkYXRlZEluVmVyIjoiNDIuMTkuOSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGUiXX0=-->
github-actions bot pushed a commit to bigbeartechworld/big-bear-universal-apps that referenced this pull request Dec 1, 2025
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [jacklul/pihole](https://redirect.github.com/pi-hole/docker-pi-hole) | patch | `2025.11.0` -> `2025.11.1` |

---

### Release Notes

<details>
<summary>pi-hole/docker-pi-hole (jacklul/pihole)</summary>

### [`v2025.11.1`](https://redirect.github.com/pi-hole/docker-pi-hole/releases/tag/2025.11.1)

[Compare Source](https://redirect.github.com/pi-hole/docker-pi-hole/compare/2025.11.0...2025.11.1)

<!-- Release notes generated using configuration in .github/release.yml at master -->

#### What's Changed (Docker Specific)

- Fix build status badge in readme by [@&#8203;nol166](https://redirect.github.com/nol166) in [#&#8203;1938](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1938)
- Add RISCV back by [@&#8203;yubiuser](https://redirect.github.com/yubiuser) in [#&#8203;1939](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1939)
- Improve FTL startup detection and log tailing by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [#&#8203;1940](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1940)
- Set DNS listening mode to 'ALL' in docker-compose.yml example by [@&#8203;cornshakes](https://redirect.github.com/cornshakes) in [#&#8203;1946](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1946)
- Add instructions for excluding Pi-hole from Watchtower updates by [@&#8203;chippy01](https://redirect.github.com/chippy01) in [#&#8203;1949](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1949)

#### New Contributors

- [@&#8203;nol166](https://redirect.github.com/nol166) made their first contribution in [#&#8203;1938](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1938)
- [@&#8203;cornshakes](https://redirect.github.com/cornshakes) made their first contribution in [#&#8203;1946](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1946)
- [@&#8203;chippy01](https://redirect.github.com/chippy01) made their first contribution in [#&#8203;1949](https://redirect.github.com/pi-hole/docker-pi-hole/pull/1949)

**Full Changelog**: <pi-hole/docker-pi-hole@2025.11.0...2025.11.1>

***

<!-- Release notes generated using configuration in .github/release.yml at development -->

#### What's Changed (FTL v6.4.1)

- Fix API specs and example for dns.upstreams in config.yaml by [@&#8203;rdwebdesign](https://redirect.github.com/rdwebdesign) in [pi-hole/FTL#2696](https://redirect.github.com/pi-hole/FTL/pull/2696)
- gravity update - silently discard unicode BOM if present by [@&#8203;rrobgill](https://redirect.github.com/rrobgill) in [pi-hole/FTL#2702](https://redirect.github.com/pi-hole/FTL/pull/2702)
- Update embedded SQLite to 3.51.0 by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/FTL#2704](https://redirect.github.com/pi-hole/FTL/pull/2704)
- Get earliest query timestamp from database by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [pi-hole/FTL#2706](https://redirect.github.com/pi-hole/FTL/pull/2706)
- Increase buffer length for query string by [@&#8203;mwoolweaver](https://redirect.github.com/mwoolweaver) in [pi-hole/FTL#2709](https://redirect.github.com/pi-hole/FTL/pull/2709)
- Reduce DNS resolver locking during database interaction by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/FTL#2700](https://redirect.github.com/pi-hole/FTL/pull/2700)
- Make colour output optional in streaming gravity API call by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [pi-hole/FTL#2718](https://redirect.github.com/pi-hole/FTL/pull/2718)
- api/dhcp/leases Allow for hwaddr > 48 bits by [@&#8203;rrobgill](https://redirect.github.com/rrobgill) in [pi-hole/FTL#2724](https://redirect.github.com/pi-hole/FTL/pull/2724)
- Add rate-limiting for TOTP validation by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/FTL#2719](https://redirect.github.com/pi-hole/FTL/pull/2719)
- Implement simple partial matching for regex in /api/search/{domain} by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/FTL#2705](https://redirect.github.com/pi-hole/FTL/pull/2705)
- Performance optimizations: string processing, memory management, and compiler flags by [@&#8203;Copilot](https://redirect.github.com/Copilot) in [pi-hole/FTL#2571](https://redirect.github.com/pi-hole/FTL/pull/2571)
- Fix authentication redirect when webhome is / (fixes [#&#8203;2518](https://redirect.github.com/pi-hole/docker-pi-hole/issues/2518)) by [@&#8203;averyvigolo](https://redirect.github.com/averyvigolo) in [pi-hole/FTL#2610](https://redirect.github.com/pi-hole/FTL/pull/2610)
- Reduce database locking and add timing debug setting by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/FTL#2688](https://redirect.github.com/pi-hole/FTL/pull/2688)

#### New Contributors

- [@&#8203;mwoolweaver](https://redirect.github.com/mwoolweaver) made their first contribution in [pi-hole/FTL#2709](https://redirect.github.com/pi-hole/FTL/pull/2709)
- [@&#8203;Copilot](https://redirect.github.com/Copilot) made their first contribution in [pi-hole/FTL#2571](https://redirect.github.com/pi-hole/FTL/pull/2571)
- [@&#8203;averyvigolo](https://redirect.github.com/averyvigolo) made their first contribution in [pi-hole/FTL#2610](https://redirect.github.com/pi-hole/FTL/pull/2610)

**Full Changelog**: <pi-hole/FTL@v6.3.3...v6.4>

<!-- Release notes generated using configuration in .github/release.yml at master -->

<!-- Release notes generated using configuration in .github/release.yml at master -->

#### What's Changed (Web v6.4)

- Start using commented tags for editorconfig-checker by [@&#8203;yubiuser](https://redirect.github.com/yubiuser) in [pi-hole/web#3643](https://redirect.github.com/pi-hole/web/pull/3643)
- Remove some unused code (leftover from v5) by [@&#8203;rdwebdesign](https://redirect.github.com/rdwebdesign) in [pi-hole/web#3636](https://redirect.github.com/pi-hole/web/pull/3636)
- Make sure the table is redrawn after the dnssec API call returns by [@&#8203;rdwebdesign](https://redirect.github.com/rdwebdesign) in [pi-hole/web#3645](https://redirect.github.com/pi-hole/web/pull/3645)
- Add hint that partial matching may not return all possible results by [@&#8203;DL6ER](https://redirect.github.com/DL6ER) in [pi-hole/web#3654](https://redirect.github.com/pi-hole/web/pull/3654)
- Enable one-time code autofill for TOTP input by [@&#8203;sebastianlivoni](https://redirect.github.com/sebastianlivoni) in [pi-hole/web#3658](https://redirect.github.com/pi-hole/web/pull/3658)
- Set "All Time " range for query log datepicker based on Database ranges (moment) by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [pi-hole/web#3657](https://redirect.github.com/pi-hole/web/pull/3657)
- Request ANSI colour codes when calling gravity API by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [pi-hole/web#3662](https://redirect.github.com/pi-hole/web/pull/3662)
- Pi-hole Web v6.4 by [@&#8203;PromoFaux](https://redirect.github.com/PromoFaux) in [pi-hole/web#3670](https://redirect.github.com/pi-hole/web/pull/3670)

#### New Contributors

- [@&#8203;sebastianlivoni](https://redirect.github.com/sebastianlivoni) made their first contribution in [pi-hole/web#3658](https://redirect.github.com/pi-hole/web/pull/3658)

**Full Changelog**: <pi-hole/web@v6.3...v6.4>

#### What's Changed (Core v6.3)

- Add Fedora 43 to test suite by [@&#8203;yubiuser](https://redirect.github.com/yubiuser) in [pi-hole/pi-hole#6453](https://redirect.github.com/pi-hole/pi-hole/pull/6453)
- Fix libcap capabilities not being granted on OpenRC distros by [@&#8203;Sparronator9999](https://redirect.github.com/Sparronator9999) in [pi-hole/pi-hole#6456](https://redirect.github.com/pi-hole/pi-hole/pull/6456)
- systemd service - don't use deprecated PermissionsStartOnly by [@&#8203;rrobgill](https://redirect.github.com/rrobgill) in [pi-hole/pi-hole#6465](https://redirect.github.com/pi-hole/pi-hole/pull/6465)
- debug - speed up processing and display of file contents and services by [@&#8203;rrobgill](https://redirect.github.com/rrobgill) in [pi-hole/pi-hole#6469](https://redirect.github.com/pi-hole/pi-hole/pull/6469)
- Use port from dns.port in piholeDebug.sh by [@&#8203;darkexplosiveqwx](https://redirect.github.com/darkexplosiveqwx) in [pi-hole/pi-hole#6475](https://redirect.github.com/pi-hole/pi-hole/pull/6475)
- Improve gravity tables presentation on the debug log by [@&#8203;rdwebdesign](https://redirect.github.com/rdwebdesign) in [pi-hole/pi-hole#6460](https://redirect.github.com/pi-hole/pi-hole/pull/6460)

#### New Contributors

- [@&#8203;Sparronator9999](https://redirect.github.com/Sparronator9999) made their first contribution in [pi-hole/pi-hole#6456](https://redirect.github.com/pi-hole/pi-hole/pull/6456)

**Full Changelog**: <pi-hole/pi-hole@v6.2.2...v6.3>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/bigbeartechworld/big-bear-universal-apps).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOS45IiwidXBkYXRlZEluVmVyIjoiNDIuMTkuOSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGUiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Action Gravity Deviation from Docs

6 participants