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

Close macro issues #28

Merged
merged 3 commits into from
Feb 12, 2024
Merged

Conversation

rlh1994
Copy link
Contributor

@rlh1994 rlh1994 commented Feb 8, 2024

Description

This PR adds prefixes to macro all macro calls to make it easier for users who extract the models. It also adds more column-list macro calls where possible in place of manually listing, not this adds 2 new columns which were not included in the manual list and re-orders some columns to simplify the sql. Finally, it fixes the issue where the model can fail when there is no data if list all events is enabled, I've added an extra test layer to check for this in the future.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

Closes #25
https://snplow.atlassian.net/browse/PE-6008
Closes #26
https://snplow.atlassian.net/browse/PE-5991
Closes #27
https://snplow.atlassian.net/browse/PE-6009

Checklist

  • 🎉 I have verified that these changes work locally
  • 💣 Is your change a breaking change?
  • 📖 I have updated the CHANGELOG.md

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📓 internal package docs (ymls, macros, readme, if applicable)
  • 📕 I have raised a Snowplow documentation PR if applicable (Link here if required)
  • 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

@rlh1994 rlh1994 force-pushed the chore/prefix-macro-calls branch 2 times, most recently from bf01421 to 731794d Compare February 8, 2024 16:42
@rlh1994 rlh1994 changed the title Prefix all macro calls (Close #25) Close macro issues Feb 8, 2024
@rlh1994 rlh1994 changed the base branch from main to release/snowplow-unified/0.2.1 February 8, 2024 16:43
@rlh1994 rlh1994 marked this pull request as ready for review February 8, 2024 16:44
@rlh1994 rlh1994 requested a review from a team as a code owner February 8, 2024 16:44
@rlh1994 rlh1994 force-pushed the chore/prefix-macro-calls branch from 731794d to 9be57a2 Compare February 8, 2024 16:58
Copy link
Contributor

@georgewoodhead georgewoodhead left a comment

Choose a reason for hiding this comment

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

Looks great and nice tidy up! There are still a few type_* macros dotted around that aren't prefixed

@rlh1994 rlh1994 force-pushed the chore/prefix-macro-calls branch from 9be57a2 to 8581213 Compare February 12, 2024 10:21
@rlh1994 rlh1994 force-pushed the chore/prefix-macro-calls branch from 8581213 to 4e079e7 Compare February 12, 2024 11:23
Copy link
Contributor

@georgewoodhead georgewoodhead left a comment

Choose a reason for hiding this comment

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

lgtm!

@rlh1994 rlh1994 merged commit 4473616 into release/snowplow-unified/0.2.1 Feb 12, 2024
4 checks passed
@rlh1994 rlh1994 deleted the chore/prefix-macro-calls branch February 12, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants