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

Fixes Documentation issue #245 #339

Closed

Conversation

vidit-maheshwari
Copy link
Contributor

Summary

Fixes #245
This pull request aims to improve the documentation for configuring Fedora Messaging by adding a reminder regarding the passive_declares option to be set true.

Changes Made

  • Added a reminder note to the README file emphasizing the importance of setting passive_declares to true in the Fedora Messaging configuration.
  • Provided clear instructions for users to locate the config.toml file and set the passive_declares option.

Purpose

By enhancing the documentation with this reminder, we aim to reduce potential issues for users of Fedora's /pubsub vhost who might forget to configure passive_declares. Ensuring that passive_declares is correctly set to true is essential for proper functioning of queues and exchanges in Fedora Messaging.

Here is the preview of the changes made:

image


Ensure the following steps are taken to configure `passive_declares`:

1. **Access Configuration File**: Locate the `config.toml` file for Fedora Messaging. This file is typically found at `config.toml.example`.
Copy link
Member

Choose a reason for hiding this comment

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

That part is not correct, applications will usually have their Fedora Messaging config file at /etc/fedora-messaging/config.toml". The .example` file is just what is provided by the library as an example, that's not what client applications will actually use.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it fine now ?

@vidit-maheshwari
Copy link
Contributor Author

@abompard i have made the necessary changes, could you please review ?

@abompard
Copy link
Member

This setting is actually only necessary for clients of Fedora's restricted broker. Please add it to the appropriate section at the bottom of docs/user-guide/quick-start.rst.

@vidit-maheshwari
Copy link
Contributor Author

@abompard i have done the required changes as per your instructions. Kindly review it.


**Note:** It is essential to configure the ``passive_declares`` option correctly in the ``/etc/fedora-messaging/config.toml`` file. This setting is mandatory for users of Fedora's ``/pubsub`` vhost and should be set to ``true``. It controls the declaration of queues and exchanges.

Example:
Copy link
Member

Choose a reason for hiding this comment

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

Given the text above, I don't think this example brings a lot of value.

@@ -145,3 +145,11 @@ Connecting the Fedora's private virtual host requires working with the Fedora
infrastructure team. The current process and configuration for this is
documented in the `infrastructure team's development guide
<https://fedora-infra-docs.readthedocs.io/en/latest/dev-guide/messaging.html>`_.

**Note:** It is essential to configure the ``passive_declares`` option correctly in the ``/etc/fedora-messaging/config.toml`` file. This setting is mandatory for users of Fedora's ``/pubsub`` vhost and should be set to ``true``. It controls the declaration of queues and exchanges.
Copy link
Member

Choose a reason for hiding this comment

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

Please follow the line length convention of this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @abompard i have made the changes kindly review it.

@vidit-maheshwari
Copy link
Contributor Author

@abompard I have made the changes according to the line length convention and removed the example section as you said, Kindly review it if further any changes are required.

Copy link
Member

@abompard abompard left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@abompard
Copy link
Member

Ah there's just one small thing, we have a linter that detected something wrong with the files not ending in a newline. Please setup pre-commit: dnf install pre-commit; pre-commit install and run the tox check named checks: tox -e checks. This should show you the files needing a fix. Then you can amend your commit: git commit -a --amend and push again to your PR: git push --force.

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.

Document that the passive_declares config value is mandatory on Fedora's private vhost
2 participants