feat: Add a mapper cookiecutter template #1892
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1645
I was trying to build a mapper related to https://github.com/meltano/internal-data/issues/131 and noticed it was pretty difficult and manual. Creating at least a draft of this was going to save me time vs manually copy/pasting an existing mapper.
I wasnt sure what the cookiecutter.test.yml was actually doing, it looks like theyre outdated (e.g.
include_cicd_sample_template
vs what I think is now calledinclude_ci_files
). Let me know if I should put that back in.I tried to update everything I could find but will manually test that it works as expected.
NOTE: the one thing thats not incorporated in here from map-gpt-embeddings is the time_extracted parsing, see https://github.com/MeltanoLabs/map-gpt-embeddings/blob/2de64bb8d5b42ffdb3b93420efd1d2bb06141d7b/map_gpt_embeddings/sdk_fixes/messages.py#L13. I used this cookiecutter and did see that error pop up but I had a hard time reproducing it. I will create a separate bug issue if I'm able to reproduce.
📚 Documentation preview 📚: https://meltano-sdk--1892.org.readthedocs.build/en/1892/