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

Peru OEFA adapter #1085

Merged
merged 37 commits into from
Mar 26, 2024
Merged

Peru OEFA adapter #1085

merged 37 commits into from
Mar 26, 2024

Conversation

majesticio
Copy link
Contributor

Peru OEFA fetch adapter. Added custom error if an incorrect user / or password is used, and some debug statements for empty responses. This is because all responses from the API return status 200 even if the wrong credentials are used. Waiting on source to confirm the dates are accurate before deploying as the measurements are all ~12+ hours old.

@majesticio majesticio requested a review from caparker February 21, 2024 23:36
Copy link
Collaborator

@caparker caparker left a comment

Choose a reason for hiding this comment

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

Could you

  • update this to use our request client
  • add docstrings
  • change the parameters const at the top to follow the same pattern as what we are doing in the rwanda adapter. Use the object as a map to make sure we are getting the right units.

And dont hesitate to reach out if any of that is unclear or you just have questions.

@majesticio
Copy link
Contributor Author

@caparker I added docstrings and will update the documentation. I was having a hard time getting the client to work with the custom errors we have, so I left got in place. Let me know what you think

Copy link
Collaborator

@caparker caparker left a comment

Choose a reason for hiding this comment

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

Looks good

@caparker caparker merged commit 23ba703 into main Mar 26, 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.

2 participants