Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Text roles#3299

Merged
mitchell852 merged 1 commit intoapache:masterfrom
ocket8888:text-roles
Feb 14, 2019
Merged

Text roles#3299
mitchell852 merged 1 commit intoapache:masterfrom
ocket8888:text-roles

Conversation

@ocket8888
Copy link
Contributor

What does this PR do?

This PR fixes numerous warnings and errors generated by the documentation build system, as well as rearranges some things such that most Traffic Control terms now link to a description of said term in the glossary. It also implements proper text roles for things like command line tools and RFC documents. Finally, this PR includes updates to the Python Traffic Ops client to remove methods of the TOSession object that used non-existent API endpoints.

Which TC components are affected by this PR?

  • Documentation
  • Grove
  • Traffic Analytics
  • Traffic Monitor
  • Traffic Ops
  • Traffic Ops ORT
  • Traffic Portal
  • Traffic Router
  • Traffic Stats
  • Traffic Vault
  • Python Client

What is the best way to verify this PR?

Build the documentation and verify that no warnings or errors are emitted.

Check all that apply

  • This PR includes tests
  • This PR includes documentation updates
  • This PR includes an update to CHANGELOG.md
  • This PR includes all required license headers
  • This PR includes a database migration (ensure that migration sequence is correct)
  • This PR fixes a serious security flaw. Read more: www.apache.org/security

@asfgit
Copy link
Contributor

asfgit commented Feb 4, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3167/
Test FAILed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Possibly, and I did consider changing it instead of removing it, but that appears to be removing a delivery service from a federation (which is in line with the method name) whereas the route in the method seems to be trying to remove it from a federation resolver. I don't really have a very good grasp on the difference, so I decided to just remove it rather than try to fix it.

@mitchell852 mitchell852 added the documentation related to documentation label Feb 5, 2019
@mitchell852
Copy link
Member

is it just me or does this PR seem to do 2 things:

  1. fixes documentation
  2. fixes python client

if so, why not 2 PR's?

@ocket8888
Copy link
Contributor Author

The fixes to the Python client were motivated by the documentation errors it was generating. There may be other problems with the client, but if it doesn't generate a documentation error, I didn't fix it.

@asfgit
Copy link
Contributor

asfgit commented Feb 5, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3177/
Test FAILed.

@asfgit
Copy link
Contributor

asfgit commented Feb 5, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3178/
Test PASSed.

@asfgit
Copy link
Contributor

asfgit commented Feb 7, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3190/
Test FAILed.

@asfgit
Copy link
Contributor

asfgit commented Feb 8, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3199/
Test PASSed.

This means that POSIX commands link to their respective man pages, Traffic Control
terms link to their respective glossary entries, RFC links are maintained by the
'rfc' role rather than hard-coded URLs, PEP links are maintained by the 'pep' role
rather than hard-coded URLs, abbreviations are defined using the 'abbr' role and
external files are referenced directly as 'download' links instead of just by
relative filename in the repository.

This change also fixes documentation inconsistencies with the guidelines, as well
as fixes for many warnings generated by the inclusion of docstrings from the Python
client. Some such warnings still exist because each method of the client links to
documentation for the endpoint(s) used, but many of those endpoints do not yet have
documentation. The warnings should disappear when said documentation is added -
presuming naming convention is followed.
@asfgit
Copy link
Contributor

asfgit commented Feb 14, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3223/
Test PASSed.

@mitchell852 mitchell852 merged commit f78f4fa into apache:master Feb 14, 2019
@ocket8888 ocket8888 deleted the text-roles branch February 14, 2019 18:09
@mitchell852 mitchell852 added Traffic Ops related to Traffic Ops Traffic Monitor related to Traffic Monitor Traffic Portal v1 related to Traffic Portal version 1 Traffic Router related to Traffic Router Traffic Stats related to Traffic Stats labels May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation related to documentation Traffic Monitor related to Traffic Monitor Traffic Ops related to Traffic Ops Traffic Portal v1 related to Traffic Portal version 1 Traffic Router related to Traffic Router Traffic Stats related to Traffic Stats

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants