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

Fix color field source flapping #135

Merged
merged 8 commits into from
Feb 16, 2024
Merged

Conversation

snaselj
Copy link
Contributor

@snaselj snaselj commented Feb 16, 2024

Closes: NaN

What's Changed

  • Improved field sources handling and fixed flapping.
  • Fixed the order of importer modules initialization.
  • Cleaned-up unnecessary definitions.
  • Updated text summary to print only mappings originating from input data.

@snaselj snaselj marked this pull request as ready for review February 16, 2024 13:40
@@ -70,6 +71,16 @@ class PreImportResult(Enum):
USE_RECORD = True


class SourceFieldSource(Enum):
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't get the purpose of this class. what does it mean?

Copy link
Contributor

Choose a reason for hiding this comment

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

"Source Field Source" doesn't resonate with me...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added description for individual enum entries

@@ -38,8 +38,7 @@ class FieldSummary(NamedTuple):
nautobot_can_import: Optional[bool]
importer: Optional[str]
definition: Union[str, bool, int, float, None]
from_data: Optional[bool]
is_custom: Optional[bool]
sources: List[str]
Copy link
Contributor

Choose a reason for hiding this comment

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

I may be missing somethign, but I don't see this attribute initialized, just used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@chadell chadell left a comment

Choose a reason for hiding this comment

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

let's get it in

@snaselj snaselj merged commit 1f470a3 into develop Feb 16, 2024
14 checks passed
@snaselj snaselj deleted the u/snaselj-napps-245-color-flapping branch February 16, 2024 19:10
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