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

Draft: Backend docs #14840

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

Draft: 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 11813380634

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 98 unchanged lines in 13 files lost coverage.
  • Overall coverage decreased (-0.02%) to 64.668%

Files with Coverage Reduction New Missed Lines %
pdns/validate.cc 1 68.42%
pdns/sstuff.hh 2 56.83%
pdns/recursordist/lwres.cc 2 69.66%
pdns/iputils.cc 3 55.76%
pdns/stubresolver.cc 3 77.58%
pdns/packethandler.cc 3 73.4%
pdns/remote_logger.cc 3 53.81%
pdns/recursordist/rec-main.cc 3 62.32%
pdns/recursordist/test-syncres_cc1.cc 7 89.62%
pdns/recursordist/syncres.cc 10 79.28%
Totals Coverage Status
Change from base Build 11796572634: -0.02%
Covered Lines: 125747
Relevant Lines: 163603

💛 - 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
@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: ...

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

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: ???

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.

5 participants