-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add workflow to calculate source data schema diff #528
Conversation
f252e82
to
e92b9ce
Compare
update update
e962333
to
09184f8
Compare
09184f8
to
b1d124b
Compare
99345eb
to
a33f01e
Compare
4cc574a
to
60aeb0a
Compare
b1fbc79
to
66767d1
Compare
23cc885
to
9053a28
Compare
Test case it adds to an existing file2024-10-30Tables Added:['new_table'] Tables Removed:['dimAccounts'] Schema Changes:
2024-01-01Tables Added:['new_table'] Tables Removed:['old_table'] Schema Changes:
|
04e69ab
to
365fc2a
Compare
test test figured it out
5b47fcc
to
77a1e1c
Compare
Field addition and deletion 2024-10-30Schema Changes:
2024-01-01Tables Added:['new_table'] Tables Removed:['old_table'] Schema Changes:
|
314743b
to
8f732a5
Compare
e74bcce
to
655deaa
Compare
push to branch push to branch push to branch push to branch push to branch push to branch
655deaa
to
d4fbe56
Compare
Thanks @chowbao and @sydneynotthecity for the feedback. I have cleaned up the script and modularized it as library. Let me know if changes look good to you. |
on: | ||
push: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we trigger on pull request, git push
was not working as it was losing the context of branch. Even providing branch name did not help
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh interesting. I think leaving this as push is fine. I can't think of any issues other than it being odd and rerunning every push before a PR is merged
changelog/source_data.md
Outdated
@@ -0,0 +1,23 @@ | |||
## 2024-11-04: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File to be deleted before merging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Deleted contents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: chowbao <[email protected]>
Co-authored-by: chowbao <[email protected]>
Co-authored-by: chowbao <[email protected]>
Co-authored-by: chowbao <[email protected]>
PR Checklist
PR Structure
otherwise).
Thoroughness
What
This PR adds github workflow to append source data schema changelog in case if anything changes in schemas dir. If there are no changes changelog won't be appended.
Sample changelog update in
Why
To track schema changes over time.
Known limitations
It tracks changes only at level 1 field and not nested fields.