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

docs: network_connections module is only meant for internal usage #686

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

marituhone
Copy link
Contributor

Enhancement:Creating Document for the network_connections module
Reason:To guide users and developers to use the network_connections module only for internal usage

Result:with the adding of this documentation user and developers will understand No Direct Invocation for network_connections module,they should refrain from directly invoking the network_connections module outside of its designated role.

Issue Tracker Tickets (Jira or BZ if any):#292

README.md Outdated
@@ -319,6 +319,18 @@ role.
Similar to `controller` and `vlan`, the `parent` references the connection profile in
the ansible role.

#### Network_connections Module
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to add so much text about unsupported module. In my opinion, it is better to not document unsupported modules at all. Usually, things that are not documented are considered unsupported.
Module has info that it is not supported to be run outside the role in https://github.com/linux-system-roles/network/blob/main/library/network_connections.py#L17
And I think it's enough

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@spetrosi it was asked in issue #292 so what was the issue saying

Copy link
Contributor

Choose a reason for hiding this comment

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

@tyll would you say that we need a note about module being unsupported in README when the module has a warning in it?
I'd say that not mentioning this module in README at all is enough. And if we want to be extra clear, a one sentence warning in README would be enough, no need for a separate section.

Copy link
Member

Choose a reason for hiding this comment

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

yes, I agree that a single sentence is better. The extra sections sound to me like they are generated from an AI and do not provide significant information.

README.md Outdated
@@ -1380,6 +1399,39 @@ may be
Another option maybe be to initially auto-configure the host during installation (ISO
based, kickstart, etc.), so that the host is connected to a management LAN or VLAN. It
strongly depends on your environment.
#### Installation and Usage Guide
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not include basic instructions on how to use Ansible into separate roles. I'd expect users to go through Ansible docs prior to getting to the role.
We ship roles in collection in https://galaxy.ansible.com/ui/repo/published/fedora/linux_system_roles/
Yes, it is possible to install the role by cloning git repo, but the proper way is to get the collection.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@spetrosi sorry i do not understand so what was expected from the solution(the issue fix)?

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there some other issue that requests this? This is not part of #292

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.

issue #238 and i have made also changes on issue #292 sorry i will make it different PR

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@marituhone
Copy link
Contributor Author

@spetrosi @tyll @liangwen12year so what was the these issues were asking am confused isn't it asking me to write note on the ReadMe.md?

@liangwen12year
Copy link
Collaborator

@spetrosi @tyll @liangwen12year so what was the these issues were asking am confused isn't it asking me to write note on the ReadMe.md?

If I am not mistaken, you are supposed to write it in README.md.

@liangwen12year
Copy link
Collaborator

Can you rebase the current PR, git pull --rebase upstream main ?

@richm
Copy link
Contributor

richm commented Jun 10, 2024

Can you rebase the current PR, git pull --rebase upstream main ?

ping - please rebase

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.22%. Comparing base (34d1f2d) to head (9b5adcc).
Report is 8 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #686       +/-   ##
===========================================
+ Coverage   20.50%   43.22%   +22.72%     
===========================================
  Files          10       12        +2     
  Lines        1478     3100     +1622     
  Branches      433        0      -433     
===========================================
+ Hits          303     1340     +1037     
- Misses       1174     1760      +586     
+ Partials        1        0        -1     
Flag Coverage Δ
sanity ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@liangwen12year liangwen12year changed the title docs : network_connections module docs: network_connections module is only meant for internal usage Jun 11, 2024
@liangwen12year liangwen12year merged commit 0ba8dd7 into linux-system-roles:main Jun 11, 2024
23 of 25 checks passed
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.

None yet

5 participants