-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactored Computing API Components #28
base: main
Are you sure you want to change the base?
Conversation
@taxe10 reformatting has been finished successfully and all pre-commit checks have been passed. Ready to be reviewed and tested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work Tibbers. I see that the frontend doesn't present the callback errors anymore. I left some minor comments that should be addressed before merging.
content-api/src/content_api.py
Outdated
USER_API_PORT = config["user api port"]["USER_API_PORT"] | ||
SEARCH_API_PORT = config["search api port"]["SEARCH_API_PORT"] | ||
MONGO_DB_USERNAME = str(os.environ["MONGO_INITDB_ROOT_USERNAME"]) | ||
MONGO_DB_PASSWORD = str(os.environ["MONGO_INITDB_ROOT_PASSWORD"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can also use os.getenv
to retrieve the env variables as strings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is failing at my end
{"indexes":[{"v":{"$numberInt":"2"},"key":{"_id":{"$numberInt":"1"}},"name":"_id_"}],"uuid":"e0ee1d18ee3140948f34a09fd32a96cf","collectionName":"apps","type":"collection"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did these files change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope. These files have been tracked by Git and I haven't seen any changes so far during operation.
@taxe10 all comments have been addressed and new commits are ready to be reviewed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the content api run at your end? I think the function os.getenv()
should be followed by parenthesis instead of squared brackets.
@taxe10 The latest commit addressed an issue regarding duplicated mongo container name: IssuePreviously the content registry is built on top of the computing api. With recent changes we are spawning a stand-along container named SolutionRenamed the container name in docker-compose file to be content registry specific: Side ThoughtWe may consider the similar modification for computing api too, the name |
@taxe10 FYI the container name has been reverted back to "mongodb" based on this morning's discussion. |
This PR addresses issue #27 to reflect the new decision of how content registry will interact with computing api.
Major Feature Modification/Upgrades:
Minor Upgrades:
Note: the gh action and pre-commits still need testing. Right now it's in the very initial stage where files have been copied over and added.