This PR integrates fedora-messaging in our project.
This commit includes:
Adds fedora-messaging and happinesspackets-schema as a dependency in base.py
Sets env variable to fedora-messaging config file in Dockerfile
Adds config.toml [configuration file for fedora-messaging] to project's root directory
Instructions to build a container for RabbitMQ in docker-compose.yml
Adds happinesspacket_schema_package which houses the schema and tests.
Configured MessageSenderConfirmationView to post messages to the broker.
To see the change in action:
Build the container again.
In a new terminal access the shell, and run fedora-messaging consume --callback=fedora_messaging.example:printer
Send a happiness packet, confirm the packet and observe the message being emitted in the terminal listening for the messages.
Task left to be done:
Currently the name of the recipient is send to the broker. Instead, the username of the recipient should be sent as that will be needed to assign them the badge.
Configure a way to get the username of the recipient from the email input by the user. [WIP]
This PR integrates fedora-messaging in our project.
This commit includes:
base.pyDockerfileconfig.toml[configuration file for fedora-messaging] to project's root directorydocker-compose.ymlhappinesspacket_schema_packagewhich houses the schema and tests.MessageSenderConfirmationViewto post messages to the broker.To see the change in action:
fedora-messaging consume --callback=fedora_messaging.example:printerTask left to be done:
Currently the name of the recipient is send to the broker. Instead, the username of the recipient should be sent as that will be needed to assign them the badge.
Configure a way to get the username of the recipient from the email input by the user. [WIP]