Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Search returns same class as self - allowing subclassing #417

Merged
merged 3 commits into from
Dec 15, 2021

Conversation

aulemahal
Copy link
Contributor

@aulemahal aulemahal commented Dec 14, 2021

Change Summary

  • In esm_datastore.search the result is instantiated from the same class as self, allowing subclassing.

Related issue number

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable

Should I add a unit test for this? It's not something I ever tested in other projects. I mean intake_esm does not have subclasses of esm_datastore thus testing this feature is somewhat out of scope? I can quickly add a basic one if you prefer.

@andersy005 andersy005 added the enhancement Issues that are found to be a reasonable candidate feature additions label Dec 14, 2021
Copy link
Member

@andersy005 andersy005 left a comment

Choose a reason for hiding this comment

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

Thank you for this contribution, @aulemahal! The CI failures are unrelated to this PR.

Should I add a unit test for this? It's not something I ever tested in other projects.

Feel free to add one if it doesn't require too much work. Otherwise, I'd be happy to merge this as is.

@andersy005
Copy link
Member

@aulemahal, let me know if you are planning to add the unit test otherwise I'm going to merge this later today.

@andersy005
Copy link
Member

Thank you, @aulemahal!

@andersy005 andersy005 merged commit 46498d5 into intake:main Dec 15, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Issues that are found to be a reasonable candidate feature additions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow subclassing esm_datastore
2 participants