Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Backend docs #14840

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Update Backend docs #14840

wants to merge 5 commits into from

Conversation

ukleinek
Copy link
Contributor

Short description

Make the feature lists of all backend docs consistently list the same properties

I didn't know for all added fields what the right value is, added "???" in that case. Happy for feedback about how to change them into the right values.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

docs/backends/random.rst Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Nov 11, 2024

Pull Request Test Coverage Report for Build 13068128917

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 51 unchanged lines in 14 files lost coverage.
  • Overall coverage increased (+0.02%) to 64.721%

Files with Coverage Reduction New Missed Lines %
pdns/recursordist/test-rec-tcounters_cc.cc 2 95.77%
pdns/misc.cc 2 62.66%
pdns/sstuff.hh 2 56.83%
pdns/recursordist/test-syncres_cc2.cc 3 88.91%
pdns/misc.hh 3 87.62%
pdns/stubresolver.cc 3 77.58%
pdns/packethandler.cc 3 72.74%
pdns/recursordist/rec-tcpout.cc 3 61.9%
pdns/remote_logger.cc 3 53.81%
pdns/iputils.cc 3 56.99%
Totals Coverage Status
Change from base Build 13041317277: 0.02%
Covered Lines: 127879
Relevant Lines: 166478

💛 - Coveralls

Copy link
Member

@Habbie Habbie left a comment

Choose a reason for hiding this comment

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

partial review

docs/backends/bind.rst Outdated Show resolved Hide resolved
docs/backends/bind.rst Outdated Show resolved Hide resolved
docs/backends/geoip.rst Outdated Show resolved Hide resolved
@Habbie Habbie added this to the auth-5 milestone Nov 12, 2024
@ukleinek
Copy link
Contributor Author

The last push split out the change of itemize char from - to * into a separate commit to ease reviewing and I added the tense fix suggested by @jsoref in #14840 (comment).

@ukleinek ukleinek force-pushed the backend-docs branch 3 times, most recently from 6092180 to 268cf8d Compare November 12, 2024 10:55
@ukleinek
Copy link
Contributor Author

Dropped Case: ...

@ukleinek
Copy link
Contributor Author

The patch adding the "Autosecondary" column was replaced by a patch renaming the "Autoprimary" column to "Autosecondary". Also dropped "Autoprimary" from the individual backend docs. So the things to fix before this can go in are:

$ git grep '???' docs/backends/
docs/backends/geoip.rst:* API: ???
docs/backends/geoip.rst:* Multiple instances: ???
docs/backends/ldap.rst:* API: ???
docs/backends/ldap.rst:* Multiple instances: ???
docs/backends/lmdb.rst:* API: ???
docs/backends/lua2.rst:* API: ???
docs/backends/lua2.rst:* Multiple instances: ???
docs/backends/pipe.rst:* API: ???
docs/backends/pipe.rst:* Multiple instances: ???
docs/backends/random.rst:* API: ???
docs/backends/random.rst:* Multiple instances: ???
docs/backends/remote.rst:* API: ???
docs/backends/tinydns.rst:* Disabled data: ???
docs/backends/tinydns.rst:* Comments: ???
docs/backends/tinydns.rst:* API: ???

Copy link
Contributor

@miodvallat miodvallat left a comment

Choose a reason for hiding this comment

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

I believe I got these correct.

Also, all backend but Bind support multiple instances.

docs/backends/geoip.rst Outdated Show resolved Hide resolved
docs/backends/ldap.rst Outdated Show resolved Hide resolved
docs/backends/lmdb.rst Outdated Show resolved Hide resolved
docs/backends/lua2.rst Outdated Show resolved Hide resolved
docs/backends/pipe.rst Outdated Show resolved Hide resolved
docs/backends/random.rst Outdated Show resolved Hide resolved
docs/backends/remote.rst Outdated Show resolved Hide resolved
docs/backends/tinydns.rst Outdated Show resolved Hide resolved
docs/backends/tinydns.rst Outdated Show resolved Hide resolved
docs/backends/tinydns.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@mind04 mind04 left a comment

Choose a reason for hiding this comment

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

Catch some low fruit. Review is probably incomplete.

docs/backends/bind.rst Outdated Show resolved Hide resolved
docs/backends/bind.rst Outdated Show resolved Hide resolved
docs/backends/random.rst Outdated Show resolved Hide resolved
docs/backends/random.rst Outdated Show resolved Hide resolved
docs/backends/random.rst Outdated Show resolved Hide resolved
docs/backends/geoip.rst Outdated Show resolved Hide resolved
docs/backends/lua2.rst Outdated Show resolved Hide resolved
docs/backends/pipe.rst Outdated Show resolved Hide resolved
@ukleinek ukleinek changed the title Draft: Backend docs Update Backend docs Jan 30, 2025
docs/backends/ldap.rst Outdated Show resolved Hide resolved
docs/backends/lua2.rst Outdated Show resolved Hide resolved
docs/backends/pipe.rst Outdated Show resolved Hide resolved
Each backend that provides support for Primary also can do Autoprimary,
so listing that separately isn't sensible. Before commit 45675c5
("auth: catalog zone documentation") this column was titled "Super
slave". Said commit then changed it wrongly to "Autoprimary". The right
new term for "Super slave" is "Autosecondary". Adapt accordingly.

Fixes: 45675c5 ("auth: catalog zone documentation")
Nearly all backend docs use * for their feature list. Upgrade that to "all".
Users shouldn't have to care about case handling and if a need is hit
this is handled as a bug. So drop this documentation bit.
Make all the tables at the beginning of the backend detail descriptions
describe the same properties in the same order.

Stick to the order used in the overview table in index.rst. Also use the
more politically correct names (i.e. Master -> Primary; Slave ->
Secondary; Superslave -> Autosecondary).
For an event that happend at a definite time in the past, past simple is
the right tense.

Suggested-by: Josh Soref (josref)
@ukleinek
Copy link
Contributor Author

I somehow rewrote some commits from origin, the simple fix was to rebase to origin/master, so now the base changed.

Copy link
Contributor

@miodvallat miodvallat left a comment

Choose a reason for hiding this comment

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

This appears to be in good shape now.

Copy link
Member

@Habbie Habbie left a comment

Choose a reason for hiding this comment

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

thanks! almost there :)

* Secondary: Yes
* Producer: No
* Consumer: No
* Autosecondary: Yes
Copy link
Member

Choose a reason for hiding this comment

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

still Experimental

* Zone caching: Yes
* API: Read-only
* Multiple instances: Yes
* Zone caching: No
Copy link
Member

Choose a reason for hiding this comment

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

pretty sure this is Yes

* Zone caching: Yes
* API: Read-Write
* Multiple instances: Yes
* Zone caching: No
Copy link
Member

Choose a reason for hiding this comment

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

Yes - if dns_get_all_domains is implemented

Copy link
Member

Choose a reason for hiding this comment

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

which I guess is just Yes, we shouldn't have to note "if implemented" on every item here

* Multiple instances: Yes
* Zone caching: Yes\*
* Module name: remote
* Launch: ``remote``

\* If provided by the responder (your script).
Copy link
Member

Choose a reason for hiding this comment

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

I guess this note wants to be in lua2 too!

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.

7 participants