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

Change TagsStream and SharedHierarchyStream primary_keys #43

Merged
merged 1 commit into from
Sep 28, 2021
Merged

Change TagsStream and SharedHierarchyStream primary_keys #43

merged 1 commit into from
Sep 28, 2021

Conversation

LucasZielke
Copy link
Contributor

To comply with singer specifications key_properties needs to exist on top level (or be an empty list), of which Tags and Shared does not have ["id"].

To fix I found that changing the Tags primary key to be indexed by ["name"] would populate with all of the tags used.

For shared hierarchy, I set the primary index to be a null list because Its going to cause inconsistency, if being recorded at this time, as theres no ["id"] attributed to itself. Although, to add them its going to need to get_children and recursively add its shared tasks, lists, and folders

To comply with [singer specifications](https://github.com/singer-io/getting-started/blob/master/docs/SPEC.md#schema-message) key_properties needs to exist on top level (or be an empty list), of which Tags and Shared does not have ["id"].
@visch
Copy link
Contributor

visch commented Sep 28, 2021

Great fix I caught this myself as well on #42 , this will close that! Thank you!

@visch
Copy link
Contributor

visch commented Sep 28, 2021

The test failed due to #14 , I"ll have to fix that at some point but I"m confident with this so I"ll merge it!

@visch visch merged commit e11fc32 into AutoIDM:main Sep 28, 2021
@visch
Copy link
Contributor

visch commented Sep 28, 2021

The test failed due to #14 , I"ll have to fix that at some point but I"m confident with this so I"ll merge it!

Looks like I was wrong! Put in #44 I'll dive in with my next PR

@LucasZielke LucasZielke deleted the key_properties_patch branch October 1, 2021 22:40
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