Skip to content

Conversation

@ferag
Copy link
Collaborator

@ferag ferag commented Oct 16, 2024

No description provided.

@ferag ferag requested a review from orviz as a code owner October 16, 2024 12:55
api/rda.py Outdated
ids = [item_id]

# FIXME oai-pmh should be no different
downstream_logger = evaluator.logger
Copy link
Collaborator

Choose a reason for hiding this comment

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

downstream_logger = None (evaluator is not set)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@orviz
Copy link
Collaborator

orviz commented Oct 17, 2024

Added changes to adapt EPOS plugin to EvaluatorBase

Copy link
Collaborator Author

@ferag ferag left a comment

Choose a reason for hiding this comment

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

Where the list of config params should be loaded?

)
self.internet_media_types_path = ast.literal_eval(
self.config["internet media types"]["path"]
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The config loading is already included in EvalutorBase. Do you think it is better to trust in super() class or we should keep this loading on each plugins?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, it makes sense to use super(). . I'll make the change

Copy link
Collaborator

Choose a reason for hiding this comment

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

Commit 00fa1c89dc0553d91cf468d486ac00f7c278ebed allows to pass (*args, **kwargs) from the Plugin class so you don't need to provide the list of input args to super(). In case you want to apply it to other plugins.

@orviz
Copy link
Collaborator

orviz commented Oct 18, 2024

@ferag EvaluatorBase has oai_base as input argument. Since we have plugins that don't use OAI-PMH, it would make sense to change the name of this variable.

@ferag
Copy link
Collaborator Author

ferag commented Oct 28, 2024

@ferag EvaluatorBase has oai_base as input argument. Since we have plugins that don't use OAI-PMH, it would make sense to change the name of this variable.

Do you think is it OK to use a general "api_endpoint" variable?

@orviz
Copy link
Collaborator

orviz commented Oct 29, 2024

@ferag EvaluatorBase has oai_base as input argument. Since we have plugins that don't use OAI-PMH, it would make sense to change the name of this variable.

Do you think is it OK to use a general "api_endpoint" variable?

sure. Last commit address this, but not tested all the plugins

@ferag ferag merged commit 80f0a8d into main Nov 6, 2024
1 check passed
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.

3 participants