Skip to content

Metadata JSON design#30

Open
khetherin wants to merge 1 commit intoEBIvariation:mainfrom
khetherin:metadataJSON
Open

Metadata JSON design#30
khetherin wants to merge 1 commit intoEBIvariation:mainfrom
khetherin:metadataJSON

Conversation

@khetherin
Copy link
Collaborator

No description provided.

@khetherin khetherin requested a review from tcezard February 12, 2026 16:40
# sql row object is converted to python dict
return dict(row)
else:
logger.info("Fetching metadata query - SUCCESS - 0 records found")
Copy link
Member

Choose a reason for hiding this comment

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

Did you mean to say

Suggested change
logger.info("Fetching metadata query - SUCCESS - 0 records found")
logger.error("Fetching metadata query - ERROR - 0 records found")

@@ -0,0 +1,26 @@
###############################################################################
# WARNING: do not use f-strings or % formatting here, use placeholders instead
Copy link
Member

Choose a reason for hiding this comment

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

I see the rational for putting the queries in config files so we should discuss that but we have usually kept them close to the code because they can contain a lot of logic. This said the one you currently have are simple enough.

self.port = cfg.get("key_to_port")

# load sql queries and their placeholders
sql_map = self.load_sql_registry(path_to_sql_queries_yaml)
Copy link
Member

Choose a reason for hiding this comment

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

The __init__ should stop here.

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