Skip to content

Conversation

eimrek
Copy link
Member

@eimrek eimrek commented Aug 17, 2025

This PR improves optimake serve to allow to prepare/set up a production API by

  • populating an external MongoDB, and
  • writing the final optimade-python-tools config file (needs to include custom provider fields etc).

What needed special care was the case where the custom provider prefix does not match with the one specified in the JSONL. In this case, the prefix needs to be updated in the property definitions. In principle, this could potentially be moved to the optimade-python-tools, as it already contains the mongodb injection script. Currently I need to populate the e.g. the MongoMock in a slightly hacky way (by importing the o-p-t to start the MongoMock and then accessing it directly).

@eimrek eimrek requested a review from ml-evs as a code owner August 17, 2025 23:55
@eimrek eimrek merged commit 2fe4403 into main Aug 19, 2025
4 checks passed
@eimrek eimrek deleted the populate-mongodb branch August 19, 2025 16:27
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.

2 participants