Skip to content

Make PADD compatible with FTLv6#247

Merged
yubiuser merged 84 commits intodevelopmentfrom
PADD_FTLv6
Sep 2, 2024
Merged

Make PADD compatible with FTLv6#247
yubiuser merged 84 commits intodevelopmentfrom
PADD_FTLv6

Conversation

@yubiuser
Copy link
Member

@yubiuser yubiuser commented Jul 18, 2022

  • What does this PR aim to accomplish?:

Makes PADD compatible with FTLv6's new API.
There is a second goal: if all necessary information are available via the API one can run PADD remotely.

Important: PADD now needs jq to parse the JSON data.

This is work in progress
As long the FTL's API is changing things can break within PADD anytime. However, I try to keep development in sync. Currently, everything should be working.


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

yubiuser added 12 commits July 19, 2022 15:10
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
yubiuser added a commit to pi-hole/pi-hole that referenced this pull request Aug 26, 2022
 **What does this PR aim to accomplish?:**

Adds `jq` as dependency and removes the now obsolete `json_extract` function.
`jq` is a small dependency and adds powerfull json abilities. With `FTL v6` we will have a whole new json-based API where `jq` might be needed anyway. Also for `PADD` to interact with `FTL v6`, `jq` will be a requirement: pi-hole/PADD#247

---
**By submitting this pull request, I confirm the following:** 

1. I have read and understood the [contributors guide](https://docs.pi-hole.net/guides/github/contributing/), 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](https://opensource.org/licenses/EUPL-1.1)
5. I have squashed any insignificant commits. ([`git rebase`](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))

---
- [x] I have read the above and my PR is ready for review. _Check this box to confirm_
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
@github-actions
Copy link

Conflicts have been resolved.

Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
yubiuser and others added 21 commits July 14, 2024 22:25
Signed-off-by: yubiuser <github@yubiuser.dev>
Signed-off-by: yubiuser <github@yubiuser.dev>
…ng normal runtime

Signed-off-by: yubiuser <github@yubiuser.dev>
…ateway interface instead

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
…lues null and false

Signed-off-by: DL6ER <dl6er@dl6er.de>
We also check if the value is exactly `null` and, in this case, return the
string "null", as jq would return an empty string for nulls.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: yubiuser <github@yubiuser.dev>
Signed-off-by: yubiuser <github@yubiuser.dev>
Signed-off-by: yubiuser <github@yubiuser.dev>
Signed-off-by: yubiuser <github@yubiuser.dev>
Signed-off-by: yubiuser <github@yubiuser.dev>
Signed-off-by: yubiuser <github@yubiuser.dev>
Signed-off-by: yubiuser <github@yubiuser.dev>
Signed-off-by: yubiuser <github@yubiuser.dev>
Signed-off-by: yubiuser <github@yubiuser.dev>
@PromoFaux
Copy link
Member

@yubiuser is this ready for development?

@yubiuser
Copy link
Member Author

yubiuser commented Sep 2, 2024

I think so :)

@yubiuser yubiuser marked this pull request as ready for review September 2, 2024 20:43
@yubiuser yubiuser changed the title [WIP] Make PADD compatible with FTLv6 Make PADD compatible with FTLv6 Sep 2, 2024
@yubiuser yubiuser merged commit 4a34c23 into development Sep 2, 2024
@yubiuser yubiuser deleted the PADD_FTLv6 branch September 2, 2024 21:00
@yubiuser yubiuser mentioned this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants