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

Add message broker module #11

Merged
merged 31 commits into from
Jun 2, 2022
Merged

Add message broker module #11

merged 31 commits into from
Jun 2, 2022

Conversation

yoavnash
Copy link
Member

@yoavnash yoavnash commented May 16, 2022

Closes #10

@yoavnash yoavnash requested a review from csadorf May 16, 2022 17:50
@yoavnash yoavnash self-assigned this May 16, 2022
Copy link
Collaborator

@csadorf csadorf left a comment

Choose a reason for hiding this comment

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

Just a few suggestions. I think this is generally good enough for a starting point.

MANIFEST.in Outdated Show resolved Hide resolved
examples/rpc_server.py Outdated Show resolved Hide resolved
marketplace/message_broker/rpc_server.py Outdated Show resolved Hide resolved
marketplace/message_broker/rpc_server.py Outdated Show resolved Hide resolved
@yoavnash
Copy link
Member Author

New changes:

  • Model for response was added
  • Renaming of queue name from to :<hash(application-id,application-secret)> (to increase security)

@pablo-de-andres for info.

@csadorf csadorf self-requested a review May 30, 2022 10:04
Copy link
Collaborator

@csadorf csadorf left a comment

Choose a reason for hiding this comment

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

As discussed offline, please move the models into the https://github.com/materials-marketplace/standard-app-api code base. PR should be into the version-0.1.0 branch until that is merged.

I would suggest that you address my other comments prior to the move so that we can conclude the discussion before clustering it across repositories.

marketplace/message_broker/models/request_message.py Outdated Show resolved Hide resolved
marketplace/message_broker/models/request_message.py Outdated Show resolved Hide resolved
marketplace/message_broker/models/response_message.py Outdated Show resolved Hide resolved
marketplace/message_broker/models/response_message.py Outdated Show resolved Hide resolved
marketplace/message_broker/models/request_message.py Outdated Show resolved Hide resolved
marketplace/message_broker/models/response_message.py Outdated Show resolved Hide resolved
marketplace/message_broker/models/request_message.py Outdated Show resolved Hide resolved
marketplace/message_broker/models/request_message.py Outdated Show resolved Hide resolved
marketplace/message_broker/rpc_server.py Outdated Show resolved Hide resolved
marketplace/message_broker/rpc_server.py Outdated Show resolved Hide resolved
@csadorf
Copy link
Collaborator

csadorf commented May 31, 2022

@yoavnash How do you want to move forward? Should we make a (pre-?) release of https://github.com/materials-marketplace/standard-app-api and then update the PR here? Or do you want to temporarily depend on the git repository?

@yoavnash
Copy link
Member Author

@yoavnash How do you want to move forward? Should we make a (pre-?) release of https://github.com/materials-marketplace/standard-app-api and then update the PR here? Or do you want to temporarily depend on the git repository?

I think it would be great to have a proper release of the standard-app-api package, as well as to publish it in PyPI. Then we can update this PR so that the models are imported from that repo.

@csadorf
Copy link
Collaborator

csadorf commented Jun 1, 2022

Blocked by: materials-marketplace/standard-app-api#10

@csadorf
Copy link
Collaborator

csadorf commented Jun 1, 2022

@yoavnash The marketplace-standard-app-api package version 0.1.0 is now published on PyPI: https://pypi.org/project/marketplace-standard-app-api/ and can be installed with pip install marketplace-standard-app-api.

@yoavnash
Copy link
Member Author

yoavnash commented Jun 1, 2022

Great :)

@yoavnash
Copy link
Member Author

yoavnash commented Jun 1, 2022

Some tests fail. @csadorf Do you think it has to do with the api package not supporting Python 3.8?

@csadorf
Copy link
Collaborator

csadorf commented Jun 1, 2022

Some tests fail. @csadorf Do you think it has to do with the api package not supporting Python 3.8?

Yes, it does. I will update the Python SDK requirements.

@csadorf
Copy link
Collaborator

csadorf commented Jun 1, 2022

@yoavnash Please rebase this branch on main and tests should pass.

@yoavnash
Copy link
Member Author

yoavnash commented Jun 2, 2022

Done. It's still failing though

@csadorf
Copy link
Collaborator

csadorf commented Jun 2, 2022

Done. It's still failing though

Yes, I think this is an unrelated issue either with the runners or the actions. Currently checking whether updating the actions in #16 resolves the issue.

@csadorf
Copy link
Collaborator

csadorf commented Jun 2, 2022

@yoavnash #16 has passed, would you mind rebasing once more on main? Also, I am not sure whether your previous rebase was clean since there are some changes that should not be there, e.g., https://github.com/materials-marketplace/python-sdk/pull/11/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f .

@yoavnash
Copy link
Member Author

yoavnash commented Jun 2, 2022

This time I merged instead of rebasing. The problem seems to be resolved. Thanks.
I think we can now proceed with merging this branch into main.

Copy link
Collaborator

@csadorf csadorf left a comment

Choose a reason for hiding this comment

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

I think the dependencies must be adjusted, otherwise good.

setup.cfg Outdated Show resolved Hide resolved
@csadorf csadorf self-requested a review June 2, 2022 11:03
@csadorf csadorf merged commit 5e4f18a into main Jun 2, 2022
@csadorf csadorf deleted the message_broker branch June 2, 2022 11:03
@csadorf
Copy link
Collaborator

csadorf commented Jun 2, 2022

Thanks a lot @yoavnash ! 👍

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.

Expand for message broker
2 participants