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
DEV-1035: Add support for skipping nodes during tagging/versioning #380
Conversation
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.
Looks good!
gdcdatamodel/models/__init__.py
Outdated
"""Tagging configuration instance used for checking if node instance participates in versioning | ||
|
||
Returns: | ||
versioning.TaggingConfig): config instance |
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.
versioning.TaggingConfig): config instance | |
versioning.TaggingConfig: config instance |
gdcdatamodel/models/versioning.py
Outdated
|
||
|
||
class TaggingConfig: | ||
"""A wrapper around the tagConfig definition in the dictionary yaml""" |
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.
Should the docstring reference tagBuilderConfig?
table = node.__table__ | ||
|
||
if not node.is_taggable(): | ||
return # do nothing | ||
|
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.
nit picking:
table = node.__table__ | |
if not node.is_taggable(): | |
return # do nothing | |
if not node.is_taggable(): | |
return # do nothing | |
table = node.__table__ |
@@ -17,6 +17,8 @@ | |||
import os | |||
import sys | |||
|
|||
import six |
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.
We are still supporting python 2?
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.
Sadly we are, biowcs is still py2 and it is a mojor player for GPAS
Add implementation that ignores nodes with certain values for certain fields while generating a tag. These fields are configured via the dictionary. A sample configuration is also included for testing purposes.